ClikeX / PRG08-Typescript-Game

PRG08 Typescript Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PRG08-Typescript-Game

Class diagram

Pull requests

Week 4: Pull request

Week 6:

Singleton

The Singleton pattern is applied at the game instance:

public static getInstance() {
    if (!Game.gameInstance) {
        Game.gameInstance = new Game();
    }
    return Game.gameInstance;
}

It is called by the following code:

window.addEventListener("load", function () {
    let game = Game.getInstance();
});

Polymorphism

Strategy pattern

Observers

About

PRG08 Typescript Game


Languages

Language:TypeScript 100.0%