Oma enkka 10.69 sekuntia ja klikkasin laatikkoa 27 kertaa :P
Code: Select all
FrameLimit 55
SCREEN 640,480
PositionMouse 320,240
drop#=10
prot=1
g#=255
of=1
Repeat
If Timer() > a+10 Then
seks#=seks+0.01
If prot=0 Then
drop=drop*1.005
EndIf
EndIf
If prot=0 Then
PositionMouse MouseX(),MouseY()+drop
EndIf
If prot=0 Then
If MouseX() >= 620 Then MakeError "Selvisit "+seks+"s ja klikkasit laatikkoa "+m+" kertaa"
If MouseX() <= 20 Then MakeError "Selvisit "+seks+"s ja klikkasit laatikkoa "+m+" kertaa"
If MouseY() >= 460 Then MakeError "Selvisit "+seks+"s ja klikkasit laatikkoa "+m+" kertaa"
If MouseY() <= 20 then MakeError "Selvisit "+seks+"s ja klikkasit laatikkoa "+m+" kertaa"
Color 255,0,0
Line 10,10,630,10
Line 630,10,630,470
Line 630,470,10,470
Line 10,470,10,10
SetWindow "Mouse is falling :("
Color 255,255,255
Text 25,25,"Don't hit the borders!!"
Text 25,40,"Time elapsed: "+seks+""
Else
SetWindow "Mouse is normal :)"
If MouseX() >= 620 Then PositionMouse 610,MouseY()
If MouseX() <= 20 Then PositionMouse 30,MouseY()
If MouseY() >= 460 Then PositionMouse MouseX(),450
If MouseY() <= 20 Then PositionMouse MouseX(),30
Color 255,255,255
Text 25,25,"Click box and keep it green"
Text 25,40,"Time elapsed: "+seks+""
Line 10,10,630,10
Line 630,10,630,470
Line 630,470,10,470
Line 10,470,10,10
If g <= 10 Then
k=0
prot=0
EndIf
g=g-1.3
Color 0,g,0
If of=1 Then
x=Rand(20,570)
y=Rand(20,410)
of=0
EndIf
Box x,y,50,50,ON
If MouseHit(1) And MouseX() >= x And MouseX() <= x+50 And MouseY() >= y And MouseY() <= y+50 Then
If g >= 225 Then
g=255
Else
g=g+30
EndIf
of=1
m=m+1
EndIf
Box 0,470,xx,10,ON
xx=(255-g)/255
EndIf
DrawScreen
Forever