updated cratestack test script

git-svn-id: svn://anubis/anaglym/trunk@297 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2010-07-27 15:34:06 +00:00
parent a2ecd9bbd3
commit 219b3f1f40

View File

@ -23,6 +23,7 @@ function init_event()
ag.setCamera(2, -12, 8, 0, 0, 2, 0, 0, 1)
iris = ag.loadSound("iris.mp3")
hit_pins = ag.loadSound("hit_pins.mp3")
end
function key_down_event(key)
@ -48,6 +49,10 @@ function key_down_event(key)
iris:resume()
playing = true
end
elseif (key == "h") then
hit_pins:play()
elseif (key == "l") then
hit_pins:loop(3)
end
end