week 2 prep

This commit is contained in:
OddlyTimbot committed 2026-06-29 16:57:59 -04:00
1 parent d5fc80ff7b
commit 7824bcd6cd
11 files changed
+279 -57

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
[gd_scene format=3 uid="uid://bp51pocvj7p3x"]
[ext_resource type="Script" uid="uid://bvy43aky6y3er" path="res://scripts/bullet.gd" id="1_mkf8s"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h1aey"]
size = Vector2(8, 3)
[node name="Bullet" type="Area2D" unique_id=1728947011]
script = ExtResource("1_mkf8s")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=791301971]
position = Vector2(0, 0.5)
shape = SubResource("RectangleShape2D_h1aey")
debug_color = Color(0.9348346, 0.10724712, 0.5768572, 0.41960785)
-1
View File
@@ -5,7 +5,6 @@
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
[node name="Crate" type="RigidBody2D" unique_id=1609374030]
rotation = -0.68311554
script = ExtResource("1_b66cd")
metadata/_edit_group_ = true
+53 -29
View File
@@ -3,14 +3,14 @@
[ext_resource type="Script" uid="uid://dtv434qd1rfmu" path="res://scripts/game.gd" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://g4wclr5vnxk6" path="res://scripts/trigger.gd" id="1_uwrxv"]
[ext_resource type="Script" uid="uid://b5c00ybml8rj" path="res://scripts/scene_manager.gd" id="2_lbhrr"]
[ext_resource type="Script" uid="uid://b1obldvd2etx7" path="res://scripts/player.gd" id="2_yqjtg"]
[ext_resource type="PackedScene" uid="uid://byl4bdrupii3k" path="res://scenes/player.tscn" id="4_iywne"]
[ext_resource type="PackedScene" uid="uid://b6cmg0k8qjoxi" path="res://scenes/crate.tscn" id="5_iywne"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_iywne"]
[sub_resource type="CircleShape2D" id="CircleShape2D_uwrxv"]
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
[node name="Game" type="Node2D" unique_id=981419409]
script = ExtResource("1_lnu2h")
@@ -18,58 +18,82 @@ script = ExtResource("1_lnu2h")
[node name="SceneManager" type="Node2D" parent="." unique_id=323246552]
script = ExtResource("2_lbhrr")
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1863997109]
position = Vector2(555, 409)
[node name="Player" parent="." unique_id=1254268479 instance=ExtResource("4_iywne")]
position = Vector2(440.00006, 375.00003)
[node name="Crates" type="Node2D" parent="." unique_id=207771395]
[node name="Crate" parent="Crates" unique_id=1609374030 instance=ExtResource("5_iywne")]
position = Vector2(508, 373)
[node name="Crate2" parent="Crates" unique_id=1603366376 instance=ExtResource("5_iywne")]
position = Vector2(737, 338)
[node name="Walls" type="Node2D" parent="." unique_id=1895909883]
[node name="StaticBody2D" type="StaticBody2D" parent="Walls" unique_id=1863997109]
position = Vector2(446.00006, 404)
scale = Vector2(3.4000025, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1910670137]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D" unique_id=1910670137]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D3" type="StaticBody2D" parent="." unique_id=2089762008]
[node name="StaticBody2D4" type="StaticBody2D" parent="Walls" unique_id=575340316]
position = Vector2(516, 404)
scale = Vector2(3.4000025, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D4" unique_id=522720352]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D3" type="StaticBody2D" parent="Walls" unique_id=2089762008]
position = Vector2(734.00006, 377)
scale = Vector2(3.4000025, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3" unique_id=892222577]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D3" unique_id=892222577]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D2" type="StaticBody2D" parent="." unique_id=2038269484]
[node name="StaticBody2D2" type="StaticBody2D" parent="Walls" unique_id=2038269484]
position = Vector2(681.00006, 398)
rotation = -0.7375178
scale = Vector2(3.4000025, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2" unique_id=1636593491]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D2" unique_id=1636593491]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="Trigger" type="Area2D" parent="." unique_id=1742156972]
[node name="StaticBody2D5" type="StaticBody2D" parent="Walls" unique_id=1787748242]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/StaticBody2D5" unique_id=1244109335]
position = Vector2(0, 554)
shape = SubResource("WorldBoundaryShape2D_iywne")
[node name="Triggers" type="Node2D" parent="." unique_id=193669081]
[node name="Trigger" type="Area2D" parent="Triggers" unique_id=1742156972]
position = Vector2(621.00006, 465.00006)
scale = Vector2(4.2, 4.2)
script = ExtResource("1_uwrxv")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger" unique_id=1581030951]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Triggers/Trigger" unique_id=1581030951]
shape = SubResource("CircleShape2D_8cj0n")
debug_color = Color(0.3285461, 0.6189337, 0.22834331, 0.41960785)
[node name="Player" type="CharacterBody2D" parent="." unique_id=1939613595]
position = Vector2(535.00006, 379.00003)
scale = Vector2(1.4799998, 1.4799998)
script = ExtResource("2_yqjtg")
[node name="Trigger2" type="Area2D" parent="Triggers" unique_id=318863481]
position = Vector2(853.99994, 453.99997)
scale = Vector2(4.2, 4.2)
script = ExtResource("1_uwrxv")
intent = "fan"
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player" unique_id=312922488]
shape = SubResource("CircleShape2D_uwrxv")
debug_color = Color(0.39731503, 0.48776567, 0.95015794, 0.41960785)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Triggers/Trigger2" unique_id=1843060141]
shape = SubResource("CircleShape2D_8cj0n")
debug_color = Color(0.3285461, 0.6189337, 0.22834331, 0.41960785)
[node name="Crates" type="Node2D" parent="." unique_id=207771395]
[node name="Crate" parent="Crates" unique_id=1609374030 instance=ExtResource("5_iywne")]
position = Vector2(625, 345.99997)
[node name="Crate2" parent="Crates" unique_id=1603366376 instance=ExtResource("5_iywne")]
position = Vector2(736, 347.99997)
[connection signal="areaTriggerSignal" from="Trigger" to="." method="_on_trigger"]
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]
[connection signal="areaTriggerSignal" from="Triggers/Trigger" to="." method="_on_trigger"]
[connection signal="body_entered" from="Triggers/Trigger" to="Triggers/Trigger" method="_on_body_entered"]
[connection signal="areaTriggerSignal" from="Triggers/Trigger2" to="." method="_on_trigger"]
[connection signal="body_entered" from="Triggers/Trigger2" to="Triggers/Trigger2" method="_on_body_entered"]
+33
View File
@@ -0,0 +1,33 @@
[gd_scene format=3 uid="uid://byl4bdrupii3k"]
[ext_resource type="Script" uid="uid://b1obldvd2etx7" path="res://scripts/player.gd" id="1_3vyb7"]
[sub_resource type="CircleShape2D" id="CircleShape2D_uwrxv"]
[node name="Player" type="CharacterBody2D" unique_id=1254268479]
scale = Vector2(1.4799998, 1.4799998)
script = ExtResource("1_3vyb7")
[node name="Label" type="Label" parent="." unique_id=712501367]
offset_left = -19.594597
offset_top = -36.486492
offset_right = 20.405403
offset_bottom = -13.486492
text = "label"
horizontal_alignment = 1
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=771657224]
shape = SubResource("CircleShape2D_uwrxv")
debug_color = Color(0.39731503, 0.48776567, 0.95015794, 0.41960785)
[node name="RightCast" type="RayCast2D" parent="." unique_id=1585175579]
target_position = Vector2(16.216217, -0.67567575)
[node name="LeftCast" type="RayCast2D" parent="." unique_id=544087242]
target_position = Vector2(-15.540543, -0.67567575)
[node name="RightTarget" type="Marker2D" parent="." unique_id=855125472]
position = Vector2(15.540543, -8.783785)
[node name="LeftTarget" type="Marker2D" parent="." unique_id=1162416681]
position = Vector2(-14.864867, -8.783785)