Every shape can jump in the upward direction by invoking the jump command with distance to jump. For example, to jump a rectangle named block by 100 units of distance, the command we write is
block.jump(100)

a general syntax for invoking move is
<name of shape>.jump(<distance>)
To make the block jump when the key w is pressed we write
shape land(line):
.color = BLACK
.point1 = (500, 350)
.point2 = (0, 350)
endshape
shape block(rectangle):
.color = RED
.position = (50, 284)
.fill = RED
.width = 25
.height = 65
endshape
onkey w
block.jump(40)
endonkey
Notice any errors or typos? Please let us know or feel free to edit jump.md and issue a pull request.
Follow us on twitter @RevineLang
Built by Arpit Bhayani