df
# Type your text here:ClrDraw :0→X // x positie speler :7→Y // y positie speler :1→VX // snelheid horizontaal :0→VY // verticale snelheid :0.5→G // zwaartekracht :randInt(10,15)→OX // eerste obstakel x :7→OY // obstakel y (grondniveau) :0→S // score :Repeat getKey(54) // [CLEAR] stopt :ClrDraw :Pt-On(X,Y) // speler :Line(OX,OY,OX,OY+2) // obstakel :getKey→K :If K=24 // pijltje omhoog → spring :Then :-2→VY :End VY+G→VY Y+VY→Y X+VX→X OX-1→OX // obstakel beweegt :If X≥OX and X≤OX+1 and Y≥OY // botsing :Then :Text(5,5,"GAME OVER") :Disp "Score:",S :Pause :Stop :End :If OX<0 :Then :84→OX :S+1→S :End :Pause 0.05 :End