Skip to content

gpaluk/love-typescript

Repository files navigation

love-typescript

ECS written in TypeScript

import { RenderService } from "services/RenderService";
import { ImageComponent } from "components/ImageComponent";

let entity:Entity = new Entity()
entity.addComponent(NameComponent).name = "Component 1"
entity.addService(LogService)
entity.addService(RenderService)

entity.getComponent(ImageComponent).image.src = "assets/game.png"
ServiceRegistry.update()

About

Entity Component System (ECS) for TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages