mirror of
https://github.com/csd4ni3l/aim-trainer.git
synced 2026-01-01 04:03:42 +01:00
Fix death sound effect
This commit is contained in:
Binary file not shown.
BIN
assets/sound/death.wav
Normal file
BIN
assets/sound/death.wav
Normal file
Binary file not shown.
@@ -3,6 +3,7 @@ from ursina.prefabs.first_person_controller import FirstPersonController
|
||||
from ursina import *
|
||||
from utils.constants import weapons, max_enemy_speed
|
||||
from ursina.shaders import lit_with_shadows_shader
|
||||
from utils.preload import death_sound
|
||||
import json
|
||||
|
||||
class Player(FirstPersonController):
|
||||
@@ -77,6 +78,8 @@ class Player(FirstPersonController):
|
||||
destroy(mouse.hovered_entity.path_line)
|
||||
destroy(mouse.hovered_entity)
|
||||
|
||||
death_sound.play()
|
||||
|
||||
self.summon_enemy()
|
||||
|
||||
self.accuracy = (self.shots_hit / self.shots_fired) * 100
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from ursina import Audio
|
||||
|
||||
music_sound = Audio("assets/sound/music.mp3", autoplay=False)
|
||||
death_sound = Audio("assets/sound/death.mp3", autoplay=False)
|
||||
death_sound = Audio("assets/sound/death.wav", autoplay=False)
|
||||
|
||||
Reference in New Issue
Block a user