This shows you the differences between two versions of the page.
gamesballoons.kbs [2016/01/12 09:39] renejm |
gamesballoons.kbs [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{gamesballoons.png}} | ||
- | Fill the sky with animated semi-transparent balloons. Requires BASIC-256 0.9.9.28 or higher.\\ | ||
- | Tested with version 1.99.99.9 on 2016-01-12. | ||
- | < | ||
- | # gamesballons.kbs by: lrcvs, UglyMike | ||
- | # 2013-01-07 | ||
- | |||
- | # updated version with transparent baloons for 0-9-9.28 | ||
- | |||
- | CLG | ||
- | PX = 800 | ||
- | PY = 700 | ||
- | GRAPHSIZE PX, PY | ||
- | BALLONS = 200 #BALLONS | ||
- | R = 20 # RADIO | ||
- | DIM P (BALLONS,7) | ||
- | FOR V = 0 TO BALLONS - 1 | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | R = R - 1 | ||
- | IF R = 2 THEN R = 20 | ||
- | | ||
- | #if V % 2 = 0 then P[V,2] = (((RAND ) * -1)*P[V, | ||
- | #if V % 2 <> 0 then P[V,2] = ((RAND )*P[V, | ||
- | NEXT V | ||
- | k=1 | ||
- | FASTGRAPHICS | ||
- | |||
- | print "Press any key to stop" | ||
- | while key = 0 | ||
- | COLOR rgb(0,0,0) | ||
- | |||
- | #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
- | |||
- | #Options: | ||
- | |||
- | # | ||
- | |||
- | # | ||
- | |||
- | # | ||
- | |||
- | #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
- | |||
- | RECT 0,0,PX,PY | ||
- | FOR N = 0 TO V - 1 | ||
- | if ((P[N,0] + P[N,2]) < PX) and ((P[N,0] + P[N,2]) > 0) then | ||
- | | ||
- | else | ||
- | | ||
- | | ||
- | endif | ||
- | P[N,1] = P[N,1] - P[N,3] | ||
- | COLOR P[N,4] | ||
- | CIRCLE P[N, | ||
- | poly {P[N,0], P[N, | ||
- | spec= int(P[N, | ||
- | color grey | ||
- | line P[N, | ||
- | color rgb(255, | ||
- | circle(P[N, | ||
- | if P[N,1] < (-100) THEN P[N,1] = PY + (RAND * 100) + 1 | ||
- | NEXT N | ||
- | | ||
- | end while | ||
- | END | ||
- | </ |