[gd_scene load_steps=18 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/hair_brown.tres" type="SpriteFrames" 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/GirlMobNPC.gd" type="Script" id=6] [ext_resource path="res://script/Hair.gd" type="Script" id=7] [ext_resource path="res://scene/JumpCollider.tscn" type="PackedScene" 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="RectangleShape2D" id=21] resource_local_to_scene = true extents = Vector2( 3, 8 ) [sub_resource type="RectangleShape2D" id=22] extents = Vector2( 8, 8 ) [sub_resource type="RectangleShape2D" id=23] extents = Vector2( 12, 18.5 ) [node name="GirlMob" type="KinematicBody2D"] collision_layer = 3 collision/safe_margin = 0.1 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 = ExtResource( 3 ) frame = 2 playing = true flip_h = true script = ExtResource( 7 ) [node name="CollisionTorso" type="CollisionShape2D" parent="."] position = Vector2( 0, 8 ) shape = SubResource( 21 ) [node name="CollisionHead" type="CollisionShape2D" parent="."] position = Vector2( 0, -6 ) rotation = -1.5708 shape = SubResource( 22 ) [node name="JustFallenTimer" type="Timer" parent="."] wait_time = 0.5 one_shot = true [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="StairColliderL" parent="." instance=ExtResource( 9 )] position = Vector2( -4, 17 ) [node name="StairColliderR" parent="." instance=ExtResource( 9 )] position = Vector2( 4, 17 ) [node name="JumpColliderG" parent="." instance=ExtResource( 8 )] position = Vector2( 19, 19 ) [node name="JumpColliderB" parent="." instance=ExtResource( 8 )] position = Vector2( 19, 19 ) [node name="StairColliderJCB" parent="." instance=ExtResource( 9 )] position = Vector2( 19, 19 ) [node name="ColliderLine" type="Line2D" parent="."] points = PoolVector2Array( -25, 3, 30, 4 ) width = 3.0 default_color = Color( 0.635294, 0, 0.537255, 1 ) [node name="Thorns" type="Area2D" parent="."] collision_layer = 16 collision_mask = 16 [node name="CollisionShape2D" type="CollisionShape2D" parent="Thorns"] position = Vector2( 0, 0.5 ) shape = SubResource( 23 ) [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="body_entered" from="Thorns" to="." method="_kill_the_player"]