This commit is contained in:
StevenSoroka committed 2025-08-11 21:03:02 -04:00
1 parent 3476aef452
commit 9f023c62fb
14 files changed
+213 -54

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
[gd_scene load_steps=3 format=3 uid="uid://bgwa5osciu6kj"]
[ext_resource type="Script" uid="uid://bemhplfq3bapd" path="res://scripts/bullet.gd" id="1_mkf8s"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_h1aey"]
radius = 7.0
height = 32.0
[node name="bullet" type="Area2D"]
script = ExtResource("1_mkf8s")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.55509
shape = SubResource("CapsuleShape2D_h1aey")
debug_color = Color(0.849979, 0, 0.312876, 0.42)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+17
View File
@@ -0,0 +1,17 @@
[gd_scene load_steps=3 format=3 uid="uid://cm72yvkbgso3"]
[ext_resource type="Script" uid="uid://caikxm70kr5wu" path="res://scripts/crate.gd" id="1_b66cd"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
size = Vector2(82, 52)
[node name="crate" type="RigidBody2D" groups=["pushable"]]
rotation = 0.00469979
script = ExtResource("1_b66cd")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(4, 0)
rotation = 0.50364
shape = SubResource("RectangleShape2D_uwrxv")
debug_color = Color(0.920063, 0.281624, 0, 0.42)
+11 -44
View File
@@ -1,22 +1,24 @@
[gd_scene load_steps=8 format=3 uid="uid://bjk7nrcwo0ikb"]
[ext_resource type="Script" uid="uid://bc6rpr127gn6l" path="res://scripts/gamecontroller.gd" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://r3vurapv33hu" path="res://scripts/player.gd" id="1_uwrxv"]
[ext_resource type="PackedScene" uid="uid://cm72yvkbgso3" path="res://scenes/crate.tscn" id="2_lbhrr"]
[ext_resource type="PackedScene" uid="uid://bbg4idgjqm8wr" path="res://scenes/player.tscn" id="2_lnu2h"]
[ext_resource type="Script" uid="uid://slrv7nc7hjkl" path="res://scripts/scene_manager.gd" id="2_p57ef"]
[ext_resource type="PackedScene" uid="uid://d1gmq2hler2x3" path="res://scenes/trigger.tscn" id="2_yqjtg"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
size = Vector2(66, 20)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
size = Vector2(82, 52)
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_8cj0n"]
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
distance = 15.0
[node name="Game" type="Node2D"]
script = ExtResource("1_lnu2h")
[node name="SceneManager" type="Node2D" parent="."]
unique_name_in_owner = true
script = ExtResource("2_p57ef")
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2(205, 132)
metadata/_edit_group_ = true
@@ -24,53 +26,18 @@ metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
position = Vector2(156, 49)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2(4, 0)
rotation = 0.50364
shape = SubResource("RectangleShape2D_uwrxv")
debug_color = Color(0.920063, 0.281624, 0, 0.42)
[node name="RigidBody2D2" type="RigidBody2D" parent="."]
position = Vector2(207, -17)
rotation = 0.00469979
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2"]
position = Vector2(4, 0)
rotation = 0.50364
shape = SubResource("RectangleShape2D_uwrxv")
debug_color = Color(0.920063, 0.281624, 0, 0.42)
[node name="RigidBody2D3" type="RigidBody2D" parent="."]
[node name="crate" parent="." instance=ExtResource("2_lbhrr")]
position = Vector2(272, -97)
rotation = 0.00469979
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D3"]
position = Vector2(4, 0)
rotation = 0.50364
shape = SubResource("RectangleShape2D_uwrxv")
debug_color = Color(0.920063, 0.281624, 0, 0.42)
[node name="world-boundary" type="StaticBody2D" parent="."]
position = Vector2(490, 632)
position = Vector2(488, 645)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="world-boundary"]
shape = SubResource("WorldBoundaryShape2D_8cj0n")
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
[node name="Player" parent="." instance=ExtResource("2_lnu2h")]
position = Vector2(210, 92)
script = ExtResource("1_uwrxv")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
shape = SubResource("CircleShape2D_8cj0n")
debug_color = Color(0, 0.64833, 0.184337, 0.42)
[node name="Area2D" parent="." instance=ExtResource("2_yqjtg")]
position = Vector2(1106, 604)
+25
View File
@@ -0,0 +1,25 @@
[gd_scene load_steps=3 format=3 uid="uid://bbg4idgjqm8wr"]
[ext_resource type="Script" uid="uid://r3vurapv33hu" path="res://scripts/player.gd" id="1_3vyb7"]
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_3vyb7")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_8cj0n")
debug_color = Color(0, 0.64833, 0.184337, 0.42)
[node name="RightCast" type="RayCast2D" parent="."]
target_position = Vector2(27, 0)
[node name="LeftCast" type="RayCast2D" parent="."]
target_position = Vector2(-28, 0)
[node name="BulletSpawnPointRight" type="Node2D" parent="."]
position = Vector2(13, -6)
[node name="BulletSpawnPointLeft" type="Node2D" parent="."]
position = Vector2(-14, -6)