Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

eix-js/core

Repository files navigation

Build Status License Version Minzipped size size

Eix-core

the core of the eix game engine

Getting started

To get started, you need to have npm and node installed on your machine, and then install @eix/core and ts-node with:

npm i @eix/core ts-node

Create an index.ts file, and import the library:

import { Ecs } from '@eix/core'

Ecs is the main class exposed by this engine:

const ecs = new Ecs()

ecs.addEntity({
    prop: true
})

ecs
    .flag('prop')
    .get<{prop:boolean}>()
    .each({prop} => console.log(prop)) // true

Playing around with the source:

First, clone this repo:

git clone "https://github.com/eix-js/core"

Then install the dependencies:

npm install

You can use npm test to run all tests and npm run docs to generate docs.

About

The core of the eix game engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •