74 lines
3.0 KiB
Plaintext
74 lines
3.0 KiB
Plaintext
|
|
[gd_scene format=3 uid="uid://cxa67u8cwsn6x"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://ct51411gsine2" path="res://scripts/gamecontroller.gd" id="1_lnu2h"]
|
||
|
|
[ext_resource type="Script" uid="uid://ct34rf6jscqmo" path="res://scripts/player.gd" id="1_uwrxv"]
|
||
|
|
[ext_resource type="Script" uid="uid://ck2uw1e2b0646" path="res://scripts/trigger.gd" id="1_yqjtg"]
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mvphy"]
|
||
|
|
size = Vector2(66, 20)
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o7s7a"]
|
||
|
|
|
||
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_mvphy"]
|
||
|
|
radius = 27.0
|
||
|
|
|
||
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_o7s7a"]
|
||
|
|
|
||
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_mvphy"]
|
||
|
|
|
||
|
|
[node name="Game" type="Node2D" unique_id=989312165]
|
||
|
|
script = ExtResource("1_lnu2h")
|
||
|
|
|
||
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1148293182]
|
||
|
|
position = Vector2(568, 408)
|
||
|
|
metadata/_edit_group_ = true
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1634682333]
|
||
|
|
shape = SubResource("RectangleShape2D_mvphy")
|
||
|
|
|
||
|
|
[node name="RigidBody2D" type="RigidBody2D" parent="." unique_id=622131877]
|
||
|
|
position = Vector2(541, 379)
|
||
|
|
rotation = -0.32228005
|
||
|
|
metadata/_edit_group_ = true
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" unique_id=1349809273]
|
||
|
|
shape = SubResource("RectangleShape2D_o7s7a")
|
||
|
|
debug_color = Color(0.8398786, 0.37498713, 0.22887537, 0.41960785)
|
||
|
|
|
||
|
|
[node name="RigidBody2D2" type="RigidBody2D" parent="." unique_id=684295328]
|
||
|
|
position = Vector2(510.00006, 297)
|
||
|
|
rotation = -1.1398602
|
||
|
|
metadata/_edit_group_ = true
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2" unique_id=1289600515]
|
||
|
|
shape = SubResource("RectangleShape2D_o7s7a")
|
||
|
|
debug_color = Color(0.8398786, 0.37498713, 0.22887537, 0.41960785)
|
||
|
|
|
||
|
|
[node name="Trigger" type="Area2D" parent="." unique_id=1736949874]
|
||
|
|
position = Vector2(515, 472)
|
||
|
|
script = ExtResource("1_yqjtg")
|
||
|
|
metadata/_edit_group_ = true
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger" unique_id=840899447]
|
||
|
|
shape = SubResource("CircleShape2D_mvphy")
|
||
|
|
debug_color = Color(0.76538396, 0.26260582, 0.8980484, 0.41960785)
|
||
|
|
|
||
|
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=509013756]
|
||
|
|
position = Vector2(591, 387)
|
||
|
|
script = ExtResource("1_uwrxv")
|
||
|
|
metadata/_edit_group_ = true
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=566367520]
|
||
|
|
shape = SubResource("CircleShape2D_o7s7a")
|
||
|
|
debug_color = Color(0.19446194, 0.63244796, 0.32305, 0.41960785)
|
||
|
|
|
||
|
|
[node name="StaticBody2D2" type="StaticBody2D" parent="." unique_id=958110307]
|
||
|
|
position = Vector2(538, 582)
|
||
|
|
metadata/_edit_group_ = true
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2" unique_id=1123970436]
|
||
|
|
shape = SubResource("WorldBoundaryShape2D_mvphy")
|
||
|
|
|
||
|
|
[connection signal="areaTriggered" from="Trigger" to="." method="_on_trigger"]
|
||
|
|
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]
|