I have a simple jump code which lets you jump only once? Maybe you could inhance it to multiple. I have been trying but haven't got it with multiple.
open window 640,512
x=20:y=450
label loop
setdrawbuf db
db=1-db
setdispbuf db
clear window
'CONTROLS
j=peek("port1")
if and(j,32)<>0 x=x+5
if and(j,128)<>0 x=x-5
if and(j,16384)<>0 jump=1
'CHK
if x<8 x=8:if x>632 x=632
'JUMP FUNCTIONS
if jump=0 then
grav=0
elsif jump=1 then
grav=grav+0.18
if grav>12 grav=12
y=(y-6)+grav
if y>450 then:jump=0:y=450:fi
fi
'DRAW PLAYER / RECTANGLE
setrgb 1,100+(jump*50),0,0
fill rect x-8,y-8,x+8,y+8
'DISPLAY STATUS
setrgb 1,100,0,0
text 10,10,"X: "+str$(x)+", Y:"+str$(y)
text 10,21,"Jump Stat: "+str$(jump)
text 10,32,"Grav: "+str$(grav)
text 10,43,"Times: "+str$(times)
wait 0.008
goto loop