Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Move entity horizontally one pixel.
- 2) Does entity collide with solid object? If yes, go to 3. If no, go to 7.
- 3) Is object a slope? If yes, go to 4. If no, go to 8.
- 4) Move entity vertically one pixel.
- 5) Does entity collide with solid object? If yes, go to 6. If no, go to 7.
- 6) Is object a slope? If yes, go to 4. If no, go to 8.
- 7) Is entity done moving? If yes, go to 8. If no, go to 1.
- 8) Stop moving entity.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement