home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jommeke
/
Jommeke.iso
/
movies
/
spotdiff.dir
/
00055_Script_55
< prev
next >
Wrap
Text File
|
2000-02-23
|
1KB
|
57 lines
on startclock
global level,secs,sexpic,oldticks,startsecs
set oldticks=0
set secs=float(190-(level*10))
if secs<10 then set secs=10
set startsecs=secs
set sexpic=float(400/secs)
starttimer
end
on updateclock
global level,secs,oldticks,sexpic,barch
put the timer into ticks
put float(ticks-oldticks) into elapticks
put ticks into oldticks
set secs=secs-float(elapticks/60)
-- put "secs"&&secs
set barx=(secs*sexpic)-400
set the loch of sprite barch to barx
if secs<=0 then lose
end
on timebonus
global secs,level,startsecs
put 20 into basic
set bonus=basic-(level/2)
if bonus<2 then set bonus=2
put "BONUSBONUSBONUSBONUSBONUSBONUSBONUS"&&BONUS
set secs=secs+bonus
if secs>startsecs then set secs=startsecs
end
on timefine
global secs,level,startsecs
put 2 into basic
set fine=basic+(level/3)
if fine>8 then set fine=8
put "FINEFINEFINEFINEFINEFINEFINEFINEFINEFINEFINEFINEFINE"&&FINE
set secs=secs-fine
end