Hello,
include "asm.inc"
Window 1024,768,1
LoadSprite "bmp/bubble.bmp",1
LoadSprite "bmp/huhn.bmp",1
single x [1000]
single y [1000]
single Xv[1000]
single Yv[1000]
single Lf[1000]
sys xstart = ScrW()/15
sys ystart = ScrH()/15
For i=1 to 1000
Lf[i] = Rand(1,600)
x [i] = xstart
y [i] = ystart
Yv[i] = Rand(1,4)
Xv[i] = Rand(1,8)
Next
while key(27)=0
Cls 0,0,0
For i=1 to 1000
Sprite 1,x[i],y[i],rand(16,32),rand(16,32),0
x [i] = x [i] + Xv[i]
y [i] = y [i] + Yv[i]
Yv[i] = Yv[i] + 0.7
iF y[i] >=800
Yv[i] = Yv[i]-Yv[i] * Rand(2,16) /9
y [i] = 768
End iF
Lf[i] = Lf[i] -1
iF Lf[i] <=0
Lf[i] = Rand(1,600)
x [i] = xstart
y [i] = ystart
Yv[i] = Rand(1,4)
Xv[i] = Rand(1,8)
End iF
Next
sprite 2,0,0,128,128,0
Color 128,128,255
Text 200,16,28,"EGGS GRAVITY DELUXE"
Redraw
Wait 20
wend
WinEnd
.