Reset player position at the start of each new level. #12
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Whenever all robots are destroyed a new level is ushered in. The player position stays the same, but new robots get spawned. This puts the game slightly off-balance. To balance the odds the player needs to be re-positioned to the center of the screen before new robots are spawned in.
resetPlayer()
in player.go