mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-30 05:31:16 +00:00
Conveyor belts
This commit is contained in:
parent
30aa34c105
commit
362ea29852
16 changed files with 371 additions and 15 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=58 format=3 uid="uid://c4pr2707hbeph"]
|
||||
[gd_scene load_steps=60 format=3 uid="uid://c4pr2707hbeph"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d2ubk5gucny6s" path="res://Scripts/Components/FSM/PlayerFSMProxy.cs" id="1_g3wua"]
|
||||
[ext_resource type="Script" uid="uid://bw2hakslndaxm" path="res://Scripts/Components/FSM/PlayerStateMachine.cs" id="1_mpmil"]
|
||||
|
|
@ -31,6 +31,7 @@
|
|||
[ext_resource type="Script" uid="uid://cem7a1agaqtrt" path="res://Scenes/InteractionController.cs" id="27_vwjki"]
|
||||
[ext_resource type="Script" uid="uid://d0bebi2vn171l" path="res://Scripts/Components/FSM/Player/PlayerFSMItemUseModule.cs" id="29_m323t"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddwhrlrgj6i00" path="res://Sprites/Actors/Cirno.png" id="30_li0ug"]
|
||||
[ext_resource type="Script" uid="uid://camgjo4302qmq" path="res://Scripts/Components/Actors/ConveyorBeltMover.cs" id="32_4f2wn"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_b3hxm"]
|
||||
radius = 5.0
|
||||
|
|
@ -224,10 +225,14 @@ _data = {
|
|||
&"Walk_Up": SubResource("Animation_v2m0j")
|
||||
}
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_fnw0c"]
|
||||
radius = 2.05679
|
||||
|
||||
[node name="FSMPlayer" type="CharacterBody2D" node_paths=PackedStringArray("PlayerFSM", "InteractionController")]
|
||||
process_mode = 1
|
||||
collision_layer = 2
|
||||
collision_mask = 97
|
||||
platform_floor_layers = 4294967294
|
||||
platform_wall_layers = 97
|
||||
script = ExtResource("1_g3wua")
|
||||
PlayerFSM = NodePath("StateMachine")
|
||||
|
|
@ -251,7 +256,7 @@ _inputProvider = NodePath("../../InputProvider")
|
|||
_damageReceiver = NodePath("../../DamageReceiver")
|
||||
_activationProvider = NodePath("../../InteractionProvider")
|
||||
_interactionController = NodePath("../../InteractionController")
|
||||
_moduleNodes = [NodePath("../../InteractionController"), NodePath("../../ItemUser")]
|
||||
_moduleNodes = [NodePath("../../InteractionController"), NodePath("../../ItemUser"), NodePath("../../ConveyorBeltMover")]
|
||||
|
||||
[node name="Cutscene" type="Node2D" parent="StateMachine" node_paths=PackedStringArray("_animationProvider")]
|
||||
script = ExtResource("4_22ff8")
|
||||
|
|
@ -285,10 +290,8 @@ shape = SubResource("CircleShape2D_b3hxm")
|
|||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
material = ExtResource("4_5qlss")
|
||||
sprite_frames = ExtResource("4_s0ir4")
|
||||
animation = &"Drowning"
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame = 15
|
||||
frame_progress = 0.860925
|
||||
|
||||
[node name="WeaponProvider" type="Node2D" parent="."]
|
||||
script = ExtResource("5_gp3hw")
|
||||
|
|
@ -411,6 +414,17 @@ libraries = {
|
|||
&"": SubResource("AnimationLibrary_nfrn8")
|
||||
}
|
||||
|
||||
[node name="ConveyorBeltMover" type="Area2D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 512
|
||||
script = ExtResource("32_4f2wn")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ConveyorBeltMover"]
|
||||
position = Vector2(0, 6.48)
|
||||
shape = SubResource("CircleShape2D_fnw0c")
|
||||
|
||||
[connection signal="area_entered" from="DamageReceiver" to="DamageReceiver" method="_on_damage_hitbox_area_entered"]
|
||||
[connection signal="area_entered" from="InteractionProvider" to="InteractionProvider" method="_on_interaction_controller_area_entered"]
|
||||
[connection signal="area_exited" from="InteractionProvider" to="InteractionProvider" method="_on_interaction_controller_area_exited"]
|
||||
[connection signal="body_entered" from="ConveyorBeltMover" to="ConveyorBeltMover" method="OnBodyEntered"]
|
||||
[connection signal="body_exited" from="ConveyorBeltMover" to="ConveyorBeltMover" method="OnBodyExited"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue