Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> How would you unit test an enemy that spawns, moves towards the player, and attacks?

You use a second enemy that spawns, moves towards the "enemy", and attacks.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: