[gd_scene load_steps=19 format=2] [ext_resource path="res://src/Actors/DashParticles_right.tscn" type="PackedScene" id=1] [ext_resource path="res://src/Actors/Player.gd" type="Script" id=2] [ext_resource path="res://src/Actors/DashParticles_left.tscn" type="PackedScene" id=3] [ext_resource path="res://src/Actors/Camera.tscn" type="PackedScene" id=4] [ext_resource path="res://assets/Items/torch_ligt_texture.png" type="Texture" id=7] [ext_resource path="res://assets/Player/herochar_spritesheet.png" type="Texture" id=8] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 5, 7 ) [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 9, 5 ) [sub_resource type="Animation" id=3] resource_name = "attack_left" length = 0.3 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2, 0.3 ), "transitions": PoolRealArray( 1, 1, 1, 1 ), "update": 1, "values": [ 12, 13, 14, 15 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 4 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( -8, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ false ] } [sub_resource type="Animation" id=4] resource_name = "attack_right" length = 0.3 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2, 0.3 ), "transitions": PoolRealArray( 1, 1, 1, 1 ), "update": 1, "values": [ 12, 13, 14, 15 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 4 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 8, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ false ] } [sub_resource type="Animation" id=5] length = 0.9 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 0, 1, 2, 3, 4, 5, 6, 7 ] } tracks/1/type = "method" tracks/1/path = NodePath(".") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0.9 ), "transitions": PoolRealArray( 1 ), "values": [ { "args": [ ], "method": "_on_die_animation_done" } ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:vframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:hframes") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 8 ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite:position") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -8 ) ] } tracks/5/type = "value" tracks/5/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/5/interp = 1 tracks/5/loop_wrap = true tracks/5/imported = false tracks/5/enabled = true tracks/5/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ true ] } [sub_resource type="Animation" id=6] length = 0.2 loop = true tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2 ), "transitions": PoolRealArray( 1, 1, 1 ), "update": 1, "values": [ 40, 41, 42 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 8 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ true ] } [sub_resource type="Animation" id=7] length = 0.3 loop = true tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2, 0.3 ), "transitions": PoolRealArray( 1, 1, 1, 1 ), "update": 1, "values": [ 32, 33, 34, 35 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 8 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ true ] } [sub_resource type="Animation" id=8] length = 0.2 loop = true tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2 ), "transitions": PoolRealArray( 1, 1, 1 ), "update": 1, "values": [ 48, 49, 50 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 8 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ true ] } [sub_resource type="Animation" id=9] resource_name = "land" length = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 73 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 8 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ true ] } [sub_resource type="Animation" id=10] length = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1 ), "transitions": PoolRealArray( 1, 1 ), "update": 1, "values": [ 72, 73 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 8 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ true ] } [sub_resource type="Animation" id=11] length = 0.5 loop = true tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 8, 9, 10, 11, 12, 13 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 8 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ true ] } tracks/5/type = "method" tracks/5/path = NodePath(".") tracks/5/interp = 1 tracks/5/loop_wrap = true tracks/5/imported = false tracks/5/enabled = true tracks/5/keys = { "times": PoolRealArray( 0.3, 0.5 ), "transitions": PoolRealArray( 1, 1 ), "values": [ { "args": [ ], "method": "play_foot_step_1" }, { "args": [ ], "method": "play_foot_step_2" } ] } [sub_resource type="Animation" id=12] length = 0.3 loop = true tracks/0/type = "value" tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2 ), "transitions": PoolRealArray( 1, 1, 1 ), "update": 0, "values": [ 45, 46, 47 ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:vframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 13 ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 8 ] } tracks/3/type = "value" tracks/3/path = NodePath("Sprite:position") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/imported = false tracks/3/enabled = true tracks/3/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Vector2( 0, -8 ) ] } tracks/4/type = "value" tracks/4/path = NodePath("Sprite/SordRange/CollisionShape2D:disabled") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/imported = false tracks/4/enabled = true tracks/4/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ true ] } [node name="Player" type="KinematicBody2D" groups=[ "Boostable", ]] collision_mask = 30 script = ExtResource( 2 ) __meta__ = { "_edit_vertical_guides_": [ 5.41509 ] } [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 0, -8 ) shape = SubResource( 1 ) [node name="Light2D" type="Light2D" parent="."] position = Vector2( 1.90735e-06, -7 ) scale = Vector2( 3.83333, 3.83333 ) texture = ExtResource( 7 ) texture_scale = 3.07 color = Color( 0.854902, 0.952941, 0.682353, 1 ) range_height = -2048.0 range_item_cull_mask = 39 shadow_enabled = true shadow_item_cull_mask = 15 [node name="Sprite" type="Sprite" parent="."] self_modulate = Color( 0.482353, 0.694118, 0.819608, 1 ) position = Vector2( 0, -8 ) texture = ExtResource( 8 ) vframes = 13 hframes = 8 frame = 13 [node name="SordRange" type="Area2D" parent="Sprite"] position = Vector2( -8, 8 ) collision_mask = 34 [node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite/SordRange"] position = Vector2( 14, -6 ) shape = SubResource( 2 ) disabled = true [node name="LightBeamInitPoint" type="Position2D" parent="Sprite"] position = Vector2( 14, 2 ) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] autoplay = "idle" anims/attack_left = SubResource( 3 ) anims/attack_right = SubResource( 4 ) anims/die = SubResource( 5 ) anims/fall = SubResource( 6 ) anims/idle = SubResource( 7 ) anims/jump = SubResource( 8 ) anims/land = SubResource( 9 ) anims/pre_jump = SubResource( 10 ) anims/run = SubResource( 11 ) anims/wall_slide = SubResource( 12 ) [node name="DashTimeout" type="Timer" parent="."] wait_time = 0.12 one_shot = true [node name="DashParticlesLeft" parent="." instance=ExtResource( 3 )] light_mask = 14 [node name="DashParticlesRight" parent="." instance=ExtResource( 1 )] [node name="RayCastWallRight" type="RayCast2D" parent="."] visible = false position = Vector2( 0, -8.09363 ) enabled = true cast_to = Vector2( 5.2, 0 ) collision_mask = 8 [node name="RayCastWallLeft" type="RayCast2D" parent="."] visible = false position = Vector2( 0, -8.04107 ) enabled = true cast_to = Vector2( -5.2, 0 ) collision_mask = 8 [node name="Camera" parent="." instance=ExtResource( 4 )] smoothing_enabled = false [connection signal="area_entered" from="Sprite/SordRange" to="." method="_on_SordRange_area_entered"] [connection signal="body_entered" from="Sprite/SordRange" to="." method="_on_SordRange_body_entered"] [connection signal="timeout" from="DashTimeout" to="." method="_on_DashTimeout_timeout"]