diff --git a/objects/oGame/Create_0.gml b/objects/oGame/Create_0.gml index 2fe0595..f1386d2 100644 --- a/objects/oGame/Create_0.gml +++ b/objects/oGame/Create_0.gml @@ -3,6 +3,7 @@ randomize(); +audio_play_sound(snFond,1,true); global.difficulty = 1; global.minutes = 2; diff --git a/objects/oPlayer/Collision_oMonster.gml b/objects/oPlayer/Collision_oMonster.gml index 5384ead..3da6240 100644 --- a/objects/oPlayer/Collision_oMonster.gml +++ b/objects/oPlayer/Collision_oMonster.gml @@ -1,4 +1,5 @@ if (inv == 0) { + audio_play_sound(snHit,1,false); hit(other, self, other.attack); inv = 30; } else { diff --git a/objects/oPlayer/KeyPress_74.gml b/objects/oPlayer/KeyPress_74.gml index 61988b1..18070d1 100644 --- a/objects/oPlayer/KeyPress_74.gml +++ b/objects/oPlayer/KeyPress_74.gml @@ -1,5 +1,5 @@ // Attaque au corp à corp - +audio_play_sound(snAttack,1,false); isAttack = true; compteurFrames = 0; tailleEpee = 20; // à définir diff --git a/objects/oTrou/Collision_oPlayer.gml b/objects/oTrou/Collision_oPlayer.gml index 2ca09de..f66e049 100644 --- a/objects/oTrou/Collision_oPlayer.gml +++ b/objects/oTrou/Collision_oPlayer.gml @@ -1,2 +1,3 @@ hit (self, other, 10); +audio_play_sound(snHit,1,false); room_goto(asset_get_index("r" + string(oGame.tableau[oGame.posX, oGame.posY]))); \ No newline at end of file diff --git a/sounds/snAttack/snAttack.yy b/sounds/snAttack/snAttack.yy index f89966a..fad9eb1 100644 --- a/sounds/snAttack/snAttack.yy +++ b/sounds/snAttack/snAttack.yy @@ -1,6 +1,6 @@ { "compression": 0, - "volume": 0.44, + "volume": 0.1, "preload": false, "bitRate": 128, "sampleRate": 44100, diff --git a/sounds/snFond/snFond.yy b/sounds/snFond/snFond.yy index 516fd68..9635ed7 100644 --- a/sounds/snFond/snFond.yy +++ b/sounds/snFond/snFond.yy @@ -1,6 +1,6 @@ { "compression": 0, - "volume": 0.2, + "volume": 0.05, "preload": false, "bitRate": 128, "sampleRate": 44100, diff --git a/sounds/snHit/snHit.yy b/sounds/snHit/snHit.yy index 80281d0..d7fb3b0 100644 --- a/sounds/snHit/snHit.yy +++ b/sounds/snHit/snHit.yy @@ -1,6 +1,6 @@ { "compression": 0, - "volume": 0.3, + "volume": 0.1, "preload": false, "bitRate": 128, "sampleRate": 44100,