npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

starling-framework

v2.7.0

Published

A fast, productive library for 2D cross-platform development.

Downloads

81

Readme

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 AS3, 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