Reix is a set of low level & typesafe & efficient game-engine utils. That means:
- No rendering engine
- No physics engine
- No [insert thing game engines usually have here]
Curently this repo contains a few packages including:
- A typesafe entity component system
- A bitfield based event emitter
- Rxjs integration for that event emitter
- Generalised computation nodes
And guess what, we even have docs (well tehnically those are generated from comments but who cares).
I started working on this because I want to have some nice tools to use during game jams.
Of course, contibutions are welcome!
Just open an issue and you might get your X thingy!
Do you know how to add the X thingy yourself? Keep reading and I'll show you how to add things to this project by yourself!
First, clone this repo and cd into the created directory:
git clone https://github.com/Mateiadrielrafael/reix
cd reix
Then, install the dependencies bootstrap and apply patches:
npm install
npx lerna bootstrap
npx patch-package
If you are using visual studio code you'll also need to install the prettier extension.
There are 3 ways of running the tests:
- Run the tests on the chanegd packages:
npm run test:changed
- Run all tests:
npm run test
- Run all tests in the same mocha call:
npm run test:root
The second method will run the mocha cli in each package (using lerna exec), while the second runs it once in the root directory.
There are 2 ways to run build the packages:
- Build all of them:
npm run build:all
- Build what changed
npm run build
- Build once:
npm run docs
<<<<<<< HEAD
- Watch mode:
npm run docs:dev
and then go to http://localhost:8080
=======
bc5d9a234023138baac0a7f6071c0a47d50bdeea
To create a pcakge called foo run:
./scripts/create.sh foo
Well yes, but actually no. This package follows the conventional commit specification. If you use visual studio code you can use the vscode-commitizen extension