destroy the crates

This commit is contained in:
KevinGorman committed 2025-01-06 20:34:02 -05:00
1 parent e69c47ab3e
commit 2605a085e2
4 files changed
+36 -3

No files matched your search

+10 -3
View File
@@ -1,7 +1,8 @@
[gd_scene load_steps=8 format=3 uid="uid://dhgts0kodsujx"]
[gd_scene load_steps=9 format=3 uid="uid://dhgts0kodsujx"]
[ext_resource type="PackedScene" uid="uid://djkjmi7bo58uv" path="res://scenes/crate.tscn" id="1_6shkr"]
[ext_resource type="Script" path="res://scripts/charcontroller.gd" id="2_uc4yi"]
[ext_resource type="Script" path="res://scripts/gameController.gd" id="1_7tjsy"]
[ext_resource type="Script" path="res://scripts/charController.gd" id="2_uc4yi"]
[ext_resource type="Script" path="res://scripts/trigger.gd" id="3_t4lk8"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_n7xvc"]
@@ -17,6 +18,7 @@ radius = 32.5576
radius = 62.0
[node name="Game" type="Node2D"]
script = ExtResource("1_7tjsy")
[node name="firstPlatform" type="StaticBody2D" parent="."]
position = Vector2(595, 310)
@@ -43,6 +45,7 @@ position = Vector2(629, 37)
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
position = Vector2(524, 393)
script = ExtResource("2_uc4yi")
PUSH_FORCE = 50
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
@@ -50,7 +53,7 @@ shape = SubResource("CircleShape2D_uvblg")
debug_color = Color(0.872789, 0.000463018, 0.842707, 0.42)
[node name="Area2D" type="Area2D" parent="."]
position = Vector2(833, 354)
position = Vector2(952, 434)
script = ExtResource("3_t4lk8")
metadata/_edit_group_ = true
@@ -58,4 +61,8 @@ metadata/_edit_group_ = true
shape = SubResource("CircleShape2D_5ph8t")
debug_color = Color(0.630721, 0.529414, 1.92523e-07, 0.42)
[node name="RigidBody2D3" parent="." instance=ExtResource("1_6shkr")]
position = Vector2(534, 53)
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]