Liste der Anhänge anzeigen (Anzahl: 2)
Allright, something is properbly wrong still, but here it is:
Zitat:
--Colours hehe.
white = Colour.new(255, 255, 255)
--Ok loading.
--Err, no loading, lol.
--So images then.
buttonbg = Image.load("button.png")
buttonbg2 = Image.load("button2.png")
--Timer for refleks.
timer1:start(0)
random = math.random(75, 250)
--ok game now.
while true do
pad = Controls.read()
screen:blit(0, 0, buttonbg, false)
screen.flip
if pad:start then
break
end
if timer1:time() > random then
random = math.random(75, 250)
backgrounddisplay = background[current + 1] -- I dont understand this one.
timer:reset(0)
timer:start()
end
reactiontimer:start(0)
while true do--for 'X' lets say
pad = Controls.read()
if pad:cross() then
reactiontimer:stop()
screen:print(5, 5, reactiontimer:time())
end
end
Just for fun i included the button images. I know, very ugly ones...