Refactor player and room to support adding effects.

This commit is contained in:
2021-05-25 16:02:06 -07:00
parent b3058097b4
commit ccd4974266
13 changed files with 198 additions and 79 deletions

13
State.ts Normal file
View File

@ -0,0 +1,13 @@
import { GameData, SceneProperties } from "./types.ts";
import Player from "./Player.ts";
import Scene from "./Scene.ts";
export class State {
#player: Player;
#scene: Scene;
constructor(gameData: GameData<SceneProperties>) {
this.#player = new Player();
this.#scene = new Scene(gameData);
}
}