Skip to content

Commit

Permalink
Modifs sonores
Browse files Browse the repository at this point in the history
+ Effet sonore lorsque le joueur ouvre une porte
+ Encore du son (vie sco, I306, N306)
  • Loading branch information
fmkr-project committed Apr 25, 2022
1 parent 9eb6192 commit fbce21b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
Binary file modified res/game_data.db
Binary file not shown.
2 changes: 1 addition & 1 deletion res/maps/niv_1.tmx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
<object id="35" name="the Chapelle®" x="2912" y="4160">
<point/>
</object>
<object id="36" name="to_cdh" x="2752" y="832" width="97" height="32"/>
<object id="36" name="to_cdh" type="portal" x="2752" y="832" width="97" height="32"/>
<object id="50" name="to_l101" type="door" x="2846.36" y="2784" width="33.6364" height="32"/>
<object id="51" name="exit_l101" x="2803.17" y="2783.67">
<point/>
Expand Down
Binary file added res/sounds/music/trk19.mp3
Binary file not shown.
1 change: 1 addition & 0 deletions src/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def get_warps(self):
# On récupère l'endroit où téléporter le joueur
[to_world, to_point] = self.game.game_data_db.execute("SELECT to_world, to_point FROM portals WHERE id = ?", (self.doors_id[index],)).fetchall()[0]
old_bgm = self.game.map_manager.sound_manager.music_file
self.game.script_manager.sfx('door') # Effet sonore
self.game.player.warp(to_world, to_point, old_bgm)
self.game.player.is_warping = True

Expand Down

0 comments on commit fbce21b

Please sign in to comment.