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

> If there were multiple warriors then your code would no longer make sense, as the control logic would have to be changing the player_instance.warrior object.

You need to keep previous state about warrior. E.g. delta health.



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

Search: