Skip to content

PongoEngine/Pongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pongo

Reactive-ish ECS Game Framework built on top of Kha

Pongo

Pongo is getting a huge update. The reactive part is being taken out for a moment until the core system is defined. Then "onAdded", "onRemoved", and "onChanged" calls will be re-added.

Example Usage


package;

import pongo.display.FillSprite;
import pongo.display.Sprite;
import pongo.platform.Pongo;
import pongo.ecs.Component;

class Main 
{
    public static function main() : Void
    {
        Pongo.create("Game Template", 800, 600, {}, function(pongo) {
            pongo.ecs.addSystem((dt :Float, a :Component<Sprite>) -> {
                a.value.rotation += 1 * dt;
            });

            pongo.root.addChild(new FillSprite(0xffff0000, 50, 50).setXY(100, 100).centerAnchor());

            var e = pongo.ecs.createEntity();
            e.addComponent(pongo.root.firstChild);
        });
    }
}

About

Cross Platform Reactive-ish ECS Game Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages