[gd_scene load_steps=28 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://cuberot.png" type="Texture" id=2]
[ext_resource path="res://arrow.png" type="Texture" id=3]
[ext_resource path="res://spot.png" type="Texture" id=4]
[sub_resource type="Curve" id=1]
_data = [ Vector2( 0.0184332, 0.967672 ), 0.0, 0.0, 0, 0, Vector2( 0.184332, 0.795259 ), 0.0, 0.0, 0, 0, Vector2( 0.308756, 0.890086 ), 0.0, 0.0, 0, 0, Vector2( 0.474654, 0.769397 ), 0.0, 0.0, 0, 0, Vector2( 0.585253, 0.950431 ), 0.0, 0.0, 0, 0, Vector2( 0.714286, 0.924569 ), 0.0, 0.0, 0, 0, Vector2( 0.83871, 0.786638 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="Gradient" id=2]
offsets = PoolRealArray( 0, 0.944751, 1 )
colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 0.952128, 1, 1, 1, 0 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 7.5, 7.5 )
[sub_resource type="Animation" id=19]
resource_name = "Idle"
length = 0.1
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 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0 ]
}
[sub_resource type="Animation" id=8]
resource_name = "MoveDown"
length = 0.35
loop = true
step = 0.05
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.05, 0.1, 0.15, 0.2, 0.25, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5, 6 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:rotation_degrees")
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": [ 0.0 ]
}
[sub_resource type="Animation" id=6]
resource_name = "MoveLeft"
length = 0.35
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:rotation_degrees")
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": [ 90.0 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5, 6 ]
}
[sub_resource type="Animation" id=20]
resource_name = "MoveRight"
length = 0.35
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:rotation_degrees")
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": [ -90.0 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5, 6 ]
}
[sub_resource type="Animation" id=7]
resource_name = "MoveUp"
length = 0.35
loop = true
step = 0.01
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:rotation_degrees")
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": [ 180.0 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5, 6 ]
}
[sub_resource type="Animation" id=21]
length = 0.001
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": 0,
"values": [ 0 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:rotation_degrees")
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": 0,
"values": [ -90.0 ]
}
[sub_resource type="AnimationNodeAnimation" id=24]
animation = "Idle"
[sub_resource type="AnimationNodeAnimation" id=25]
animation = "Idle"
[sub_resource type="AnimationNodeAnimation" id=22]
animation = "Idle"
[sub_resource type="AnimationNodeAnimation" id=23]
animation = "Idle"
[sub_resource type="AnimationNodeBlendSpace2D" id=9]
blend_point_0/node = SubResource( 24 )
blend_point_0/pos = Vector2( -0.1, 0 )
blend_point_1/node = SubResource( 25 )
blend_point_1/pos = Vector2( 0, 0.6 )
blend_point_2/node = SubResource( 22 )
blend_point_2/pos = Vector2( 0.1, 0 )
blend_point_3/node = SubResource( 23 )
blend_point_3/pos = Vector2( 0, -0.6 )
[sub_resource type="AnimationNodeAnimation" id=15]
animation = "MoveDown"
[sub_resource type="AnimationNodeAnimation" id=16]
animation = "MoveRight"
[sub_resource type="AnimationNodeAnimation" id=17]
animation = "MoveUp"
[sub_resource type="AnimationNodeAnimation" id=18]
animation = "MoveLeft"
[sub_resource type="AnimationNodeBlendSpace2D" id=10]
blend_point_0/node = SubResource( 15 )
blend_point_0/pos = Vector2( 0, 1 )
blend_point_1/node = SubResource( 16 )
blend_point_1/pos = Vector2( 1, 0 )
blend_point_2/node = SubResource( 17 )
blend_point_2/pos = Vector2( 0, -1 )
blend_point_3/node = SubResource( 18 )
blend_point_3/pos = Vector2( -1, 0 )
blend_mode = 1
[sub_resource type="AnimationNodeStateMachineTransition" id=11]
[sub_resource type="AnimationNodeStateMachineTransition" id=12]
[sub_resource type="AnimationNodeStateMachine" id=13]
states/Idle/node = SubResource( 9 )
states/Idle/position = Vector2( 517, 64 )
states/Run/node = SubResource( 10 )
states/Run/position = Vector2( 663, 64 )
transitions = [ "Idle", "Run", SubResource( 11 ), "Run", "Idle", SubResource( 12 ) ]
start_node = "Idle"
[sub_resource type="AnimationNodeStateMachinePlayback" id=14]
[node name="Player" type="Area2D"]
collision_layer = 0
collision_mask = 2
script = ExtResource( 1 )
[node name="Light2D" type="Light2D" parent="."]
position = Vector2( 8, 8 )
texture = ExtResource( 4 )
color = Color( 0.14902, 0.360784, 1, 1 )
shadow_enabled = true
shadow_gradient_length = 1.0
shadow_filter = 3
shadow_filter_smooth = 4.0
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
show_behind_parent = true
position = Vector2( 8, 8 )
amount = 4
local_coords = false
gravity = Vector2( 0, 0 )
scale_amount = 5.0
scale_amount_random = 1.0
scale_amount_curve = SubResource( 1 )
color_ramp = SubResource( 2 )
[node name="Direction" type="Sprite" parent="."]
position = Vector2( 8, 8 )
z_index = 1
texture = ExtResource( 3 )
offset = Vector2( 9.95932, -0.107321 )
[node name="Tween" type="Tween" parent="."]
[node name="RayCast2D" type="RayCast2D" parent="."]
visible = false
position = Vector2( 8, 8 )
cast_to = Vector2( 50, 0 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 8, 8 )
rotation = -1.5708
texture = ExtResource( 2 )
centered = false
offset = Vector2( -8, -8 )
hframes = 7
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( 8, 8 )
shape = SubResource( 3 )
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2( 8, 8 )
current = true
zoom = Vector2( 0.5, 0.5 )
smoothing_enabled = true
smoothing_speed = 4.0
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/Idle = SubResource( 19 )
anims/MoveDown = SubResource( 8 )
anims/MoveLeft = SubResource( 6 )
anims/MoveRight = SubResource( 20 )
anims/MoveUp = SubResource( 7 )
anims/RESET = SubResource( 21 )
[node name="AnimationTree" type="AnimationTree" parent="."]
tree_root = SubResource( 13 )
anim_player = NodePath("../AnimationPlayer")
parameters/playback = SubResource( 14 )
parameters/Idle/blend_position = Vector2( 0, 0 )
parameters/Run/blend_position = Vector2( 0, 0 )
[connection signal="body_exited" from="." to="." method="_on_Player_body_exited"]