kaykayyali d2e3c8e385 M1.3: UnitFactory + deferred spawning — RED→GREEN (4 tests)
- Added src/systems/UnitFactory.js with spawnInfantry() and spawnTank()
- Wires into Map_Player.create() with goodGuys/badGuys containers
- Auto-spawn conditional: skip createInfantry() when connected to Colyseus
- Spawns 2 test infantry on game start for immediate testing
- createInfantry() made defensive — won't recreate containers if they already exist
- 4 new tests: team assignment (player/enemy), container routing, multiple spawns
- 10 JS suites pass (170 tests), zero regressions against pre-existing baseline
2026-05-30 05:41:57 +00:00
2026-05-24 00:12:57 +00:00
2026-05-24 00:12:57 +00:00
2026-05-24 00:12:57 +00:00
2026-05-24 00:12:57 +00:00
2026-05-24 00:12:57 +00:00
Description
No description provided
Readme 2.6 MiB
Languages
JavaScript 83.9%
TypeScript 14.4%
Python 1.4%
CSS 0.2%