frost2d

Lightweight HTML5 game engine for Haxe
http://frost2d.com/

To install, run:

haxelib install frost2d 0.1.1 

See using Haxelib in Haxelib documentation for more information.

README.md

frost2D - Lightweight HTML5 game engine for Haxe

Ease of use, minimal infrastructure, and efficiency are the core principles of frost2D. Its goal is to keep you making web games, not wasting time dealing with cumbersome API's and such.

Note: It's early in development, but stable versions are coming!

Documentation

Full source code documentation is available: [http://frost2d.com/docs/](http://frost2d.com/docs/)

Example Code

import frost2d.Game;
import frost2d.graphics.Sprite;

class HelloWorld extends Sprite {
    
    public static var root(default, null):HelloWorld;
    
    static function main() {
        root = new HelloWorld();
        Game.start(root, 800, 450, "#202020");
        Game.loader.onComplete = root.loaded;
    }
    
    private function loaded():Void {
        var ball:Sprite = new Sprite();
        ball.paint.beginFill("#ef0020");
        ball.paint.drawCircle(0, 0, 20);
        ball.x = Game.width / 2;
        ball.y = Game.height / 2;
        addChild(ball);
    }
    
}
Contributors
JoshuaStone
Version
0.1.1
Published
6 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub