deo.py

Created by 4244

Created on August 28, 2025

726 Bytes

df


# Type your text here:ClrDraw
:0X        // x positie speler
:7Y        // y positie speler
:1VX       // snelheid horizontaal
:0VY       // verticale snelheid
:0.5G      // zwaartekracht
:randInt(10,15)OX  // eerste obstakel x
:7OY       // obstakel y (grondniveau)
:0S        // score

:Repeat getKey(54)   // [CLEAR] stopt
:ClrDraw
:Pt-On(X,Y)           // speler
:Line(OX,OY,OX,OY+2)  // obstakel

:getKeyK
:If K=24              // pijltje omhoog  spring
:Then
:-2VY
:End

VY+GVY
Y+VYY

X+VXX
OX-1OX             // obstakel beweegt

:If XOX and XOX+1 and YOY       // botsing
:Then
:Text(5,5,"GAME OVER")
:Disp "Score:",S
:Pause
:Stop
:End

:If OX<0
:Then
:84OX
:S+1S
:End

:Pause 0.05
:End

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.