Created
October 26, 2016 04:07
-
-
Save zeroeth/9f6a4504e3234f27a6a564984c59ebd0 to your computer and use it in GitHub Desktop.
weeb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| direction = Randperm(4); | |
| jump_distance = Randperm(2); | |
| switch direction | |
| case 1 | |
| xpos = xpos; | |
| ypos = ypos + jump_distance; | |
| case 2 | |
| xpos = xpos; | |
| ypos = ypos - jump_distance; | |
| case 3 | |
| xpos = xpos - jump_distance; | |
| ypos = ypos; | |
| case 4 | |
| xpos = xpos + jump_distance; | |
| ypos = ypos; | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment