Project2/test_levels/NewEnemyTemplate.tscn
2023-06-13 14:58:16 +02:00

46 lines
1.7 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://d0hmchxunjwg"]
[ext_resource type="Script" path="res://test_levels/Arnold/Arnold.gd" id="1_hc34b"]
[ext_resource type="Script" path="res://state_machine/StateMachine.gd" id="2_q44k6"]
[ext_resource type="Texture2D" uid="uid://bgw5itdndav4s" path="res://icon.svg" id="3_e3ano"]
[ext_resource type="Shape2D" uid="uid://dmxy3ej1fcl68" path="res://test_levels/Arnold/Shape.tres" id="4_oath2"]
[ext_resource type="Script" path="res://state_machine/misc/HitBox.gd" id="5_jcp3s"]
[ext_resource type="Script" path="res://state_machine/misc/HurtBox.gd" id="6_pxtdw"]
[node name="Arnold" type="CharacterBody2D"]
collision_layer = 2
script = ExtResource("1_hc34b")
[node name="StateMachine" type="Node" parent="."]
script = ExtResource("2_q44k6")
initial_state = NodePath("Bounce")
[node name="Bounce" type="Node" parent="StateMachine"]
[node name="Fly" type="Node" parent="StateMachine"]
[node name="Icon" type="Sprite2D" parent="."]
texture = ExtResource("3_e3ano")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = ExtResource("4_oath2")
[node name="HitBox" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 4
script = ExtResource("5_jcp3s")
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"]
shape = ExtResource("4_oath2")
[node name="HurtBox" type="Area2D" parent="."]
collision_layer = 2
collision_mask = 0
script = ExtResource("6_pxtdw")
[node name="CollisionShape2D" type="CollisionShape2D" parent="HurtBox"]
shape = ExtResource("4_oath2")
[connection signal="hit" from="HitBox" to="." method="_on_hit_box_hit"]
[connection signal="hurt" from="HurtBox" to="." method="_on_hurt_box_hurt"]