Added LotsaHoles level

This commit is contained in:
Martin Felis
2024-01-28 15:26:49 +01:00
parent 597c32f9e2
commit 57a9861b41
9 changed files with 120 additions and 35 deletions
+3 -3
View File
@@ -145,15 +145,15 @@ func calc_coloring_position():
return result;
func on_player_spawn():
print ("Player " + str(self) + ": spawning")
print ("Player " + str(name) + ": spawning")
spawn_stream_player.pitch_scale = 0.8 + randf () * 0.4
spawn_stream_player.play()
func on_player_falling():
print ("Player " + str(self) + ": falling")
print ("Player " + str(name) + ": falling")
func on_player_dead():
print ("Player " + str(self) + ": death")
print ("Player " + str(name) + ": death")
func on_dash():
is_dashing = true;
+4 -2
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://bfyjtfdko3l7o"]
[gd_scene load_steps=8 format=3 uid="uid://bfyjtfdko3l7o"]
[ext_resource type="Script" path="res://entities/Player.gd" id="1_w5gy0"]
[ext_resource type="AudioStream" uid="uid://bhbhh78j5rkfe" path="res://assets/sounds/pixabay/dash/whoosh-6316.mp3" id="2_ykhbt"]
@@ -8,12 +8,13 @@
[sub_resource type="BoxMesh" id="BoxMesh_yle83"]
size = Vector3(0.24, 0.75, 0.24)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y3fq5"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_rwgp3"]
height = 0.75
radius = 0.15
[node name="Player1" type="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -7329.1, 0)
collision_layer = 5
collision_mask = 7
velocity = Vector3(0, -378.927, 0)
@@ -22,6 +23,7 @@ script = ExtResource("1_w5gy0")
[node name="Geometry" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.472656, 0)
mesh = SubResource("BoxMesh_yle83")
surface_material_override/0 = SubResource("StandardMaterial3D_y3fq5")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.496337, 0)