2024-07-15 17:09:25 +00:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://y083suj12rld"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_77wyw"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_u4sui"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
|
|
|
|
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
|
|
|
|
size = Vector2(55, 55)
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
|
|
|
|
size = Vector2(91, 20)
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
|
|
|
|
radius = 13.0384
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
|
|
|
|
radius = 60.2993
|
|
|
|
|
|
|
|
[node name="Game" type="Node2D"]
|
|
|
|
script = ExtResource("1_77wyw")
|
|
|
|
|
2024-09-09 17:07:29 +00:00
|
|
|
[node name="SB_Boundary" type="StaticBody2D" parent="."]
|
2024-07-15 17:09:25 +00:00
|
|
|
position = Vector2(236, 415)
|
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2024-09-09 17:07:29 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="SB_Boundary"]
|
2024-07-15 17:09:25 +00:00
|
|
|
shape = SubResource("WorldBoundaryShape2D_3u4a8")
|
|
|
|
|
2024-09-09 17:07:29 +00:00
|
|
|
[node name="RB_Crate" type="RigidBody2D" parent="."]
|
2024-08-26 20:07:50 +00:00
|
|
|
position = Vector2(99, 190)
|
|
|
|
rotation = 0.545383
|
|
|
|
metadata/_edit_group_ = true
|
2024-07-15 17:09:25 +00:00
|
|
|
|
2024-09-09 17:07:29 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RB_Crate"]
|
2024-07-15 17:09:25 +00:00
|
|
|
shape = SubResource("RectangleShape2D_4vo4d")
|
|
|
|
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="level" type="Node2D" parent="."]
|
2024-07-15 17:09:25 +00:00
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="groundblock2" type="StaticBody2D" parent="level"]
|
|
|
|
position = Vector2(548, 315)
|
2024-07-15 17:09:25 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2"]
|
2024-07-15 17:09:25 +00:00
|
|
|
position = Vector2(-1.5, 0)
|
|
|
|
shape = SubResource("RectangleShape2D_cq7kj")
|
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="groundblock3" type="StaticBody2D" parent="level"]
|
|
|
|
position = Vector2(404, 353)
|
2024-07-15 17:09:25 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3"]
|
2024-07-15 17:09:25 +00:00
|
|
|
position = Vector2(-1.5, 0)
|
|
|
|
shape = SubResource("RectangleShape2D_cq7kj")
|
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="groundblock" type="StaticBody2D" parent="level"]
|
|
|
|
position = Vector2(124, 357)
|
|
|
|
collision_layer = 2
|
2024-07-15 17:09:25 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock"]
|
2024-07-15 17:09:25 +00:00
|
|
|
position = Vector2(-1.5, 0)
|
|
|
|
shape = SubResource("RectangleShape2D_cq7kj")
|
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="groundblock4" type="StaticBody2D" parent="level"]
|
|
|
|
position = Vector2(91, 430)
|
|
|
|
scale = Vector2(3.76, 1)
|
2024-07-15 17:09:25 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2024-08-26 20:07:50 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock4"]
|
2024-07-15 17:09:25 +00:00
|
|
|
position = Vector2(-1.5, 0)
|
|
|
|
shape = SubResource("RectangleShape2D_cq7kj")
|
|
|
|
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
|
|
|
position = Vector2(155, 328)
|
2024-08-26 20:07:50 +00:00
|
|
|
collision_mask = 3
|
2024-07-15 17:09:25 +00:00
|
|
|
script = ExtResource("1_u4sui")
|
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
|
|
|
shape = SubResource("CircleShape2D_ubfw4")
|
|
|
|
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
position = Vector2(260, 352)
|
|
|
|
script = ExtResource("2_nfj1w")
|
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
|
|
shape = SubResource("CircleShape2D_x8qck")
|
|
|
|
debug_color = Color(0.556863, 0.415686, 0.964706, 0.419608)
|
|
|
|
|
|
|
|
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
|
|
|
|
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|