0.1.3 • Published 5 years ago

@krol22/paula v0.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Paula

Paula is a Entity Component System written in TypeScript.

Installation

Use the npm repository to install paula.

npm install @krol22/paula

Basic usage

import { ECS, EcsSystem, EcsEntity } from '@krol22/paula';

const iterationType = 'ITERATION';

// Define your system
class IteratingSystem extends EcsSystem {
    tick(delta) {
        this.systemEntites.forEach((iterationEntity) => {
            const iterationComponent = entity.getComponent(iterationType);

            iterationComponent.value += 1;
        });
    }
}

const iteratingSystem = new IteratingSystem([iterationType]);
0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago