Hi all,
Just a thought, a few of you might like to see if they can finsh this game off.
1. like finsh wins lines dectection.
2. Put in a line to say where win is.
3. make a handle or push button in stead of spacebar.
4. put a cover over the reels.
Rem Project: xxxbar
Rem Created: 5/2/2005 2:45:30 PM
Rem ***** Main Source File *****
rem Standard Setup Code
sync on : sync rate 30 :
backdrop on
color backdrop rgb(0,0,0) : hide mouse
set text font "arial" : set text size 12 : set text transparent
autocam off
rem load reels
load image "xobarimage.bmp",1
MAKE OBJECT CYLINDER 1,30
zrotate object 1,90
TEXTURE OBJECT 1,1
make object cylinder 2,30
TEXTURE OBJECT 2,1
zrotate object 2,90
make object cylinder 3,30
TEXTURE OBJECT 3,1
zrotate object 3,90
position camera 0,0,-100
money#=100
rem setup reels to random start
t=timer()+10+rnd(10)
position object 1,-40,0,0
yrotate object 1,ypos1#+wrapvalue(360)
position object 2,0,0,0
yrotate object 2,ypos2#+wrapvalue(360)
position object 3,40,0,0
yrotate object 3,ypos3#+wrapvalue(360)
if timer()<t
inc ypos1#,45
if ypos1#=>360 then ypos1#=0
endif
if timer()<t+10
inc ypos2#,45
if ypos2#=>360 then ypos2#=0
endif
if timer()<t+15
inc ypos3#,45
if ypos3#=>360 then ypos3#=0
endif
rem start
do
rem check if we have any cash
if money#=0
cls
text 100,100,"Ho dear we is out of money cash some more?"
if inkey$()="y" then money#=100
endif
rem check if spacebar pressed
if spacekey()=1 and money#<>0
spinover=1
if roll=0
t=timer()+100+rnd(1000)
money#=money#-10
roll=1-roll
win=0
endif
endif
rem roll the reels
position object 1,-40,0,0
yrotate object 1,ypos1#+wrapvalue(360)
position object 2,0,0,0
yrotate object 2,ypos2#+wrapvalue(360)
position object 3,40,0,0
yrotate object 3,ypos3#+wrapvalue(360)
`t=timer()+10000
if timer()<t
inc ypos1#,45
if ypos1#=>360 then ypos1#=0
endif
if timer()<t+1000
inc ypos2#,45
if ypos2#=>360 then ypos2#=0
endif
if timer()<t+1500
inc ypos3#,45
if ypos3#=>360 then ypos3#=0
else
spinover=0
endif
rem show whats going on
text 0,0,str$(timer())+" "+str$(t)+"ypos1#="+str$(ypos1#)+"ypos2#="+str$(ypos2#)+"ypos3#="+str$(ypos3#)
text 0,30,"your Money"+str$(money#)+" roll="+str$(roll)
rem check for a win
if ypos1#=0 and ypos2#=0 and ypos3#=0 and win=0
center text screen width(),50,"you win on zero"
money#=money#+100
win=1
endif
if ypos1#=315 and ypos2#=315 and ypos3#=315 and win=0
center text screen width(),50,"you win on big time"
money#=money#+3000
win=1
endif
rem if go over then restet to start again
if spinover=0 and roll=1
roll=1-roll
endif
sync
loop
I am finshing it myself but just thought few might to show what they did on this thread.
In Space No One can Hear You Scream! (When your comm Line is cut?)