Bullets firing and scene manager witih teleportation and force push

This commit is contained in:
ArunKirupananthan committed 2026-10-06 20:58:28 -04:00
1 parent 94012868f0
commit 4e9a117b77
15 files changed
+260 -60

No files matched your search

+36 -50
View File
@@ -1,26 +1,24 @@
[gd_scene format=3 uid="uid://bmghctv58ymhx"]
[ext_resource type="Script" uid="uid://ci5kwydrjchlr" path="res://scripts/gamecontoller.gd" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://k5itsiku45rk" path="res://scripts/player.gd" id="1_uwrxv"]
[ext_resource type="Script" uid="uid://qdgabfyqg4v4" path="res://scripts/trigger.gd" id="1_yqjtg"]
[ext_resource type="Script" uid="uid://ccrtmkeh3wxoc" path="res://scripts/scenemanager.gd" id="2_lbhrr"]
[ext_resource type="PackedScene" uid="uid://bf2snjwsm1g01" path="res://scenes/trigger.tscn" id="2_lnu2h"]
[ext_resource type="PackedScene" uid="uid://n3nikeltgorc" path="res://scenes/crate.tscn" id="3_iywne"]
[ext_resource type="PackedScene" uid="uid://bbascciqs68u" path="res://scenes/player.tscn" id="4_iywne"]
[ext_resource type="PackedScene" uid="uid://dh08kl1i4ssa7" path="res://scenes/bullet.tscn" id="6_p57ef"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_daopg"]
size = Vector2(156, 39.5)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kvpdf"]
size = Vector2(95.25, 20)
[sub_resource type="CircleShape2D" id="CircleShape2D_daopg"]
radius = 65.06919
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_daopg"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_daopg"]
distance = -534.0
[node name="Game" type="Node2D" unique_id=2025408499]
script = ExtResource("1_lnu2h")
[node name="SceneManager" type="Node2D" parent="." unique_id=46020717]
script = ExtResource("2_lbhrr")
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=50045338]
position = Vector2(356, 397)
metadata/_edit_group_ = true
@@ -28,51 +26,39 @@ metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1746367507]
shape = SubResource("RectangleShape2D_daopg")
[node name="RigidBody2D" type="RigidBody2D" parent="." unique_id=1155250024]
position = Vector2(-86, 6.000002)
rotation = -0.07132487
metadata/_edit_group_ = true
[node name="RigidBody2D" parent="." unique_id=1917613907 instance=ExtResource("3_iywne")]
position = Vector2(-132.00002, 24.999996)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" unique_id=1735923422]
position = Vector2(391, 309)
shape = SubResource("RectangleShape2D_kvpdf")
debug_color = Color(0.7640784, 0.29976174, 0.010127576, 0.41960785)
[node name="RigidBody2D2" type="RigidBody2D" parent="." unique_id=1925655640]
position = Vector2(420, 226)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2" unique_id=471803879]
position = Vector2(-17.625, 0)
rotation = 0.16720873
shape = SubResource("RectangleShape2D_kvpdf")
debug_color = Color(0.7640784, 0.29976174, 0.010127576, 0.41960785)
[node name="trigger" type="Area2D" parent="." unique_id=970658975]
position = Vector2(255, 470)
scale = Vector2(0.8503403, 0.740157)
script = ExtResource("1_yqjtg")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="trigger" unique_id=496847008]
shape = SubResource("CircleShape2D_daopg")
debug_color = Color(0.90523595, 0.00013803899, 0.7489745, 0.41960785)
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=613044494]
position = Vector2(340, 352)
script = ExtResource("1_uwrxv")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=1901684918]
shape = SubResource("CapsuleShape2D_daopg")
debug_color = Color(0.42452708, 0.6028724, 0.041758128, 0.41960785)
[node name="Player" parent="." unique_id=680748920 instance=ExtResource("4_iywne")]
position = Vector2(339, 351)
[node name="StaticBody2D2" type="StaticBody2D" parent="." unique_id=2128236600]
position = Vector2(344, 11)
position = Vector2(346, 57)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2" unique_id=1639942213]
shape = SubResource("WorldBoundaryShape2D_daopg")
[connection signal="areatriggered" from="trigger" to="." method="_on_trigger"]
[connection signal="body_entered" from="trigger" to="trigger" method="_on_body_entered"]
[node name="Triggers" type="Node2D" parent="." unique_id=1735917497]
[node name="trigger" parent="Triggers" unique_id=1921053799 instance=ExtResource("2_lnu2h")]
position = Vector2(492, 471)
[node name="trigger2" parent="Triggers" unique_id=520292665 instance=ExtResource("2_lnu2h")]
position = Vector2(204, 338)
effect = "teleport"
[node name="Crate" parent="Triggers" unique_id=6318362 instance=ExtResource("3_iywne")]
position = Vector2(400, 304)
[node name="trigger3" parent="Triggers" unique_id=2118176855 instance=ExtResource("2_lnu2h")]
position = Vector2(161, 482.99997)
[node name="Crate" parent="." unique_id=1661527763 instance=ExtResource("3_iywne")]
position = Vector2(280, 291)
[node name="Crate2" parent="." unique_id=1011126838 instance=ExtResource("3_iywne")]
position = Vector2(367, 201)
[node name="Bullet" parent="." unique_id=273509445 instance=ExtResource("6_p57ef")]
position = Vector2(97, 365)