GodotWIP/src/enemyC/EnemyC.tscn
2024-06-01 22:27:07 -07:00

169 lines
4.5 KiB
Plaintext

[gd_scene load_steps=26 format=2]
[ext_resource path="res://src/templates/Actor/ActorTemplate.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/state_animated_actor.gd" type="Script" id=3]
[ext_resource path="res://src/enemyC/states/idle.gd" type="Script" id=4]
[ext_resource path="res://src/enemyC/states/wander.gd" type="Script" id=5]
[sub_resource type="StreamTexture" id=1]
load_path = "res://.import/botEnemy.png-46efd539a38730ff15fb4ddb087329c6.stex"
[sub_resource type="AtlasTexture" id=2]
atlas = SubResource( 1 )
region = Rect2( 192, 48, 48, 48 )
[sub_resource type="AtlasTexture" id=3]
atlas = SubResource( 1 )
region = Rect2( 0, 96, 48, 48 )
[sub_resource type="AtlasTexture" id=4]
atlas = SubResource( 1 )
region = Rect2( 48, 96, 48, 48 )
[sub_resource type="AtlasTexture" id=5]
atlas = SubResource( 1 )
region = Rect2( 96, 96, 48, 48 )
[sub_resource type="AtlasTexture" id=6]
atlas = SubResource( 1 )
region = Rect2( 144, 96, 48, 48 )
[sub_resource type="AtlasTexture" id=7]
atlas = SubResource( 1 )
region = Rect2( 0, 144, 48, 48 )
[sub_resource type="AtlasTexture" id=8]
atlas = SubResource( 1 )
region = Rect2( 48, 144, 48, 48 )
[sub_resource type="AtlasTexture" id=9]
atlas = SubResource( 1 )
region = Rect2( 96, 144, 48, 48 )
[sub_resource type="AtlasTexture" id=10]
atlas = SubResource( 1 )
region = Rect2( 192, 96, 48, 48 )
[sub_resource type="AtlasTexture" id=11]
atlas = SubResource( 1 )
region = Rect2( 0, 0, 48, 48 )
[sub_resource type="AtlasTexture" id=12]
atlas = SubResource( 1 )
region = Rect2( 48, 0, 48, 48 )
[sub_resource type="AtlasTexture" id=13]
atlas = SubResource( 1 )
region = Rect2( 96, 0, 48, 48 )
[sub_resource type="AtlasTexture" id=14]
atlas = SubResource( 1 )
region = Rect2( 144, 0, 48, 48 )
[sub_resource type="AtlasTexture" id=15]
atlas = SubResource( 1 )
region = Rect2( 192, 0, 48, 48 )
[sub_resource type="AtlasTexture" id=16]
atlas = SubResource( 1 )
region = Rect2( 0, 48, 48, 48 )
[sub_resource type="AtlasTexture" id=17]
atlas = SubResource( 1 )
region = Rect2( 48, 48, 48, 48 )
[sub_resource type="AtlasTexture" id=18]
atlas = SubResource( 1 )
region = Rect2( 96, 48, 48, 48 )
[sub_resource type="AtlasTexture" id=19]
atlas = SubResource( 1 )
region = Rect2( 144, 48, 48, 48 )
[sub_resource type="SpriteFrames" id=20]
animations = [ {
"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
"loop": true,
"name": "attack",
"speed": 10.0
}, {
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ) ],
"loop": true,
"name": "death",
"speed": 10.0
}, {
"frames": [ SubResource( 10 ) ],
"loop": true,
"name": "hurt",
"speed": 10.0
}, {
"frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ) ],
"loop": true,
"name": "idle",
"speed": 10.0
}, {
"frames": [ SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ) ],
"loop": true,
"name": "walk",
"speed": 10.0
} ]
[sub_resource type="RectangleShape2D" id=21]
extents = Vector2( 9, 3.5 )
[node name="EnemyC" instance=ExtResource( 1 )]
[node name="AnimatedSprite" parent="." index="0"]
position = Vector2( 11, -7 )
frames = SubResource( 20 )
animation = "idle"
frame = 2
__meta__ = {
"_aseprite_wizard_config_": {
"layer": "",
"o_ex_p": "",
"o_folder": "res://assets",
"o_name": "",
"only_visible": true,
"op_exp": false,
"slice": "",
"source": "E:/Godot/Art/botEnemy.aseprite"
}
}
[node name="CollisionShape2D" parent="." index="1"]
position = Vector2( -0.5, -2 )
[node name="idle" parent="movement_state_machine" index="0"]
script = ExtResource( 4 )
timeout_seconds = 2.0
animation_sequence = [ "idle" ]
wander_node = NodePath("../wander")
attack_node = NodePath("../attack")
[node name="fall" parent="movement_state_machine" index="1"]
animation_sequence = [ "idle" ]
[node name="wander" type="Node" parent="movement_state_machine" index="2"]
script = ExtResource( 5 )
timeout_seconds = 2.0
animation_sequence = [ "walk" ]
idle_node = NodePath("../idle")
attack_node = NodePath("../attack")
fall_node = NodePath("../fall")
[node name="attack" type="Node" parent="movement_state_machine" index="3"]
script = ExtResource( 3 )
timeout_seconds = 3.0
animation_sequence = [ "attack" ]
[node name="PlayerDetection" type="RayCast2D" parent="." index="6"]
cast_to = Vector2( 21, 0 )
[node name="Hitbox_Component" type="Area2D" parent="." index="7"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox_Component" index="0"]
modulate = Color( 1, 0.596078, 0.121569, 1 )
position = Vector2( 18, -8.5 )
shape = SubResource( 21 )