Compare commits
No commits in common. "40cec00116e70adc9c4a93aca7d01d5a3bc4f86d" and "7805ce1c328c62890d13ef85f3e2937d4dd3adb0" have entirely different histories.
40cec00116
...
7805ce1c32
6 changed files with 1 additions and 69 deletions
BIN
assets/sounds/sfx/damage.wav
(Stored with Git LFS)
BIN
assets/sounds/sfx/damage.wav
(Stored with Git LFS)
Binary file not shown.
|
@ -1,24 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://c7laud048l1is"
|
||||
path="res://.godot/imported/damage.wav-8c4919c614aee00fc00121daa2bc247e.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sounds/sfx/damage.wav"
|
||||
dest_files=["res://.godot/imported/damage.wav-8c4919c614aee00fc00121daa2bc247e.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
BIN
assets/sounds/sfx/death_sound.wav
(Stored with Git LFS)
BIN
assets/sounds/sfx/death_sound.wav
(Stored with Git LFS)
Binary file not shown.
|
@ -1,24 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://c6dy6nea6vaa4"
|
||||
path="res://.godot/imported/death_sound.wav-74c3ac4e551e080446bef315f79faff8.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sounds/sfx/death_sound.wav"
|
||||
dest_files=["res://.godot/imported/death_sound.wav-74c3ac4e551e080446bef315f79faff8.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=1
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=0
|
|
@ -96,9 +96,5 @@ func get_total_distance():
|
|||
return lap_distance + last_offset
|
||||
|
||||
func game_over():
|
||||
running = false
|
||||
$player/death_sound.play()
|
||||
print_debug("final score: ", get_total_distance())
|
||||
await get_tree().create_timer(3).timeout
|
||||
|
||||
get_tree().reload_current_scene() #temp
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://ckau5s2tsb3oc"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://ckau5s2tsb3oc"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/game/player_controller.gd" id="1_g4ij8"]
|
||||
[ext_resource type="Texture2D" uid="uid://d1t1g7hyil82v" path="res://assets/spracer.png" id="2_xal47"]
|
||||
[ext_resource type="Texture2D" uid="uid://ceqcsof04vhqs" path="res://assets/light.png" id="3_qosw5"]
|
||||
[ext_resource type="AudioStream" uid="uid://cc4ffx6b0xjvk" path="res://assets/sounds/sfx/engine_loop.wav" id="4_4ajo8"]
|
||||
[ext_resource type="AudioStream" uid="uid://c7laud048l1is" path="res://assets/sounds/sfx/damage.wav" id="5_rvolc"]
|
||||
[ext_resource type="AudioStream" uid="uid://c6dy6nea6vaa4" path="res://assets/sounds/sfx/death_sound.wav" id="6_i0vg5"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_w2nj7"]
|
||||
size = Vector2(36, 20)
|
||||
|
@ -46,11 +44,3 @@ rotation_smoothing_speed = 10.0
|
|||
stream = ExtResource("4_4ajo8")
|
||||
volume_db = -40.467
|
||||
autoplay = true
|
||||
|
||||
[node name="damage_sounds" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("5_rvolc")
|
||||
volume_db = -25.297
|
||||
|
||||
[node name="death_sound" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("6_i0vg5")
|
||||
volume_db = -25.297
|
||||
|
|
Loading…
Reference in a new issue