diff --git a/src/app/components/game/command.ts b/src/app/components/game/command.ts
deleted file mode 100644
index 9773fe5..0000000
--- a/src/app/components/game/command.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export interface Command {
- step: number;
- type: string;
- payload: any;
-}
diff --git a/src/app/components/game/data/EEnemySize.ts b/src/app/components/game/data/EEnemySize.ts
new file mode 100644
index 0000000..fc1552f
--- /dev/null
+++ b/src/app/components/game/data/EEnemySize.ts
@@ -0,0 +1,5 @@
+export enum EEnemySize {
+ Tiny,
+ Normal,
+ Huge
+}
\ No newline at end of file
diff --git a/src/app/components/game/data/EProjectileEffectType.ts b/src/app/components/game/data/EProjectileEffectType.ts
new file mode 100644
index 0000000..5bd19a0
--- /dev/null
+++ b/src/app/components/game/data/EProjectileEffectType.ts
@@ -0,0 +1,3 @@
+export enum EProjectileEffectType {
+ Damage = 0
+}
diff --git a/src/app/components/game/game.component.html b/src/app/components/game/game.component.html
index 5c2ccd7..6642ba5 100644
--- a/src/app/components/game/game.component.html
+++ b/src/app/components/game/game.component.html
@@ -3,7 +3,7 @@
-
+
@@ -11,8 +11,7 @@
-
Step: {{ engine.currentStep }}
-
+
Step: {{ simMain.currentStep }}
diff --git a/src/app/components/game/game.component.ts b/src/app/components/game/game.component.ts
index 15505ff..698c80c 100644
--- a/src/app/components/game/game.component.ts
+++ b/src/app/components/game/game.component.ts
@@ -1,9 +1,8 @@
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { OptionsComponent } from '../options/options.component';
-import { GameState } from './gameState';
-import { SimulationEngine } from './simulationEngine';
-import { GameRules } from './gameRules';
-import { Command } from './command';
+import { SimMain } from './sim/SimMain';
+import { GdRoot } from './data/GdRoot';
+import { SimCommand } from './sim/commands/SimCommand';
@Component({
selector: 'app-game',
@@ -12,10 +11,11 @@ import { Command } from './command';
imports: [OptionsComponent],
})
export class GameComponent implements OnInit {
- engine!: SimulationEngine;
+ simMain!: SimMain;
private optionsOpen = false;
private isPaused = false;
private lastFrameTime = 0;
+ private tileSize = 10; // Size of each tile in pixels
@ViewChild('gameCanvas') canvasRef!: ElementRef