• Stars
    star
    235
  • Rank 171,079 (Top 4 %)
  • Language Haxe
  • License
    Other
  • Created about 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Known as the "Cross-Platform Game Engine", Starling is a popular Stage3D framework for OpenFL and Haxe

Simplified BSD License NPM Version Haxelib Version Build Status

Starling Framework

The Cross Platform Game Engine

The Starling Framework allows you to create hardware accelerated apps in ActionScript 3, Haxe, TypeScript or JavaScript. The main target is the creation of 2D games, but Starling may be used for any graphical application. Thanks to Adobe AIR, Starling-based applications can be deployed to mobile devices (iOS, Android), the desktop (Windows, OS X), and to the browser (via the Flash plugin).

You can also pair Starling with OpenFL to deploy native builds for iOS, Android, Windows, OS X, Linux or WebAssembly, as well as Flash/AIR or regular HTML5 releases without WebAssembly. HTML5 support is available in TypeScript, Haxe, ES5 JavaScript or ES6+ JavaScript.

While Starling mimics the classic display tree architecture of Adobe AIR/Flash, it provides much better performance than the Adobe version: all objects are rendered directly by the GPU (using the Stage3D API). When paired with OpenFL, Starling provides an alternative GPU renderer with helpful features. The complete architecture was designed for working well with the GPU; common game development tasks were built right into its core. Starling hides Stage3D internals from developers, but makes it easy to access them for those who need full performance and flexibility.

Starling aims to be as lightweight and easy to use as possible. As an open-source project, much care was taken to make the source code easy to read, understand and extend. With under 15k lines of code, experienced developers can easily grasp it in its entirety, or modify it to their needs.

Getting Started (NPM)

You can install the Yeoman generator to create an empty project:

npm install -g yo starling-framework-generator
mkdir StarlingProject
cd StarlingProject
yo starling-framework

You can also try the Starling demo:

git clone https://github.com/openfl/starling
cd starling/samples/demo_npm/typescript
npm install
npm start -s

There are ES5, ES6, Haxe and TypeScript versions of the demo available.

Getting Started (Haxelib)

You can easily install Starling using haxelib:

haxelib install starling

To add it to an OpenFL project, add this to your project file:

<haxelib name="starling" />

You can also create a new empty project like this:

openfl create starling:project StarlingProject

You can also try the Starling demo:

openfl create starling:demo
cd demo
openfl test flash

Note about high-dpi support

Starling supports high-dpi devices such as 4K monitors For it to work you need to add this in your project file:

<window allow-high-dpi="true"/>

You also need to tell starling to support high resolutions in your code:

starling.supportHighResolutions = true;

Quick Links (AS3)

News and Updates

More Repositories

1

openfl

The Open Flash Library for creative expression on the web, desktop, mobile and consoles.
Haxe
1,894
star
2

lime

A foundational Haxe framework for cross-platform development
JavaScript
752
star
3

away3d

An open source, real-time 3D engine for OpenFL
Haxe
207
star
4

actuate

Actuate is a flexible, fast "tween" library for animations in Haxe
Haxe
157
star
5

box2d

Haxe port of Box2D, a popular rigid-body 2D physics engine
Haxe
95
star
6

openfl-samples

Haxelib-based OpenFL sample projects
Haxe
77
star
7

svg

Provides SVG parsing and rendering for OpenFL and Haxe
Haxe
68
star
8

openfl-animate-plugin

Custom plugin for Adobe Animate CC
C++
58
star
9

hxp

Write scripts in Haxe, and execute them on Windows, macOS or Linux
Haxe
55
star
10

dragonbones

Runtime support for DragonBones skeletal animation
Haxe
39
star
11

swf

Adds support for Flash SWF assets in OpenFL projects
Haxe
38
star
12

openfl-pixi

Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
Haxe
37
star
13

lime-vscode-extension

Visual Studio Code extension for OpenFL and Lime projects written in Haxe
Haxe
28
star
14

openfl-samples-ts

OpenFL sample projects (written in TypeScript)
TypeScript
21
star
15

openfl-samples-as3

OpenFL sample projects (written in ActionScript 3.0)
ActionScript
20
star
16

openfl-js

Wrapper to support OpenFL HTML5 development using TypeScript, Haxe, JavaScript or ActionScript 3.0
ActionScript
20
star
17

www.openfl.org

OpenFL website
HTML
17
star
18

OpenFLDevelopersGuide

Learn OpenFL fundamentals with this guide that covers the display list, events, rendering text, playing sounds and more
17
star
19

away3d-samples

Away3D sample projects for OpenFL and Haxe
Haxe
16
star
20

openfl-samples-es6

OpenFL sample projects (written in ES6+ JavaScript)
JavaScript
15
star
21

openfl-samples-haxe

OpenFL sample projects (written in Haxe, using NPM)
Haxe
14
star
22

feathers

Haxe
13
star
23

lime-samples

Lime sample projects
Haxe
13
star
24

lime.openfl.org

Lime website
SCSS
8
star
25

openfl-player

Haxe
7
star
26

robotlegs

A Haxe application framework for OpenFL
Haxe
7
star
27

http-server

Provides an http-server for Haxe projects
JavaScript
7
star
28

generator-openfl

Yeoman generator for OpenFL NPM-based projects in TypeScript, ES5, ES6, AS3, and Haxe
JavaScript
7
star
29

AS3ConversionGuide

6
star
30

tweener

A class for creating tweens in haxe - because there's infinity between 0 and 1.
Haxe
6
star
31

swiftsuspenders

Fast and light-weight IoC container for Haxe
Haxe
4
star
32

books.openfl.org

HTML
3
star
33

try.openfl.org

Create a new OpenFL test sandbox (currently a redirect)
HTML
3
star
34

swf-loader

SWF loader for OpenFL projects built with Webpack
JavaScript
3
star
35

libsdl

C
3
star
36

openfl-samples-es5

OpenFL sample projects (written in ES5 JavaScript)
JavaScript
3
star
37

builds.openfl.org

Builds (currently a redirect)
HTML
1
star
38

openfl-native

[deprecated] OpenFL native backend
Haxe
1
star
39

libopenal

C
1
star
40

liblzma

C
1
star
41

libharfbuzz

C++
1
star
42

libwebm

C++
1
star
43

libjpeg

C
1
star
44

libpng

C
1
star
45

libefsw

C++
1
star
46

libneko

C
1
star
47

libfreetype

C
1
star
48

libcairo

C
1
star
49

libtinyfiledialogs

C
1
star
50

libzlib

C
1
star
51

libvorbis

C
1
star
52

libvpx

C
1
star
53

libpixman

C
1
star
54

libogg

C
1
star
55

docs.openfl.org

Docs (currently a redirect)
HTML
1
star
56

libmojoal

C
1
star
57

lime-build

[deprecated] Headers and libraries to build lime from the source
C
1
star
58

api.openfl.org

API documentation for OpenFL, the Open Flash Library for the Haxe programming language
1
star