Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix collision between robots. #2

Closed
recardona opened this issue Nov 18, 2013 · 0 comments
Closed

Fix collision between robots. #2

recardona opened this issue Nov 18, 2013 · 0 comments

Comments

@recardona
Copy link

When moving into the path of moving robots, crazy things can happen:

  1. The player can get stuck because the enemy keeps running into her
  2. The player can land on top of the robot and make the enemy disappear and make the game grind to a halt (thanks @arocho )
  3. The player could be forced back onto the tile she came from (admittedly, this is the best outcome).
recardona pushed a commit that referenced this issue Nov 19, 2013
…on" stack, so that, for every collision, the robot undos its position to the top of the stack. If it runs out of positions on the stack, it defaults to move downward.
recardona pushed a commit that referenced this issue Nov 21, 2013
1) When a robot is parked on top of a another robot's spawn point, the respawning robot will not respawn.
2) If a robot hits a nasty collision point that makes the robot stay in the world in an unmovable state, its watchdog timer will catch that and reset the robot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant