185 lines
4.8 KiB
Plaintext
185 lines
4.8 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/enemyC/enemyC_movement_component.gd" type="Script" id=2]
|
|
[ext_resource path="res://src/state_animated_actor.gd" type="Script" id=3]
|
|
|
|
[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=22]
|
|
extents = Vector2( 10, 16 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=21]
|
|
extents = Vector2( 9, 3.5 )
|
|
|
|
[node name="EnemyC" instance=ExtResource( 1 )]
|
|
actor_type = "Enemy"
|
|
|
|
[node name="AnimatedSprite" parent="." index="0"]
|
|
position = Vector2( 11, -7 )
|
|
frames = SubResource( 20 )
|
|
animation = "idle"
|
|
frame = 1
|
|
__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="movement_component" parent="." index="2"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="IdleTimeout" type="Timer" parent="movement_component" index="0"]
|
|
wait_time = 2.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="idle" parent="movement_state_machine" index="0"]
|
|
animation_sequence = [ "idle" ]
|
|
|
|
[node name="fall" parent="movement_state_machine" index="1"]
|
|
animation_sequence = [ "idle" ]
|
|
|
|
[node name="attack" type="Node" parent="movement_state_machine" index="2"]
|
|
script = ExtResource( 3 )
|
|
timeout_seconds = 3.0
|
|
animation_sequence = [ "attack" ]
|
|
|
|
[node name="move" parent="movement_state_machine" index="3"]
|
|
animation_sequence = [ "walk" ]
|
|
|
|
[node name="CollisionShape2D" parent="Hurtbox_Component" index="0"]
|
|
position = Vector2( -1, -2 )
|
|
shape = SubResource( 22 )
|
|
|
|
[node name="EdgeDetection" type="RayCast2D" parent="." index="6"]
|
|
modulate = Color( 0.054902, 1, 0, 1 )
|
|
show_behind_parent = true
|
|
position = Vector2( 15, 3 )
|
|
enabled = true
|
|
cast_to = Vector2( 0, 17 )
|
|
collide_with_areas = true
|
|
|
|
[node name="PlayerDetection" type="RayCast2D" parent="." index="7"]
|
|
enabled = true
|
|
cast_to = Vector2( 21, 0 )
|
|
collision_mask = 2
|
|
|
|
[node name="Hitbox_Component" type="Area2D" parent="." index="8"]
|
|
|
|
[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 )
|