OverviewFilesCommitsIssuesDocsReleasesPeers

godot-tumble_player_demo / player / player.tscn

247 lines · tscn ref:
[gd_scene load_steps=9 format=2]

[ext_resource path="res://AnimationTree.tscn" type="PackedScene" id=1]
[ext_resource path="res://player/player_local_core.tres" type="PackedScene" id=2]
[ext_resource path="res://player/models/tumble_asset.tscn" type="PackedScene" id=19]
[ext_resource path="res://player/camera.gd" type="Script" id=20]
[ext_resource path="res://special_input.gd" type="Script" id=22]
[ext_resource path="res://player/debugui.gd" type="Script" id=23]

[sub_resource type="CylinderShape" id=54]
radius = 0.3
height = 1.57511

[sub_resource type="CubeMesh" id=55]
size = Vector3( 0.1, 0.1, 0.1 )

[node name="PlayerLocal" type="KinematicBody"]
__meta__ = {
"_edit_horizontal_guides_": [  ]
}

[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.782361, 0 )
shape = SubResource( 54 )

[node name="Mesh" type="Spatial" parent="."]

[node name="StepRayCast" type="RayCast" parent="Mesh"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.400731, -0.05 )
enabled = true
cast_to = Vector3( 0, 0, 0.3 )
collide_with_areas = true

[node name="MeshInstance" type="MeshInstance" parent="Mesh/StepRayCast"]
mesh = SubResource( 55 )
material/0 = null

[node name="cloth_char" parent="Mesh" instance=ExtResource( 19 )]
transform = Transform( 0.65, 0, 0, 0, 0.65, 0, 0, 0, 0.65, 0, 0, 0 )

[node name="Camroot" type="Spatial" parent="."]
script = ExtResource( 20 )

[node name="h" type="Spatial" parent="Camroot"]

[node name="v" type="Spatial" parent="Camroot/h"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.41498, 0 )

[node name="Camera" type="ClippedCamera" parent="Camroot/h/v"]
transform = Transform( -1, 0, -1.50996e-07, 0, 1, 0, 1.50996e-07, 0, -1, -4.03244e-07, 0, -2.67056 )
current = true
far = 200.0
process_mode = 1

[node name="mouse_control_stay_delay" type="Timer" parent="Camroot"]
one_shot = true

[node name="CamFollow" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.57079, 0 )

[node name="Camera" type="ClippedCamera" parent="CamFollow"]
transform = Transform( -1, 0, 8.9407e-08, 0, 1, 0, -8.9407e-08, 0, -1, 0, 0, -1.98246 )
process_mode = 1

[node name="roll_window" type="Timer" parent="."]
process_mode = 0
wait_time = 0.5
one_shot = true
__meta__ = {
"_editor_description_": "This Timer ensures \"Tap to roll\"
Releasing key within this time executes roll"
}

[node name="roll_timer" type="Timer" parent="."]
process_mode = 0
wait_time = 0.2
one_shot = true

[node name="PlayerDebugUI" type="Control" parent="."]
visible = false
margin_right = 40.0
margin_bottom = 40.0
script = ExtResource( 23 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="ColorRect" type="ColorRect" parent="PlayerDebugUI"]
margin_left = 16.0
margin_top = 13.0
margin_right = 260.0
margin_bottom = 132.0
color = Color( 1, 1, 1, 0.54902 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="GridContainer" type="GridContainer" parent="PlayerDebugUI/ColorRect"]
margin_left = 4.0
margin_top = 4.0
margin_right = 242.0
margin_bottom = 18.0
columns = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="OnFloor" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_right = 80.0
margin_bottom = 14.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "On Floor :"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="OnFloor_Value" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_left = 84.0
margin_right = 224.0
margin_bottom = 14.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "N/A"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="OnWall" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_top = 18.0
margin_right = 80.0
margin_bottom = 32.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "On Wall :"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="OnWall_Value" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_left = 84.0
margin_top = 18.0
margin_right = 224.0
margin_bottom = 32.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "N/A"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="OnCeiling" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_top = 36.0
margin_right = 80.0
margin_bottom = 50.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "On Ceiling :"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="OnCeiling_Value" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_left = 84.0
margin_top = 36.0
margin_right = 224.0
margin_bottom = 50.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "N/A"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="TimeScale" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_top = 55.0
margin_right = 80.0
margin_bottom = 69.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "TimeScale :"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="TimeScale_Value" type="HSlider" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_left = 84.0
margin_top = 54.0
margin_right = 224.0
margin_bottom = 70.0
rect_min_size = Vector2( 140, 0 )
min_value = 0.1
max_value = 1.0
step = 0.1
value = 1.0
scrollable = false

[node name="VerticalVel" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_top = 74.0
margin_right = 80.0
margin_bottom = 88.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Vertical Vel :"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="VerticalVel_Value" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_left = 84.0
margin_top = 74.0
margin_right = 224.0
margin_bottom = 88.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "N/A"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Blend" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_top = 92.0
margin_right = 80.0
margin_bottom = 106.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Blend :"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Blend_Value" type="Label" parent="PlayerDebugUI/ColorRect/GridContainer"]
margin_left = 84.0
margin_top = 92.0
margin_right = 224.0
margin_bottom = 106.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "N/A"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="AnimationPlayer" parent="." instance=ExtResource( 2 )]

[node name="AnimationTree" parent="." instance=ExtResource( 1 )]

[node name="SpecialInput" type="Node" parent="."]
script = ExtResource( 22 )

[connection signal="value_changed" from="PlayerDebugUI/ColorRect/GridContainer/TimeScale_Value" to="PlayerDebugUI" method="_on_TimeScale_Value_value_changed"]