- [NEW] Sound everywhere

- Game logic extracted to game.lua
This commit is contained in:
2022-12-28 12:25:45 +01:00
parent 0a8054c67f
commit 02ad5addad
10 changed files with 378 additions and 350 deletions

View File

@@ -73,6 +73,7 @@ function imp.update()
imp.x=imp.x-2
if imp.x==78 then
fireball.init(imp.hab,imp.x+8,imp.y+4,imp.flip)
playchirp(audio_hit)
imp.flip=not imp.flip
elseif imp.x==-12 then
imp.reset()
@@ -81,6 +82,7 @@ function imp.update()
imp.x=imp.x+2
if imp.x==4 then
fireball.init(imp.hab,imp.x+8,imp.y+4,imp.flip)
playchirp(audio_hit)
imp.flip=not imp.flip
elseif imp.x==92 then
imp.reset()