64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
|
[gd_scene load_steps=8 format=3 uid="uid://doctwh8lc63y5"]
|
||
|
|
||
|
[ext_resource type="Script" uid="uid://cpua8fr5bby78" path="res://scripts/gamecontroller.gd" id="1_lnu2h"]
|
||
|
[ext_resource type="Script" uid="uid://cnwga6l2btdbk" path="res://scripts/player.gd" id="1_uwrxv"]
|
||
|
[ext_resource type="PackedScene" uid="uid://6n3305pqp43a" path="res://scenes/trigger.tscn" id="2_yqjtg"]
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
|
||
|
size = Vector2(52, 20)
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
|
||
|
|
||
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_8cj0n"]
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
|
||
|
|
||
|
[node name="game" type="Node2D"]
|
||
|
script = ExtResource("1_lnu2h")
|
||
|
|
||
|
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||
|
position = Vector2(580, 413)
|
||
|
metadata/_edit_group_ = true
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||
|
shape = SubResource("RectangleShape2D_8cj0n")
|
||
|
|
||
|
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||
|
position = Vector2(594, 335)
|
||
|
rotation = 0.767945
|
||
|
metadata/_edit_group_ = true
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||
|
shape = SubResource("RectangleShape2D_uwrxv")
|
||
|
debug_color = Color(0.820447, 0.391315, 0.259417, 0.42)
|
||
|
|
||
|
[node name="RigidBody2D2" type="RigidBody2D" parent="."]
|
||
|
position = Vector2(577, 256)
|
||
|
rotation = 0.602841
|
||
|
metadata/_edit_group_ = true
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2"]
|
||
|
shape = SubResource("RectangleShape2D_uwrxv")
|
||
|
debug_color = Color(0.820447, 0.391315, 0.259417, 0.42)
|
||
|
|
||
|
[node name="ground" type="StaticBody2D" parent="."]
|
||
|
position = Vector2(583, 553)
|
||
|
metadata/_edit_group_ = true
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="ground"]
|
||
|
shape = SubResource("WorldBoundaryShape2D_8cj0n")
|
||
|
|
||
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||
|
position = Vector2(580, 392)
|
||
|
script = ExtResource("1_uwrxv")
|
||
|
metadata/_edit_group_ = true
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||
|
shape = SubResource("CircleShape2D_8cj0n")
|
||
|
debug_color = Color(0.256799, 0.626646, 0.294192, 0.42)
|
||
|
|
||
|
[node name="Area2D" parent="." instance=ExtResource("2_yqjtg")]
|
||
|
position = Vector2(872, 521)
|
||
|
|
||
|
[connection signal="areaTriggerSignal" from="Area2D" to="." method="_on_trigger"]
|