LD54_Box_Survival/player.tscn

98 lines
2.8 KiB
Text
Raw Normal View History

2023-12-21 08:10:19 +00:00
[gd_scene load_steps=8 format=3 uid="uid://dv8hwks0xe3c0"]
[ext_resource type="Script" path="res://PlayerCharacterBody2D.gd" id="1_8l13s"]
2023-09-30 08:07:57 +00:00
[ext_resource type="AudioStream" uid="uid://b88dh38cr8v6o" path="res://res/jump.ogg" id="2_ix2ut"]
[ext_resource type="AudioStream" uid="uid://jfrsvixicrf" path="res://res/hit.ogg" id="3_gq63f"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yripi"]
size = Vector2(40, 40)
[sub_resource type="CanvasTexture" id="CanvasTexture_ruce8"]
2023-12-21 08:10:19 +00:00
[sub_resource type="Gradient" id="Gradient_v7mm3"]
colors = PackedColorArray(1, 1, 1, 0.454902, 1, 1, 1, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_iin72"]
gradient = SubResource("Gradient_v7mm3")
2023-12-21 08:43:45 +00:00
width = 128
height = 128
2023-12-21 08:10:19 +00:00
fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(1, 0.5)
[node name="CharacterBody2D" type="CharacterBody2D"]
position = Vector2(590, 561)
collision_layer = 3
script = ExtResource("1_8l13s")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_yripi")
debug_color = Color(0, 0.6, 0.701961, 0.419608)
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(40, 40)
texture = SubResource("CanvasTexture_ruce8")
2023-12-21 08:10:19 +00:00
[node name="JumpTouchButton" type="TouchScreenButton" parent="."]
2023-12-21 08:43:45 +00:00
position = Vector2(-64, -159)
2023-12-21 08:10:19 +00:00
texture_normal = SubResource("GradientTexture2D_iin72")
action = "jump"
[node name="Label" type="Label" parent="JumpTouchButton"]
2023-12-21 08:43:45 +00:00
offset_left = 42.0
offset_top = 52.0
offset_right = 83.0
offset_bottom = 75.0
2023-12-21 08:10:19 +00:00
text = "Jump"
[node name="RightTouchButton" type="TouchScreenButton" parent="."]
2023-12-21 08:43:45 +00:00
position = Vector2(53, -60)
2023-12-21 08:10:19 +00:00
texture_normal = SubResource("GradientTexture2D_iin72")
action = "right"
[node name="Label" type="Label" parent="RightTouchButton"]
2023-12-21 08:43:45 +00:00
offset_left = 43.0
offset_top = 53.0
offset_right = 84.0
offset_bottom = 76.0
2023-12-21 08:10:19 +00:00
text = "Right"
[node name="LeftTouchButton" type="TouchScreenButton" parent="."]
2023-12-21 08:43:45 +00:00
position = Vector2(-184, -60)
2023-12-21 08:10:19 +00:00
texture_normal = SubResource("GradientTexture2D_iin72")
action = "left"
[node name="Label" type="Label" parent="LeftTouchButton"]
2023-12-21 08:43:45 +00:00
offset_left = 47.0
offset_top = 53.0
offset_right = 88.0
offset_bottom = 76.0
2023-12-21 08:10:19 +00:00
text = "Left"
[node name="Camera2D" type="Camera2D" parent="."]
[node name="RichTextLabel" type="RichTextLabel" parent="."]
offset_left = 35.0
offset_top = 36.0
offset_right = 151.0
offset_bottom = 76.0
[node name="RichTextLabel2" type="RichTextLabel" parent="."]
offset_left = -61.0
offset_top = -62.0
offset_right = -21.0
offset_bottom = -22.0
2023-09-30 08:07:57 +00:00
[node name="JumpSFX" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_ix2ut")
[node name="HitSFX" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_gq63f")
2023-10-01 06:02:06 +00:00
[node name="GameTitleText" type="RichTextLabel" parent="."]
2023-12-21 08:43:45 +00:00
offset_left = -229.0
offset_top = 18.0
offset_right = 244.0
offset_bottom = 258.0
2023-12-21 08:10:19 +00:00
scroll_active = false