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

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy