|
|
|
|
|
by cherryteastain
293 days ago
|
|
> How would you unit test an enemy that spawns, moves towards the player, and attacks? You can easily write a 'simulation' version of your event loop and dependency inject that. Once time can be simulated, any deterministic interaction can be unit tested. |
|