feat: adjused scene
This commit is contained in:
parent
37b7b94566
commit
6a5b3db577
12 changed files with 749 additions and 414 deletions
41
project/objects/jump_pickup.tscn
Normal file
41
project/objects/jump_pickup.tscn
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bjln17owwexi"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cdyr4yad84cp2" path="res://models/pickups/twirly.blend" id="1_60et7"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_a2vvy"]
|
||||
script/source = "extends Area3D
|
||||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
if body.is_class(\"PlayerBody\"):
|
||||
body.set_can_jump(true)
|
||||
queue_free()
|
||||
GameUI.get_singleton().display_message(\"Jump by pressing F during a split-step\")
|
||||
|
||||
func _physics_process(delta):
|
||||
$twirly.rotate_y(delta * 2.0)
|
||||
"
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_a2vvy"]
|
||||
radius = 1.61546
|
||||
|
||||
[node name="JumpPickup" type="Area3D"]
|
||||
script = SubResource("GDScript_a2vvy")
|
||||
|
||||
[node name="twirly" parent="." instance=ExtResource("1_60et7")]
|
||||
|
||||
[node name="OmniLight3D" type="OmniLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.503185, 0)
|
||||
light_color = Color(0.880355, 0.555272, 0, 1)
|
||||
light_energy = 8.133
|
||||
omni_range = 3.15575
|
||||
|
||||
[node name="OmniLight3D2" type="OmniLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.00915, 0)
|
||||
light_color = Color(0.880355, 0.555272, 0, 1)
|
||||
light_energy = 8.133
|
||||
omni_range = 3.15575
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_a2vvy")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
@ -31,7 +31,7 @@ collision_mask = 3
|
|||
wall_min_slide_angle = 0.785398
|
||||
floor_max_angle = 0.460767
|
||||
floor_snap_length = 0.35
|
||||
acceleration = 10.0
|
||||
acceleration = 15.0
|
||||
target_speed = 25.0
|
||||
jump_impulse = Vector2(0.9, 5)
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ specular_mode = 1
|
|||
albedo_texture = ExtResource("2_t4bw2")
|
||||
disable_receive_shadows = true
|
||||
billboard_mode = 2
|
||||
billboard_keep_scale = true
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_t4bw2"]
|
||||
radius = 10.024
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue