File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 33from ursina import *
44from utils .constants import weapons , max_enemy_speed
55from ursina .shaders import lit_with_shadows_shader
6+ from utils .preload import death_sound
67import json
78
89class Player (FirstPersonController ):
@@ -77,6 +78,8 @@ def shoot(self):
7778 destroy (mouse .hovered_entity .path_line )
7879 destroy (mouse .hovered_entity )
7980
81+ death_sound .play ()
82+
8083 self .summon_enemy ()
8184
8285 self .accuracy = (self .shots_hit / self .shots_fired ) * 100
Original file line number Diff line number Diff line change 11from ursina import Audio
22
33music_sound = Audio ("assets/sound/music.mp3" , autoplay = False )
4- death_sound = Audio ("assets/sound/death.mp3 " , autoplay = False )
4+ death_sound = Audio ("assets/sound/death.wav " , autoplay = False )
You can’t perform that action at this time.
0 commit comments