GodotCourse/week2/updated_files/scenes/game.tscn

83 lines
2.9 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://y083suj12rld"]
[ext_resource type="Script" path="res://scripts/SceneManager.gd" id="1_77wyw"]
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
[ext_resource type="PackedScene" uid="uid://bbr2tfsjefwn3" path="res://scenes/crate.tscn" id="4_hkx5g"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
size = Vector2(91, 20)
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
radius = 60.2993
[node name="Game" type="Node2D"]
[node name="SceneManager" type="Node" parent="."]
unique_name_in_owner = true
script = ExtResource("1_77wyw")
[node name="groundblock" type="StaticBody2D" parent="."]
position = Vector2(117, 384)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock2" type="StaticBody2D" parent="."]
position = Vector2(91, 430)
scale = Vector2(3.76, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock2"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="level" type="Node2D" parent="."]
[node name="groundblock2" type="StaticBody2D" parent="level"]
position = Vector2(548, 315)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock3" type="StaticBody2D" parent="level"]
position = Vector2(404, 353)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="StaticBody2D" type="StaticBody2D" parent="level"]
position = Vector2(236, 415)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D"]
shape = SubResource("WorldBoundaryShape2D_3u4a8")
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
position = Vector2(36, 225)
PUSH_FORCE = 550
[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)
[node name="Crate" parent="." instance=ExtResource("4_hkx5g")]
position = Vector2(141, 131)
rotation = 0.663277
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]