* Refactor collectable components to C# and update resource scripts for consistency * Update resource paths and refactor properties for consistency * Refactor UI components to inherit from Control and update node paths for consistency * Update node paths and group assignments for consistency across scenes * Refactor GameManager and PlayerDeathComponent for improved state management and logging; update scene connections for player death handling * Add PhantomCamera components and UI elements for improved scene management; refactor existing components for better integration * Refactor skill components and update resource paths for consistency; enhance skill management in scenes * Add new UID files and update scene configurations for dialogue components; refactor skill management and input handling * Add next level command and refactor player retrieval in GameManager; update scene files for consistency * Add skill upgrade system and refactor skill components for enhanced functionality; update resource paths and configurations * Enhance ChargeProgressBar and Marketplace functionality; add owner exit handling and update skill button states * Refactor ChargeProgressBar and SkillManager; update skill handling and improve component interactions * Refactor player and level configurations; streamline FlipPlayerComponent and reposition Spaceship Enter
47 lines
2.0 KiB
Plaintext
47 lines
2.0 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://c40r76qqacqie"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cw42lvnqxubq2" path="res://sprites/PS_Tileset_10_nes.png" id="1_jmsgb"]
|
|
[ext_resource type="Script" uid="uid://xqhrb1c7f6y4" path="res://scripts/components/CollapsableComponent.cs" id="2_jmsgb"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_l44jt"]
|
|
size = Vector2(16, 16)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sfbe2"]
|
|
size = Vector2(16, 2)
|
|
|
|
[node name="Collapsing Block" type="StaticBody2D"]
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("1_jmsgb")
|
|
hframes = 16
|
|
vframes = 12
|
|
frame = 182
|
|
|
|
[node name="StaticCollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_l44jt")
|
|
|
|
[node name="Collapsable detector" type="Area2D" parent="."]
|
|
collision_mask = 4
|
|
|
|
[node name="AreaCollisionShape2D" type="CollisionShape2D" parent="Collapsable detector"]
|
|
position = Vector2(0, -8)
|
|
shape = SubResource("RectangleShape2D_sfbe2")
|
|
|
|
[node name="ToCollapseTimer" type="Timer" parent="."]
|
|
wait_time = 0.5
|
|
|
|
[node name="ResetTimer" type="Timer" parent="."]
|
|
|
|
[node name="CollapsableComponent" type="Node" parent="." node_paths=PackedStringArray("ToCollapseTimer", "ResetTimer", "Sprite2D", "CollisionShape")]
|
|
script = ExtResource("2_jmsgb")
|
|
ToCollapseTimer = NodePath("../ToCollapseTimer")
|
|
ResetTimer = NodePath("../ResetTimer")
|
|
Sprite2D = NodePath("../Sprite2D")
|
|
CollisionShape = NodePath("../StaticCollisionShape2D")
|
|
ResetTime = 1.0
|
|
|
|
[connection signal="body_entered" from="Collapsable detector" to="CollapsableComponent" method="OnCollapsableDetectorBodyEntered"]
|
|
[connection signal="body_exited" from="Collapsable detector" to="CollapsableComponent" method="OnCollapsableDetectorBodyExited"]
|
|
[connection signal="timeout" from="ToCollapseTimer" to="CollapsableComponent" method="_on_to_collapse_timer_timeout"]
|
|
[connection signal="timeout" from="ResetTimer" to="CollapsableComponent" method="_on_reset_timer_timeout"]
|