Ok guyz.(Damn... Why do I have to start every post eith that!
)
Now the new version is available here!!! Don't take the first one 'cause it's full of bugs you know. Here's some info:
Fixed:
- Now the game is running at the same speed in every cpu (or should)
- Fruits are now randomized by timer() so they are always at different places.
Added:
- Worms head is colored blue
Here is the source(also in the box):
set display mode 320,200,32:hide mouse:a1#=101:a2#=100:b1#=102:b2#=100:c1#=103:c2#=100:d1#=104:d2#=100:e1#=105:e2#=100:f1#=106:f2#=100:g1#=107:g2#=100:h1#=108:h2#=100:i1#=109:i2#=100
randomize timer():fruitx#=rnd(300):fruity#=rnd(180):st#=timer():mov=4:sync on:sync rate 30
do:cls
ink RGB(255,255,128),RGB(255,255,128):box 0,0,5,200:box 315,0,320,200:box 0,195,320,200:box 0,0,320,5
randomize timer():if fruitx#>313:fruitx#=rnd(100):endif:if fruitx#<7:fruitx#=rnd(100):endif:if fruity#>193:fruity#=rnd(100):endif:if fruity#<7:fruity#=rnd(100):endif
dot fruitx#,fruity#,RGB(0,255,0):a1#=b1#:a2#=b2#:b1#=c1#:b2#=c2#:c1#=d1#:c2#=d2#:d1#=e1#:d2#=e2#:e1#=f1#:e2#=f2#:f1#=g1#:f2#=g2#:g1#=h1#:g2#=h2#:h1#=i1#:h2#=i2#
if upkey()=1 and mov<>2:mov=1:endif:if downkey()=1 and mov<>1:mov=2:endif:if leftkey()=1 and mov<>4:mov=3:endif:if rightkey()=1 and mov<>3:mov=4:endif
if mov=1:i2#=i2#-1:endif:if mov=2:i2#=i2#+1:endif:if mov=3:i1#=i1#-1:endif:if mov=4:i1#=i1#+1:endif
dot a1#,a2#,RGB(255,0,0) : dot b1#,b2#,RGB(255,0,0) : dot c1#,c2#,RGB(255,0,0) : dot d1#,d2#,RGB(255,0,0) : dot e1#,e2#,RGB(255,0,0) : dot f1#,f2#,RGB(255,0,0) : dot g1#,g2#,RGB(255,0,0) : dot h1#,h2#,RGB(255,0,0) : dot i1#,i2#,RGB(128,255,255)
if i1#>313:goto programend:endif:if i1#<7:goto programend:endif:if i2#>193:goto programend:endif:if i2#<7:goto programend:endif
randomize timer():if i1#=fruitx# and i2#=fruity#:fruitx#=rnd(300):fruity#=rnd(180):score#=score#+1:endif
ink RGB(255,0,0),RGB(255,0,0):set text font "system":set text size 1:set cursor 0,0:print "Score: ",score#:time#=timer()-st#:showtime#=60000-time#:if showtime#<1:goto programend2:endif:set cursor 200,0:print "Time Left: ",showtime#:sync
loop
programend: :sync off:set text font "Arial":set text size 20:set cursor 25,80:ink RGB(255,255,255),RGB(255,255,255):print "You Crashed!!! Press Any Key To Exit!":wait key:goto finalend
programend2: :sync off:set text font "Arial":set text size 20:set cursor 25,80:ink RGB(255,255,255),RGB(255,255,255):print "You Finished!!! Press Any Key To Exit!":set cursor 25,100:print "Finishing Score: ",score#:wait key:goto finalend
finalend:
Post your results, oppinions and suggests 'bout the game! And try to enjoy (Not sure if it's possible with this...
)
PS.
My high score in the new one is 10. Try to beat that...
Current project: Dodge Viper Car Game (Not named yet) Other car models are going to be included soon