This commit is contained in:
JayisonDevadas committed 2026-03-09 21:04:23 -04:00
1 parent fa2677d014
commit 84e1af69e3
13 files changed
+250 -49

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
[gd_scene format=3 uid="uid://cp6dv18imsngd"]
[ext_resource type="Script" uid="uid://bfuhpow7x2xr1" path="res://scripts/bullet.gd" id="1_mkf8s"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rtl8c"]
[node name="Bullet" type="Area2D" unique_id=1567847193]
script = ExtResource("1_mkf8s")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=492684522]
shape = SubResource("RectangleShape2D_rtl8c")
debug_color = Color(0.5263991, 0.42294088, 0.98291093, 0.41960785)
+45 -36
View File
@@ -1,62 +1,71 @@
[gd_scene format=3 uid="uid://c2f5v136bbqod"]
[ext_resource type="Script" uid="uid://dxubdt7nh5s1j" path="res://scripts/gameController.gd" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://qa1q5a2swlfc" path="res://scripts/scene_manager.gd" id="2_iywne"]
[ext_resource type="PackedScene" uid="uid://b6lw2go5mwk3h" path="res://scenes/crate.tscn" id="2_lbhrr"]
[ext_resource type="Script" uid="uid://c17de7vvtri1e" path="res://scripts/player.gd" id="2_yqjtg"]
[ext_resource type="PackedScene" uid="uid://s0utas3jmhjk" path="res://scenes/player.tscn" id="3_iywne"]
[ext_resource type="PackedScene" uid="uid://bf50mxdma8wq4" path="res://scenes/trigger.tscn" id="3_lbhrr"]
[ext_resource type="PackedScene" uid="uid://cp6dv18imsngd" path="res://scenes/bullet.tscn" id="6_p57ef"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
size = Vector2(46, 20)
[sub_resource type="CircleShape2D" id="CircleShape2D_lnu2h"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_iywne"]
[node name="Game" type="Node2D" unique_id=863075634]
script = ExtResource("1_lnu2h")
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=793440430]
[node name="SceneManager" type="Node2D" parent="." unique_id=1880010886]
unique_name_in_owner = true
script = ExtResource("2_iywne")
[node name="Player" parent="." unique_id=1109630338 instance=ExtResource("3_iywne")]
position = Vector2(326, 174)
[node name="Triggers" type="Node2D" parent="." unique_id=824433282]
[node name="Trigger" parent="Triggers" unique_id=1432397495 instance=ExtResource("3_lbhrr")]
position = Vector2(500, 295)
[node name="Trigger2" parent="Triggers" unique_id=528038205 instance=ExtResource("3_lbhrr")]
position = Vector2(196, 297)
effect = "teleport"
[node name="Trigger3" parent="Triggers" unique_id=516097243 instance=ExtResource("3_lbhrr")]
position = Vector2(287, 54)
effect = "powerup"
[node name="Crates" type="Node2D" parent="." unique_id=670229137]
[node name="Crate" parent="Crates" unique_id=289536100 instance=ExtResource("2_lbhrr")]
position = Vector2(400.00003, 171)
scale = Vector2(0.99999994, 0.99999994)
[node name="Crate2" parent="Crates" unique_id=1758294520 instance=ExtResource("2_lbhrr")]
position = Vector2(382, 96.999985)
scale = Vector2(0.99999994, 0.99999994)
[node name="Crate3" parent="Crates" unique_id=161286893 instance=ExtResource("2_lbhrr")]
position = Vector2(354, 114)
scale = Vector2(0.99999994, 0.99999994)
[node name="Level" type="Node2D" parent="." unique_id=2000617151]
[node name="StaticBody2D" type="StaticBody2D" parent="Level" unique_id=793440430]
position = Vector2(340.99997, 211)
scale = Vector2(3.2297606, 1.0433427)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=21019430]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D" unique_id=21019430]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="Crate" parent="." unique_id=289536100 instance=ExtResource("2_lbhrr")]
position = Vector2(400.00003, 171)
[node name="Crate2" parent="." unique_id=1758294520 instance=ExtResource("2_lbhrr")]
position = Vector2(284.99994, 159)
[node name="Trigger" parent="." unique_id=1432397495 instance=ExtResource("3_lbhrr")]
position = Vector2(500, 295)
effect = "destroy"
[node name="Trigger2" parent="." unique_id=528038205 instance=ExtResource("3_lbhrr")]
position = Vector2(238, 286)
effect = "bounce"
[node name="Player" type="CharacterBody2D" parent="." unique_id=1104847114]
position = Vector2(326, 174)
scale = Vector2(2, 2)
script = ExtResource("2_yqjtg")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player" unique_id=823407697]
shape = SubResource("CircleShape2D_lnu2h")
debug_color = Color(0.89751947, 0.22656804, 0.5594576, 0.41960785)
[node name="StaticBody2D2" type="StaticBody2D" parent="." unique_id=531572601]
[node name="StaticBody2D2" type="StaticBody2D" parent="Level" unique_id=531572601]
position = Vector2(363, 399)
scale = Vector2(1.4, 2.2)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2" unique_id=237256227]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D2" unique_id=237256227]
shape = SubResource("WorldBoundaryShape2D_iywne")
[node name="Crate3" parent="." unique_id=161286893 instance=ExtResource("2_lbhrr")]
position = Vector2(354, 114)
[connection signal="AreaTrigger" from="Trigger" to="." method="_on_trigger"]
[connection signal="AreaTrigger" from="Trigger2" to="." method="_on_trigger"]
[node name="Bullet" parent="." unique_id=1567847193 instance=ExtResource("6_p57ef")]
position = Vector2(256, 130)
+20
View File
@@ -0,0 +1,20 @@
[gd_scene format=3 uid="uid://s0utas3jmhjk"]
[ext_resource type="Script" uid="uid://c17de7vvtri1e" path="res://scripts/player.gd" id="1_3vyb7"]
[sub_resource type="CircleShape2D" id="CircleShape2D_lnu2h"]
[node name="Player" type="CharacterBody2D" unique_id=1109630338]
scale = Vector2(2, 2)
script = ExtResource("1_3vyb7")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1851921509]
shape = SubResource("CircleShape2D_lnu2h")
debug_color = Color(0.89751947, 0.22656804, 0.5594576, 0.41960785)
[node name="RightTarget" type="Marker2D" parent="." unique_id=1700751856]
position = Vector2(23.5, -5)
[node name="LeftTarget" type="Marker2D" parent="." unique_id=2004390104]
position = Vector2(-23.5, -11)
+1
View File
@@ -13,4 +13,5 @@ metadata/_edit_group_ = true
shape = SubResource("CircleShape2D_8cj0n")
debug_color = Color(0.3766567, 0.61053944, 0.19980416, 0.41960785)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]