Added gold count to the game

This commit is contained in:
Martin
2023-01-12 15:50:21 +01:00
parent b1153cd670
commit a8416732d7
4 changed files with 1124 additions and 642 deletions

View File

@@ -76,6 +76,7 @@ export class Game extends Component {
public start(): void {
this.gamePauser.pause();
Game.instance = this;
this.blackScreen.active = true;
}
public async play(userData: UserData, settings: GameSettings, translationData: TranslationData, testValues?: TestValues): Promise<GameResult> {
@@ -206,7 +207,7 @@ export class Game extends Component {
const modalLauncher = new GameModalLauncher(AppRoot.Instance.ModalWindowManager, this.player, this.gamePauser, upgrader, translationData);
this.itemManager.init(this.enemyManager, this.player, this.gameResult, modalLauncher, settings.items);
this.gameUI.init(this.player, modalLauncher);
this.gameUI.init(this.player, modalLauncher, this.itemManager, this.gameResult);
this.background.init(this.player.node);
if (testValues) {