100 lines
2.9 KiB
Plaintext
100 lines
2.9 KiB
Plaintext
[gd_scene load_steps=17 format=2]
|
|
|
|
[ext_resource path="res://src/components/Hurtbox_Component.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://src/state_machine_animated_actor.gd" type="Script" id=2]
|
|
[ext_resource path="res://src/templates/Actor/states/fall.gd" type="Script" id=3]
|
|
[ext_resource path="res://src/templates/Actor/states/idle.gd" type="Script" id=4]
|
|
[ext_resource path="res://src/movement_component.gd" type="Script" id=5]
|
|
[ext_resource path="res://src/templates/Actor/resources/Smiley.png" type="Texture" id=6]
|
|
[ext_resource path="res://src/templates/Actor/states/move.gd" type="Script" id=7]
|
|
[ext_resource path="res://src/actor.gd" type="Script" id=8]
|
|
|
|
[sub_resource type="AtlasTexture" id=76]
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 0, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=77]
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 32, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=78]
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 64, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=79]
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 0, 32, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=80]
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 32, 32, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=81]
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 64, 32, 32, 32 )
|
|
|
|
[sub_resource type="SpriteFrames" id=75]
|
|
animations = [ {
|
|
"frames": [ SubResource( 76 ), SubResource( 77 ), SubResource( 78 ), SubResource( 79 ), SubResource( 80 ), SubResource( 81 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="RectangleShape2D" id=74]
|
|
extents = Vector2( 14, 18.5 )
|
|
|
|
[node name="ActorTemplate" type="KinematicBody2D"]
|
|
collision_layer = 2
|
|
script = ExtResource( 8 )
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
frames = SubResource( 75 )
|
|
frame = 3
|
|
playing = true
|
|
flip_h = true
|
|
__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/MegaMan.aseprite"
|
|
}
|
|
}
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 0, -3.5 )
|
|
shape = SubResource( 74 )
|
|
|
|
[node name="movement_component" type="Node" parent="."]
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="movement_state_machine" type="Node" parent="."]
|
|
script = ExtResource( 2 )
|
|
starting_state = NodePath("idle")
|
|
|
|
[node name="idle" type="Node" parent="movement_state_machine"]
|
|
script = ExtResource( 4 )
|
|
animation_sequence = [ "default" ]
|
|
fall_node = NodePath("../fall")
|
|
move_node = NodePath("../move")
|
|
|
|
[node name="fall" type="Node" parent="movement_state_machine"]
|
|
script = ExtResource( 3 )
|
|
animation_sequence = [ "default" ]
|
|
idle_node = NodePath("../idle")
|
|
|
|
[node name="move" type="Node" parent="movement_state_machine"]
|
|
script = ExtResource( 7 )
|
|
animation_sequence = [ "default" ]
|
|
fall_node = NodePath("../fall")
|
|
idle_node = NodePath("../idle")
|
|
|
|
[node name="Hurtbox_Component" parent="." instance=ExtResource( 1 )]
|
|
|
|
[node name="SE_Player" type="AudioStreamPlayer" parent="."]
|