updated cratestack test script
git-svn-id: svn://anubis/anaglym/trunk@297 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
a2ecd9bbd3
commit
219b3f1f40
@ -23,6 +23,7 @@ function init_event()
|
|||||||
ag.setCamera(2, -12, 8, 0, 0, 2, 0, 0, 1)
|
ag.setCamera(2, -12, 8, 0, 0, 2, 0, 0, 1)
|
||||||
|
|
||||||
iris = ag.loadSound("iris.mp3")
|
iris = ag.loadSound("iris.mp3")
|
||||||
|
hit_pins = ag.loadSound("hit_pins.mp3")
|
||||||
end
|
end
|
||||||
|
|
||||||
function key_down_event(key)
|
function key_down_event(key)
|
||||||
@ -48,6 +49,10 @@ function key_down_event(key)
|
|||||||
iris:resume()
|
iris:resume()
|
||||||
playing = true
|
playing = true
|
||||||
end
|
end
|
||||||
|
elseif (key == "h") then
|
||||||
|
hit_pins:play()
|
||||||
|
elseif (key == "l") then
|
||||||
|
hit_pins:loop(3)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user