Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

noahlange/tecs-example

Repository files navigation

tecs-example

tecs-example


An example game thing to demonstrate the proper care and feeding of tecs. Primary dependencies include PIXI for graphics, Preact for the UI and malwoden for FOV calculations.

Takes extensive inspiration from ddmills' sleepy and Fritzy's roguelike example for ape-ecs.

git clone https://github.com/noahlange/tecs-example.git
cd tecs-example
npm i && npm start

Includes two misc. command line tools:

  • atlas-gen: generates image atlases with animation data.
  • jsonz: compress JSON with pako
    • jsonz (zip/unzip) "my-file.json"
    • import using jsonz.read()

ideas / todo

  • integration with https://github.com/claus/react-dat-gui
    • decorators to define component field types?
  • reimplement dialogue system
  • confirm correct behavior of object destruction/recreation on chunk changes