Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. if(BlockIsSolid[1,0] && BlockIsSolid[0,1] && AnyBlockIsSolidUnder[-1,0]):
  2. StepLeft
  3. elif(AnyBlockIsSolidUnder[0,0] && BlockIsEmpty[0,-1]):
  4. Jump
  5. elif(
  6. // Blir inte sann, då [-1,0] inte är solid
  7. BlockIsSolid[-1,0] && BlockIsSolid[1,0] && AnyBlockIsSolidUnder[1,1] && BlockIsEmpty[0,1] |
  8.  
  9. // Blir inte sann då [1,1] inte är solid
  10. BlockIsSolid[1,1] && BlockIsEmpty[0,1] |
  11.  
  12. // Blir inte sann då [1,0] inte är empty
  13. AnyBlockIsSolidUnder[2,0]&& BlockIsEmpty[1,0] && BlockIsEmpty[0,1]):
  14. Jump
  15. StepRight
  16. elif(AnyBlockIsSolidUnder[1,0] && BlockIsEmpty[1,0]):
  17. StepRight
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement