- Musica i so amb SDL_Mixer

This commit is contained in:
2023-01-12 19:01:38 +01:00
parent e47441ee08
commit 1a1ff51a24
34 changed files with 169 additions and 129 deletions

View File

@@ -73,7 +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)
play(audio_hit)
playsnd(audio_hit)
imp.flip=not imp.flip
elseif imp.x==-12 then
imp.reset()
@@ -82,7 +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)
play(audio_hit)
playsnd(audio_hit)
imp.flip=not imp.flip
elseif imp.x==92 then
imp.reset()