Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(BlockIsSolid[1,0] && BlockIsSolid[0,1] && AnyBlockIsSolidUnder[-1,0]):
- StepLeft
- elif(AnyBlockIsSolidUnder[0,0] && BlockIsEmpty[0,-1]):
- Jump
- elif(
- // Blir inte sann, då [-1,0] inte är solid
- BlockIsSolid[-1,0] && BlockIsSolid[1,0] && AnyBlockIsSolidUnder[1,1] && BlockIsEmpty[0,1] |
- // Blir inte sann då [1,1] inte är solid
- BlockIsSolid[1,1] && BlockIsEmpty[0,1] |
- // Blir inte sann då [1,0] inte är empty
- AnyBlockIsSolidUnder[2,0]&& BlockIsEmpty[1,0] && BlockIsEmpty[0,1]):
- Jump
- StepRight
- elif(AnyBlockIsSolidUnder[1,0] && BlockIsEmpty[1,0]):
- StepRight
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement