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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user