Advertisement
Guest User

Algorithm

a guest
May 9th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. 1) Move entity horizontally one pixel.
  2. 2) Does entity collide with solid object? If yes, go to 3. If no, go to 7.
  3. 3) Is object a slope? If yes, go to 4. If no, go to 8.
  4. 4) Move entity vertically one pixel.
  5. 5) Does entity collide with solid object? If yes, go to 6. If no, go to 7.
  6. 6) Is object a slope? If yes, go to 4. If no, go to 8.
  7. 7) Is entity done moving? If yes, go to 8. If no, go to 1.
  8. 8) Stop moving entity.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement