Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 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å blocket till höger är empty
  7. BlockIsSolid[-1,0] && BlockIsSolid[1,0] && AnyBlockIsSolidUnder[1,1] && BlockIsEmpty[0,1] |
  8. // Blir inte sann då [1,1] inte är solid
  9. BlockIsSolid[1,1] && BlockIsEmpty[0,1] |
  10. // Blor inte sann då [1,0] inte är empty
  11. AnyBlockIsSolidUnder[2,0]&& BlockIsEmpty[1,0] && BlockIsEmpty[0,1]):
  12. Jump
  13. StepRight
  14. elif(AnyBlockIsSolidUnder[1,0] && BlockIsEmpty[1,0]):
  15. StepRight
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement