2025-04-08 00:57:23 +00:00
|
|
|
[gd_scene load_steps=10 format=3 uid="uid://f0wep3w30dh8"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://ct2t7c0om0cdh" path="res://scripts/gamecontroller.gd" id="1_4dvvg"]
|
2025-04-15 00:56:26 +00:00
|
|
|
[ext_resource type="Script" uid="uid://dnx7g8ts5f4uc" path="res://scripts/scene_manager.gd" id="2_4vge2"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://6vl0c70v1gqs" path="res://scenes/player.tscn" id="2_rnjyy"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cdyodb8q2mkwd" path="res://scenes/ball.tscn" id="3_04qyp"]
|
2025-04-08 00:57:23 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dxj2q0disdlb5" path="res://scenes/area_2d.tscn" id="3_rnjyy"]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rf3rd"]
|
|
|
|
size = Vector2(433.759, 40)
|
|
|
|
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_6e84v"]
|
|
|
|
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_4dvvg"]
|
|
|
|
normal = Vector2(0.999872, -0.015998)
|
|
|
|
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rnjyy"]
|
|
|
|
normal = Vector2(-0.999909, -0.0135123)
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="Game" type="Node2D"]
|
2025-04-08 00:57:23 +00:00
|
|
|
script = ExtResource("1_4dvvg")
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="SceneManager" type="Node" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
script = ExtResource("2_4vge2")
|
2025-04-08 00:57:23 +00:00
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="level" type="Node2D" parent="."]
|
2025-04-08 00:57:23 +00:00
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="level"]
|
|
|
|
position = Vector2(347, 337)
|
|
|
|
rotation = 0.253073
|
2025-04-08 00:57:23 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D"]
|
|
|
|
shape = SubResource("RectangleShape2D_rf3rd")
|
2025-04-08 00:57:23 +00:00
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="StaticBody2D2" type="StaticBody2D" parent="level"]
|
|
|
|
position = Vector2(713, 488)
|
2025-04-08 00:57:23 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D2"]
|
2025-04-08 00:57:23 +00:00
|
|
|
shape = SubResource("RectangleShape2D_rf3rd")
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="floor" type="StaticBody2D" parent="level"]
|
|
|
|
position = Vector2(558, 646)
|
2025-04-08 00:57:23 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/floor"]
|
|
|
|
shape = SubResource("WorldBoundaryShape2D_6e84v")
|
2025-04-08 00:57:23 +00:00
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="ceiling" type="StaticBody2D" parent="level"]
|
|
|
|
position = Vector2(569, -1)
|
|
|
|
rotation = 3.14159
|
2025-04-08 00:57:23 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/ceiling"]
|
2025-04-08 00:57:23 +00:00
|
|
|
shape = SubResource("WorldBoundaryShape2D_6e84v")
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="left wall" type="StaticBody2D" parent="level"]
|
2025-04-08 00:57:23 +00:00
|
|
|
position = Vector2(0, 387)
|
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/left wall"]
|
2025-04-08 00:57:23 +00:00
|
|
|
shape = SubResource("WorldBoundaryShape2D_4dvvg")
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="right wall" type="StaticBody2D" parent="level"]
|
2025-04-08 00:57:23 +00:00
|
|
|
position = Vector2(1154, 345)
|
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/right wall"]
|
2025-04-08 00:57:23 +00:00
|
|
|
shape = SubResource("WorldBoundaryShape2D_rnjyy")
|
|
|
|
|
2025-04-15 00:56:26 +00:00
|
|
|
[node name="ball" parent="." instance=ExtResource("3_04qyp")]
|
|
|
|
position = Vector2(370, 273)
|
|
|
|
|
|
|
|
[node name="CharacterBody2D" parent="." instance=ExtResource("2_rnjyy")]
|
|
|
|
position = Vector2(623, 366)
|
|
|
|
|
2025-04-08 00:57:23 +00:00
|
|
|
[node name="Area2D" parent="." instance=ExtResource("3_rnjyy")]
|
|
|
|
position = Vector2(83, 587)
|
|
|
|
|
|
|
|
[connection signal="triggerFired" from="Area2D" to="." method="_on_area_2d_trigger_fired"]
|