GodotCourse/week1/GodotSpeedRun/scenes/game.tscn

95 lines
3.6 KiB
Plaintext
Raw Normal View History

2026-09-29 17:40:24 +00:00
[gd_scene format=3 uid="uid://y083suj12rld"]
2024-07-15 17:09:25 +00:00
2025-04-28 19:56:42 +00:00
[ext_resource type="Script" uid="uid://cjym0i568q43q" path="res://scripts/gamecontroller.gd" id="1_77wyw"]
[ext_resource type="Script" uid="uid://cxtom61f1i8rm" path="res://scripts/CharacterBody2D.gd" id="1_u4sui"]
2025-02-24 19:16:36 +00:00
[ext_resource type="PackedScene" uid="uid://bqdsxxxm7gmj4" path="res://scenes/trigger.tscn" id="3_8dqk0"]
2024-07-15 17:09:25 +00:00
[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
2026-09-29 17:40:24 +00:00
[node name="Game" type="Node2D" unique_id=1861522217]
2024-07-15 17:09:25 +00:00
script = ExtResource("1_77wyw")
2026-09-29 17:40:24 +00:00
[node name="SB_Boundary" type="StaticBody2D" parent="." unique_id=700150562]
2024-07-15 17:09:25 +00:00
position = Vector2(236, 415)
metadata/_edit_group_ = true
2026-09-29 17:40:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="SB_Boundary" unique_id=1818013331]
2024-07-15 17:09:25 +00:00
shape = SubResource("WorldBoundaryShape2D_3u4a8")
2026-09-29 17:40:24 +00:00
[node name="RB_Crate" type="RigidBody2D" parent="." unique_id=1335720771]
2025-02-24 16:07:59 +00:00
position = Vector2(141, 231)
2024-08-26 20:07:50 +00:00
rotation = 0.545383
metadata/_edit_group_ = true
2024-07-15 17:09:25 +00:00
2026-09-29 17:40:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="RB_Crate" unique_id=1174533458]
2024-07-15 17:09:25 +00:00
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
2026-09-29 17:40:24 +00:00
[node name="RB_Crate2" type="RigidBody2D" parent="." unique_id=290029641]
2025-02-24 16:07:59 +00:00
position = Vector2(531, 193)
rotation = 0.545383
metadata/_edit_group_ = true
2026-09-29 17:40:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="RB_Crate2" unique_id=1020647178]
2025-02-24 16:07:59 +00:00
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
2026-09-29 17:40:24 +00:00
[node name="level" type="Node2D" parent="." unique_id=706960970]
2024-07-15 17:09:25 +00:00
2026-09-29 17:40:24 +00:00
[node name="groundblock2" type="StaticBody2D" parent="level" unique_id=459481081]
2024-08-26 20:07:50 +00:00
position = Vector2(548, 315)
2024-07-15 17:09:25 +00:00
metadata/_edit_group_ = true
2026-09-29 17:40:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2" unique_id=1283593434]
2024-07-15 17:09:25 +00:00
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
2026-09-29 17:40:24 +00:00
[node name="groundblock3" type="StaticBody2D" parent="level" unique_id=14509889]
position = Vector2(378, 279)
2024-07-15 17:09:25 +00:00
metadata/_edit_group_ = true
2026-09-29 17:40:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3" unique_id=466553306]
2024-07-15 17:09:25 +00:00
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
2026-09-29 17:40:24 +00:00
[node name="groundblock" type="StaticBody2D" parent="level" unique_id=890475829]
2024-08-26 20:07:50 +00:00
position = Vector2(124, 357)
2024-07-15 17:09:25 +00:00
metadata/_edit_group_ = true
2026-09-29 17:40:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock" unique_id=1759623524]
2024-07-15 17:09:25 +00:00
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
2026-09-29 17:40:24 +00:00
[node name="groundblock4" type="StaticBody2D" parent="level" unique_id=480656762]
2024-08-26 20:07:50 +00:00
position = Vector2(91, 430)
scale = Vector2(3.76, 1)
2024-07-15 17:09:25 +00:00
metadata/_edit_group_ = true
2026-09-29 17:40:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock4" unique_id=852839133]
2024-07-15 17:09:25 +00:00
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
2026-09-29 17:40:24 +00:00
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=1976891311]
2025-02-24 16:07:59 +00:00
position = Vector2(82, 331)
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
2026-09-29 17:40:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=324441678]
2024-07-15 17:09:25 +00:00
shape = SubResource("CircleShape2D_ubfw4")
2026-09-29 17:40:24 +00:00
[node name="Trigger" parent="." unique_id=228589396 instance=ExtResource("3_8dqk0")]
position = Vector2(442, 394)
2025-02-24 19:16:36 +00:00
effect = "destroy"
2024-07-15 17:09:25 +00:00
2025-02-24 19:16:36 +00:00
[connection signal="areatrigger" from="Trigger" to="." method="_on_area_2d_areatrigger"]