60 lines
2.2 KiB
Plaintext
60 lines
2.2 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://cimfppw1x6q25"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bgw5itdndav4s" path="res://icon.svg" id="1_kxuah"]
|
|
[ext_resource type="Script" path="res://state_machine/StateMachine.gd" id="1_nxyup"]
|
|
[ext_resource type="Script" path="res://test_levels/Arnold/Arnold.gd" id="1_oeyxc"]
|
|
[ext_resource type="PackedScene" uid="uid://d4mwda7b1uud7" path="res://global/Actor.tscn" id="2_v7we7"]
|
|
[ext_resource type="Shape2D" uid="uid://dmxy3ej1fcl68" path="res://test_levels/Arnold/Shape.tres" id="3_ed81x"]
|
|
[ext_resource type="Script" path="res://state_machine/Fly.gd" id="4_8mpis"]
|
|
[ext_resource type="Script" path="res://state_machine/misc/HitBox.gd" id="5_kntr3"]
|
|
[ext_resource type="PackedScene" uid="uid://vryobnt2swfg" path="res://state_machine/misc/HurtBox.tscn" id="9_ljdjj"]
|
|
|
|
[node name="Arnold" type="CharacterBody2D" groups=["debug_enemy_respawn"]]
|
|
collision_layer = 2
|
|
collision_mask = 9
|
|
script = ExtResource("1_oeyxc")
|
|
health = 50
|
|
bounce_time = 5.0
|
|
bounce_time_variation = 1.0
|
|
fly_time = 3.0
|
|
fly_time_variation = 0.5
|
|
bounce_angle = 0.523
|
|
|
|
[node name="Actor" parent="." instance=ExtResource("2_v7we7")]
|
|
original_scene = "res://test_levels/Arnold/Arnold.tscn"
|
|
|
|
[node name="StateMachine" type="Node" parent="."]
|
|
script = ExtResource("1_nxyup")
|
|
initial_state = NodePath("Fly")
|
|
dont_enter_at_init = true
|
|
|
|
[node name="Bounce" type="Node" parent="StateMachine"]
|
|
script = ExtResource("4_8mpis")
|
|
speed = 200.0
|
|
speed_variation = 30.0
|
|
|
|
[node name="Fly" type="Node" parent="StateMachine"]
|
|
script = ExtResource("4_8mpis")
|
|
speed = 100.0
|
|
|
|
[node name="Icon" type="Sprite2D" parent="."]
|
|
texture = ExtResource("1_kxuah")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = ExtResource("3_ed81x")
|
|
|
|
[node name="HitBox" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
script = ExtResource("5_kntr3")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"]
|
|
shape = ExtResource("3_ed81x")
|
|
|
|
[node name="HurtBox" parent="." instance=ExtResource("9_ljdjj")]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="HurtBox"]
|
|
shape = ExtResource("3_ed81x")
|
|
|
|
[connection signal="hurt" from="HurtBox" to="." method="_on_hurt_box_hurt"]
|