[gd_scene load_steps=22 format=2] [ext_resource path="res://asset/body.tres" type="SpriteFrames" id=1] [ext_resource path="res://script/Boots.gd" type="Script" id=2] [ext_resource path="res://asset/lady2-Hair.png" type="Texture" id=3] [ext_resource path="res://asset/lady2-Boots.png" type="Texture" id=4] [ext_resource path="res://script/Body.gd" type="Script" id=5] [ext_resource path="res://script/Player.gd" type="Script" id=6] [ext_resource path="res://script/Hair.gd" type="Script" id=7] [ext_resource path="res://asset/radial.png" type="Texture" id=8] [ext_resource path="res://scene/StairCollider.tscn" type="PackedScene" id=9] [ext_resource path="res://scene/Walker.tscn" type="PackedScene" id=10] [sub_resource type="AtlasTexture" id=2] atlas = ExtResource( 4 ) region = Rect2( 32, 0, 32, 33 ) [sub_resource type="AtlasTexture" id=3] atlas = ExtResource( 4 ) region = Rect2( 64, 0, 32, 33 ) [sub_resource type="AtlasTexture" id=1] atlas = ExtResource( 4 ) region = Rect2( 0, 0, 32, 33 ) [sub_resource type="SpriteFrames" id=4] animations = [ { "frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 1 ) ], "loop": true, "name": "default", "speed": 12.0 } ] [sub_resource type="AtlasTexture" id=10] atlas = ExtResource( 3 ) region = Rect2( 0, 0, 32, 33 ) [sub_resource type="AtlasTexture" id=11] atlas = ExtResource( 3 ) region = Rect2( 32, 0, 32, 33 ) [sub_resource type="AtlasTexture" id=12] atlas = ExtResource( 3 ) region = Rect2( 64, 0, 32, 33 ) [sub_resource type="AtlasTexture" id=13] atlas = ExtResource( 3 ) region = Rect2( 96, 0, 32, 33 ) [sub_resource type="SpriteFrames" id=14] animations = [ { "frames": [ SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ) ], "loop": true, "name": "default", "speed": 5.0 } ] [sub_resource type="RectangleShape2D" id=15] extents = Vector2( 3, 8 ) [sub_resource type="RectangleShape2D" id=16] extents = Vector2( 8, 8 ) [node name="Player" type="KinematicBody2D"] collision/safe_margin = 0.05 script = ExtResource( 6 ) [node name="Walker" parent="." instance=ExtResource( 10 )] [node name="Boots" type="AnimatedSprite" parent="."] frames = SubResource( 4 ) frame = 2 flip_h = true script = ExtResource( 2 ) [node name="Body" type="AnimatedSprite" parent="."] frames = ExtResource( 1 ) frame = 2 playing = true flip_h = true script = ExtResource( 5 ) [node name="Hair" type="AnimatedSprite" parent="."] frames = SubResource( 14 ) frame = 3 playing = true flip_h = true script = ExtResource( 7 ) [node name="CollisionTorso" type="CollisionShape2D" parent="."] position = Vector2( 0, 8 ) shape = SubResource( 15 ) [node name="CollisionHead" type="CollisionShape2D" parent="."] position = Vector2( 0, -6 ) rotation = -1.5708 shape = SubResource( 16 ) [node name="JumpGraceTimer" type="Timer" parent="."] wait_time = 0.4 one_shot = true [node name="JustJumpedTimer" type="Timer" parent="."] wait_time = 0.3 one_shot = true [node name="JustFallenTimer" type="Timer" parent="."] wait_time = 0.5 one_shot = true [node name="NecklaceLight" type="Light2D" parent="."] position = Vector2( 0, 6 ) texture = ExtResource( 8 ) texture_scale = 0.2 color = Color( 1, 0, 0, 1 ) energy = 0.0 shadow_enabled = true [node name="LightningRay" type="RayCast2D" parent="."] position = Vector2( 0, 4 ) enabled = true cast_to = Vector2( 150, 0 ) collision_mask = 2 [node name="StairColliderL" parent="." instance=ExtResource( 9 )] position = Vector2( -4, 17 ) [node name="StairColliderR" parent="." instance=ExtResource( 9 )] position = Vector2( 4, 17 ) [node name="Timer" type="Timer" parent="."] wait_time = 4.0 one_shot = true [connection signal="frame_changed" from="Boots" to="Boots" method="_on_frame_changed"] [connection signal="animation_finished" from="Body" to="Body" method="_on_animation_finished"] [connection signal="animation_finished" from="Hair" to="Hair" method="_on_animation_finished"] [connection signal="timeout" from="Timer" to="." method="go_inside" flags=6]