From 5ffc1f66761e26832bdef5e43101802af25e9cc1 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 19 Nov 2022 15:26:05 +0100 Subject: [PATCH] Add door sound effects --- assets/sounds/effects/door_close.mp3 | Bin 0 -> 8497 bytes assets/sounds/effects/door_open.mp3 | Bin 0 -> 6937 bytes .../main/kotlin/com/last/commit/FirstScreen.kt | 2 +- .../com/last/commit/audio/GameSoundEffect.kt | 4 +++- .../kotlin/com/last/commit/audio/SoundEngine.kt | 2 +- core/src/main/kotlin/com/last/commit/map/Door.kt | 3 +++ 6 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 assets/sounds/effects/door_close.mp3 create mode 100644 assets/sounds/effects/door_open.mp3 diff --git a/assets/sounds/effects/door_close.mp3 b/assets/sounds/effects/door_close.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..841ee64bf5b85d7ac02fb230610287b6cfcf53fb GIT binary patch literal 8497 zcmdscXH-*NyX{U$LLi|RL(>2OLT^Eeq9Ftf5Rm=?f&>Ui6BQM(prJ_by-V*XMHCc2 zLzB>yuA;uuMT!Lw0YOfDFMju)A9tKT=g&EFjO>h^z4pj{=6vRQp0)P=&m=1FU%<}G z?;LXo7xN6F3}>z{Kg(ryZDZb8|b-#8oDOgM;rd5f>Mi#zbyzZV40j znP_fqe#%5wS64q1!^6XqOiVHH@#Du;CN?)WcbVAV-)H`pIa$xtKwU{yMFrCO=Lt2? z7-*X*0Gj&!94tn+9{;)UzxI3oXFXG(Z&1K=5dh!-z<~w;5Q5wz+#fO%lHl700wW?^f|RiB%ex4z66 z@F-vR)O?cnA?IPm@!N8HdmuHO28lSAK@+d96mUeURy6OXi|E+iiD{WQ9{>FchUW$k z`<>`1nFqyhpxBzrH&~1Pngg=a)X3@>)qQYd!tm@qJ4Ejr3OMS+RuKn!|6>b8V3y z5Q~!lz)haAo)9`Ly)=zQ0)UoJCsIm1Nu`6&ny5{rdoI#0@=LgSz<3R*(?t*(rD51M z=i;Krq3W97@SzvJddB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toPe1sr7s_@s+HiUGKHX`wMSFIKGml%;PmMZ@~k&WNj#;x+zC=Zt_3 zQmRTHe%*;%KYlxh)RLd6uALYQmyRKoU%a!SJf2P4x`=$PyK!nnZ2f|pKVuek7GtGr zyf7uTLp)SRCurN)7&8z?iG<&x?f`3V6-<8q-}M%PyG&+9SMJYDDp|B4u6j%=E055L z@C&-xH(D7x``Opx>WkB!ksN0nd<#k$(SOC(cjEk%3;O5Hj-l4BfaPr*sT@;c<+eO;y%V6SY zJaYzM&j-Kb*#y=lWl78={daGLe0HSvcrX4yRLLR&ECR;O3eSPFvFqsyhCTk!U|0}j zTX+S*7pi_lou5~{(6s{eptRG~ngNK9S9S>+h3kZ#5-LMo-6aJJYpYk*m@=MdR9u={ z@D0)4{Sv6g`{G@~(b*`V5kv_i3!&3f;q{d+^vohvIK+51a=HN|+ zz>~0cujAs9PIzu##)e~gpO1ODx_vwQo#x7cZYesEo*4KltgyUPF;9-~cRZg$);`D^ zxpArg*+^i|Dw3*I`FCZ|&4PckbUT0RtH8v-E<@w@hw?*@FOcpg+_yHv4()dt2@abz4|+BC%ti7Ytf9y8dAc1 zE)~hgEdTu?xcdKt|8l^8y6>L_0I;s5)OUl~R3A(tNcrV^EGsf~KmvPszE~V)=#T0CC&kTt1xS6L_!R(dGv$LH#KT;JlmY;N{%;iZ FKLD{=e_8+l literal 0 HcmV?d00001 diff --git a/assets/sounds/effects/door_open.mp3 b/assets/sounds/effects/door_open.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..5460e6dbc0f8589783a4a90db7f98a620af34ad9 GIT binary patch literal 6937 zcmds+XHXN3w}(RsFD0~4q$;6z0|_943ZX~{ASLu7y%(v16e$4{2uSZr?*ZvZks_c- zZ-RgY5b5yJMG(2*=>31ZpYDfypP5Z&XEU?A&;ItDlil;vcw4~#fRU5C!^KZ%FBW1>}8B zdhJ|b9;0yn?i(C2pQ? zf&a(8qsS@;l5qli9Bu^m!61obCqSNIjekg}S$G6Q|mCd;@$+I!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ZXz>j0*O9uI=W49wStbif(ZM;-~KWIb*g(Y}db>YnVh!P&@%tq_0byB@gGUl zPq;TC6c#Kz+8(CmL|FdmXZxzRpgvO4*##BAuH z;XbJCXT8sm;z1aR9>|d*0?08tFJg%R^KZYVU})DD4Jr=idvUlC65`k5vyTkQbC0+~ z_S#41sm94Q7IRTA-X@Mp^3wNK6QTWKTzPYJ08x3ATWzo6L|Yw<3I|uu6h=ccE!PU( zhbJTLL2J3P&>KiPsWLXD`0g>~!|30mQrN*W8+98BcX&70goL^HmxU+~v8PYWCBjiY3FiaGzCDj=P)MRsa0H9apc(apWaQPdD1?cj zoxgJNf+v428IiX&Bxy&1&8bjXA$}Z^l3is682d z#Y+bkE*ti!LnTOpjM$KnE_reI4*-zF@(LFv#E!X08X`)enEQ}VR*{}5I#IDatnb;Q z0rC2m+A zg7f|%G~cSKQ<;TaH=#^vm4b*U$X-ep!=kTm#L{u(vhypAR`>9v;@DC&yp8drq8Za( r`G3E6DF46DrMQdk{oK0$D+P!3A91u|hMWYb>tAvI_s{Zw;SBx@!~;6h literal 0 HcmV?d00001 diff --git a/core/src/main/kotlin/com/last/commit/FirstScreen.kt b/core/src/main/kotlin/com/last/commit/FirstScreen.kt index b0f608b..a7e54c3 100644 --- a/core/src/main/kotlin/com/last/commit/FirstScreen.kt +++ b/core/src/main/kotlin/com/last/commit/FirstScreen.kt @@ -61,7 +61,7 @@ class FirstScreen(val gameState: GameState) : Screen, InputProcessor { shapeRenderer.setAutoShapeType(true) Gdx.input.setInputProcessor(this) - gameState.soundEngine.play(GameMusic.WORLD_MUSIC, 0.5f) + gameState.soundEngine.play(GameMusic.WORLD_MUSIC, 0.25f) } fun loadGameConfig(): GameConfig { diff --git a/core/src/main/kotlin/com/last/commit/audio/GameSoundEffect.kt b/core/src/main/kotlin/com/last/commit/audio/GameSoundEffect.kt index 51b58dd..424ce22 100644 --- a/core/src/main/kotlin/com/last/commit/audio/GameSoundEffect.kt +++ b/core/src/main/kotlin/com/last/commit/audio/GameSoundEffect.kt @@ -4,6 +4,8 @@ import com.last.commit.audio.GameSound public class GameSoundEffect(name: String): GameSound(name) { companion object { - val STEPS_INDOOR = GameSoundEffect("steps_indoor.mp3"); + val STEPS_INDOOR = GameSoundEffect("steps_indoor.mp3") + val DOOR_OPEN = GameSoundEffect("door_open.mp3") + val DOOR_CLOSE = GameSoundEffect("door_close.mp3") } } \ No newline at end of file diff --git a/core/src/main/kotlin/com/last/commit/audio/SoundEngine.kt b/core/src/main/kotlin/com/last/commit/audio/SoundEngine.kt index d0e2b9a..cb674d0 100644 --- a/core/src/main/kotlin/com/last/commit/audio/SoundEngine.kt +++ b/core/src/main/kotlin/com/last/commit/audio/SoundEngine.kt @@ -19,8 +19,8 @@ public class SoundEngine { println("Playing sound ${gameSound.name}") } else if (gameSound is GameMusic) { val music = loadMusic(gameSound.name) - music.stop() music.volume = volume + music.setLooping(true) music.play() } } diff --git a/core/src/main/kotlin/com/last/commit/map/Door.kt b/core/src/main/kotlin/com/last/commit/map/Door.kt index 2a9df91..450b094 100644 --- a/core/src/main/kotlin/com/last/commit/map/Door.kt +++ b/core/src/main/kotlin/com/last/commit/map/Door.kt @@ -4,6 +4,7 @@ import GameState import com.badlogic.gdx.maps.tiled.TiledMapTileLayer.Cell import com.badlogic.gdx.math.Rectangle import com.last.commit.Wall +import com.last.commit.audio.GameSoundEffect class Door(gridX: Int, gridY: Int, wallCollider: Rectangle, cell: Cell) : Wall(gridX, gridY, wallCollider, cell), Interactable { @@ -11,11 +12,13 @@ class Door(gridX: Int, gridY: Int, wallCollider: Rectangle, cell: Cell) : override fun interact(otherCollider: Rectangle, state: GameState) { println("interacting with door $this") if (isClosed) { + state.soundEngine.play(GameSoundEffect.DOOR_OPEN) isOpen = true } else if (isOpen) { if (getCollider().overlaps(otherCollider)) { // can't close the door cause it is colliding with given collider } else { + state.soundEngine.play(GameSoundEffect.DOOR_CLOSE) isOpen = false } }