0.0.4 • Published 4 years ago

yak-engine v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Yak Engine

In order to create a new application create a class that inherits from the abstract Application.ts class

export default class Game extends Application {
    // Executed once the application has finished initializing.
    onStart(): void {

    }
}

When the page finished loading create a new instance of your game class and call the init() method to initialize the game.

window.addEventListener((event) => {
    let game = new Game();
    game.start();
});

Once the init() method has finished bootstraping the application the onStart() method within the your game class will be executed.

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago