Print "There is only ONE way to win this Totally newb game"; : wait key:cls
Print "To click the green button! You have 90 miliseconds to click once the mouse is on the button :)"; : wait key:cls
x=200:y=200:Score#=0
ink rgb(0,234,122),0
sync on : sync rate 0
do
box x,y,x+45,y+30
if mousex()>x and mousex()<x+45 and mousey()>y and mousey()<y+30
if mouseclick()=1
if hold = 0
hold = 1
cls : text 10,20,"You WIN!!!"; Inc Score#,1
x=RND(Screen width()-450) : y=RND(Screen Height()-30)
T = timer()
endif
endif
endif
Seconds#=.90
Elapsed#=(Timer()-T)/1000
TimeLeft#=Seconds#-Elapsed#
Text 0,0,Str$(TimeLeft#)
if TimeLeft#<=0.0
cls : x=RND(Screen width()-450) : y=RND(Screen Height()-30)
T=Timer()
endif
if mouseclick() = 0 then hold = 0
Set cursor 230,10:Print "Score = ";Score#;
center text 500,10,str$(screen fps())
sync
loop
I don't really get why TimeLeft is always the same number though...
Immunity and Annihalation makes Immunihalation...