GavinGodotGame/scenes/game.tscn

190 lines
6.8 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=8 format=3 uid="uid://ivno5uoip3x"]
[ext_resource type="Script" uid="uid://dyts3mw1bhitc" path="res://scripts/game_controller.gd" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://cq5wc2smevldf" path="res://scripts/player.gd" id="1_uwrxv"]
[ext_resource type="PackedScene" uid="uid://duq681f4tr7uv" path="res://scenes/trigger.tscn" id="3_lnu2h"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_8cj0n"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
size = Vector2(58, 20)
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_uwrxv"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
[node name="Game" type="Node2D"]
script = ExtResource("1_lnu2h")
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
position = Vector2(312, 286)
script = ExtResource("1_uwrxv")
push_power = 150.0
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
shape = SubResource("CapsuleShape2D_8cj0n")
debug_color = Color(0.804881, 0.18457, 0.906085, 0.42)
[node name="Level" type="Node2D" parent="."]
[node name="StaticBody2D" type="StaticBody2D" parent="Level"]
position = Vector2(150, 569)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D8" type="StaticBody2D" parent="Level"]
position = Vector2(211, 582)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D8"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D9" type="StaticBody2D" parent="Level"]
position = Vector2(271, 576)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D9"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D10" type="StaticBody2D" parent="Level"]
position = Vector2(354, 576)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D10"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D11" type="StaticBody2D" parent="Level"]
position = Vector2(74, 569)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D11"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D12" type="StaticBody2D" parent="Level"]
position = Vector2(110, 543)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D12"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D2" type="StaticBody2D" parent="Level"]
position = Vector2(475, 528)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D2"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D3" type="StaticBody2D" parent="Level"]
position = Vector2(536, 534)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D3"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D4" type="StaticBody2D" parent="Level"]
position = Vector2(596, 540)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D4"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D5" type="StaticBody2D" parent="Level"]
position = Vector2(530, 562)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D5"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D6" type="StaticBody2D" parent="Level"]
position = Vector2(581, 601)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D6"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D7" type="StaticBody2D" parent="Level"]
position = Vector2(682, 574)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D7"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="Floor" type="StaticBody2D" parent="Level"]
position = Vector2(378, 643)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Floor"]
shape = SubResource("WorldBoundaryShape2D_uwrxv")
[node name="Floor2" type="StaticBody2D" parent="Level"]
position = Vector2(22, 452)
rotation = 1.57079
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Floor2"]
shape = SubResource("WorldBoundaryShape2D_uwrxv")
[node name="Floor3" type="StaticBody2D" parent="Level"]
position = Vector2(1031, 538)
rotation = -1.57079
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Floor3"]
shape = SubResource("WorldBoundaryShape2D_uwrxv")
[node name="Crates" type="Node2D" parent="."]
[node name="RigidBody2D" type="RigidBody2D" parent="Crates"]
position = Vector2(577, 177)
rotation = 0.518839
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crates/RigidBody2D"]
shape = SubResource("RectangleShape2D_uwrxv")
debug_color = Color(0.888982, 0.327148, 7.70092e-07, 0.42)
[node name="RigidBody2D2" type="RigidBody2D" parent="Crates"]
position = Vector2(476, 151)
rotation = -0.157975
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crates/RigidBody2D2"]
shape = SubResource("RectangleShape2D_uwrxv")
debug_color = Color(0.888982, 0.327148, 7.70092e-07, 0.42)
[node name="RigidBody2D3" type="RigidBody2D" parent="Crates"]
position = Vector2(507, 370)
rotation = -2.02378
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crates/RigidBody2D3"]
shape = SubResource("RectangleShape2D_uwrxv")
debug_color = Color(0.888982, 0.327148, 7.70092e-07, 0.42)
[node name="RigidBody2D4" type="RigidBody2D" parent="Crates"]
position = Vector2(613, 468)
rotation = 2.13819
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Crates/RigidBody2D4"]
shape = SubResource("RectangleShape2D_uwrxv")
debug_color = Color(0.888982, 0.327148, 7.70092e-07, 0.42)
[node name="Trigger" parent="." instance=ExtResource("3_lnu2h")]
position = Vector2(299, 487)
[node name="Trigger2" parent="." instance=ExtResource("3_lnu2h")]
position = Vector2(769, 587)
effect = "Destroy"
[node name="Trigger3" parent="." instance=ExtResource("3_lnu2h")]
position = Vector2(808, 329)
effect = "Exit"
[connection signal="trigger_fired" from="Trigger" to="." method="_on_trigger_trigger_fired"]
[connection signal="trigger_fired" from="Trigger2" to="." method="_on_trigger_trigger_fired"]
[connection signal="trigger_fired" from="Trigger3" to="." method="_on_trigger_trigger_fired"]