big 4 objects. three tiers. custom signals, game controller.

This commit is contained in:
StevenSoroka committed 2025-07-28 21:16:32 -04:00
commit 3476aef452
14 files changed
+218

No files matched your search

+78
View File
@@ -0,0 +1,78 @@
[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://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"]
[node name="Game" type="Node2D"]
script = ExtResource("1_lnu2h")
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2(205, 132)
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="."]
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)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="world-boundary"]
shape = SubResource("WorldBoundaryShape2D_8cj0n")
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
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)
[connection signal="areaTriggerSignal" from="Area2D" to="." method="_on_area_2d_area_trigger_signal"]
+17
View File
@@ -0,0 +1,17 @@
[gd_scene load_steps=3 format=3 uid="uid://d1gmq2hler2x3"]
[ext_resource type="Script" uid="uid://d0y2j85d6dje" path="res://scripts/trigger.gd" id="1_du5ex"]
[sub_resource type="CircleShape2D" id="CircleShape2D_uwrxv"]
[node name="trigger" type="Area2D"]
scale = Vector2(3.04, 3.16)
script = ExtResource("1_du5ex")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(1.68, 1.68)
shape = SubResource("CircleShape2D_uwrxv")
debug_color = Color(0.814461, 0.0270535, 0.971766, 0.42)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]