Removed cultist idle state
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
[ext_resource type="PackedScene" uid="uid://dike8xgbqdut2" path="res://game/killing_area.tscn" id="3_tjvyk"]
|
||||
[ext_resource type="PackedScene" uid="uid://bg7k6ovbk1xgm" path="res://game/characters/enemies/state_machine/cultist_state_machine.tscn" id="4_yu28k"]
|
||||
[ext_resource type="PackedScene" uid="uid://bq1v55jv4c6qe" path="res://game/characters/enemies/state_machine/cultist_state.tscn" id="5_tu2pi"]
|
||||
[ext_resource type="Script" uid="uid://cdw73paln1rg8" path="res://game/characters/enemies/state_machine/idle_state.gd" id="6_e5j7k"]
|
||||
[ext_resource type="Script" uid="uid://bqnq6m0s4etqh" path="res://game/characters/enemies/state_machine/fall_state.gd" id="7_7tkj8"]
|
||||
[ext_resource type="Script" uid="uid://b8o0lvuy6a5q1" path="res://game/characters/enemies/state_machine/fall_left_state.gd" id="8_2opx4"]
|
||||
[ext_resource type="Script" uid="uid://cxg54u14yb6go" path="res://game/characters/enemies/state_machine/fall_right_state.gd" id="9_lu83c"]
|
||||
@@ -92,11 +91,6 @@ shape = SubResource("CapsuleShape2D_tjvyk")
|
||||
cultist = NodePath("..")
|
||||
initial_state = NodePath("WalkLeftState")
|
||||
|
||||
[node name="IdleState" parent="CultistStateMachine" unique_id=739226464 node_paths=PackedStringArray("fall_state", "cultist") instance=ExtResource("5_tu2pi")]
|
||||
script = ExtResource("6_e5j7k")
|
||||
fall_state = NodePath("../FallState")
|
||||
cultist = NodePath("../..")
|
||||
|
||||
[node name="FallState" parent="CultistStateMachine" unique_id=1764777802 node_paths=PackedStringArray("look_around_state", "cultist") instance=ExtResource("5_tu2pi")]
|
||||
script = ExtResource("7_7tkj8")
|
||||
look_around_state = NodePath("../LookAroundState")
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
extends CultistState
|
||||
|
||||
|
||||
@export var fall_state: CultistState
|
||||
|
||||
|
||||
func enter() -> void:
|
||||
cultist.sprite.play(CultistSprite.ANIMATION_IDLE)
|
||||
cultist.velocity = Vector2.ZERO
|
||||
|
||||
|
||||
func physics_process(_delta: float) -> void:
|
||||
if not cultist.is_on_floor():
|
||||
switch_state.emit(fall_state)
|
||||
@@ -1 +0,0 @@
|
||||
uid://cdw73paln1rg8
|
||||
@@ -317,23 +317,15 @@ position = Vector2(857, 136)
|
||||
|
||||
[node name="BlackCultist1" parent="Enemies" parent_id_path=PackedInt32Array(857989772) index="0" unique_id=129671926 instance=ExtResource("22_b1xny")]
|
||||
position = Vector2(1041, 352)
|
||||
type = 1
|
||||
initial_state = 1
|
||||
|
||||
[node name="BlackCultist2" parent="Enemies" parent_id_path=PackedInt32Array(857989772) index="1" unique_id=1222909487 instance=ExtResource("22_b1xny")]
|
||||
position = Vector2(477, 160)
|
||||
type = 1
|
||||
initial_state = 1
|
||||
position = Vector2(403, 160)
|
||||
|
||||
[node name="WhiteCultist1" parent="Enemies" parent_id_path=PackedInt32Array(857989772) index="2" unique_id=503464276 instance=ExtResource("23_8555i")]
|
||||
position = Vector2(587, 368)
|
||||
type = 1
|
||||
initial_state = 2
|
||||
|
||||
[node name="WhiteCultist2" parent="Enemies" parent_id_path=PackedInt32Array(857989772) index="3" unique_id=624398972 instance=ExtResource("23_8555i")]
|
||||
position = Vector2(493, 160)
|
||||
type = 1
|
||||
initial_state = 2
|
||||
position = Vector2(549, 160)
|
||||
|
||||
[node name="Player" parent="." index="4" unique_id=1058744997]
|
||||
position = Vector2(208, -162)
|
||||
|
||||
Reference in New Issue
Block a user