Files
HexTowerDefense/dist/GameData/GdRoot.js
2026-04-19 01:16:27 +02:00

18 lines
475 B
JavaScript

import { GdEnemy, GdImage, GdLevel, GdSimulation, GdTower } from "./index.js";
export class GdRoot {
images = {};
enemies = [];
towers = [];
levels = [];
simulation = new GdSimulation();
async loadAsync() {
GdEnemy.addEnemies(this);
GdLevel.addLevels(this);
GdTower.addTowers(this);
await GdImage.addImagesAsync(this);
}
image(name) {
return this.images[name];
}
}
//# sourceMappingURL=GdRoot.js.map