Hello,
include "asm.inc"
window 640,480,1
SetFrames 12
LoadSprite "bmp/e5x.bmp",5
LoadSprite "bmp/b5x.bmp",5
LoadSprite "bmp/c5x.bmp",5
Type STARS
sys x, y
End Type
STARS s[200]
for j=0 to 200
s[j].x = rand(0,639)
s[j].y = rand(0,479)
next
int z[16], zx[16], zy[16]
int b[16], bx[16], by[16]
int c[16], cx[16], cy[16]
for i=0 to <16
z [i] = rand(0, 4) : b [i] = rand(0, 4) : c [i] = rand(0, 4)
zx[i] = rand(0,512) : bx[i] = rand(0,512) : cx[i] = rand(0,512)
zy[i] = rand(0,352) : by[i] = rand(0,352) : cy[i] = rand(0,352)
next
while key(27)=0
cls 0,0,0
for j=0 to <200
color j+55,j+55,j+55
fillcircle s[j].x, s[j].y, 4
next
for i=0 to <16
Sprite 1,zx[i],zy[i],128,128,z[i]
Sprite 2,bx[i],by[i],128,128,b[i]
Sprite 3,cx[i],cy[i],128,128,c[i]
next
for i=0 to <16
z[i] +=1
b[i] +=1
c[i] +=1
if z [i] = 5
z [i] = 0
zx[i] = rand(0,512)
zy[i] = rand(0,352)
end if
if b [i] = 5
b [i] = 0
bx[i] = rand(0,512)
by[i] = rand(0,352)
end if
if c [i] = 5
c [i] = 0
cx[i] = rand(0,512)
cy[i] = rand(0,352)
end if
next
text 210,8,14,"RGB FIREWORK"
sync()
wend
winEnd
.