285 lines
7.1 KiB
Text
285 lines
7.1 KiB
Text
|
[gd_scene load_steps=12 format=2]
|
||
|
|
||
|
[ext_resource path="res://src/Actors/Player.gd" type="Script" id=2]
|
||
|
[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="Animation" id=2]
|
||
|
resource_name = "die"
|
||
|
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 = "value"
|
||
|
tracks/1/path = NodePath("ScreenOverlay/CanvasModulate:color")
|
||
|
tracks/1/interp = 1
|
||
|
tracks/1/loop_wrap = true
|
||
|
tracks/1/imported = false
|
||
|
tracks/1/enabled = true
|
||
|
tracks/1/keys = {
|
||
|
"times": PoolRealArray( 0, 0.7, 0.9 ),
|
||
|
"transitions": PoolRealArray( 1, 1, 2.54912 ),
|
||
|
"update": 0,
|
||
|
"values": [ Color( 0, 0, 0, 0 ), Color( 0, 0, 0, 0 ), Color( 0, 0, 0, 1 ) ]
|
||
|
}
|
||
|
tracks/2/type = "method"
|
||
|
tracks/2/path = NodePath(".")
|
||
|
tracks/2/interp = 1
|
||
|
tracks/2/loop_wrap = true
|
||
|
tracks/2/imported = false
|
||
|
tracks/2/enabled = true
|
||
|
tracks/2/keys = {
|
||
|
"times": PoolRealArray( 0.9 ),
|
||
|
"transitions": PoolRealArray( 1 ),
|
||
|
"values": [ {
|
||
|
"args": [ ],
|
||
|
"method": "_on_die_animation_done"
|
||
|
} ]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id=3]
|
||
|
resource_name = "fade_in"
|
||
|
length = 0.2
|
||
|
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": [ 32 ]
|
||
|
}
|
||
|
tracks/1/type = "value"
|
||
|
tracks/1/path = NodePath("ScreenOverlay/CanvasModulate:color")
|
||
|
tracks/1/interp = 1
|
||
|
tracks/1/loop_wrap = true
|
||
|
tracks/1/imported = false
|
||
|
tracks/1/enabled = true
|
||
|
tracks/1/keys = {
|
||
|
"times": PoolRealArray( 0, 0.2 ),
|
||
|
"transitions": PoolRealArray( 1, 0.378929 ),
|
||
|
"update": 0,
|
||
|
"values": [ Color( 0, 0, 0, 1 ), Color( 0, 0, 0, 0 ) ]
|
||
|
}
|
||
|
tracks/2/type = "method"
|
||
|
tracks/2/path = NodePath(".")
|
||
|
tracks/2/interp = 1
|
||
|
tracks/2/loop_wrap = true
|
||
|
tracks/2/imported = false
|
||
|
tracks/2/enabled = true
|
||
|
tracks/2/keys = {
|
||
|
"times": PoolRealArray( 0.2 ),
|
||
|
"transitions": PoolRealArray( 1 ),
|
||
|
"values": [ {
|
||
|
"args": [ ],
|
||
|
"method": "_revive"
|
||
|
} ]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id=4]
|
||
|
resource_name = "fall"
|
||
|
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("ScreenOverlay/CanvasModulate:color")
|
||
|
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": [ Color( 0, 0, 0, 0 ) ]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id=5]
|
||
|
resource_name = "idle"
|
||
|
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("ScreenOverlay/CanvasModulate:color")
|
||
|
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": [ Color( 0, 0, 0, 0 ) ]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id=6]
|
||
|
resource_name = "jump"
|
||
|
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("ScreenOverlay/CanvasModulate:color")
|
||
|
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": [ Color( 0, 0, 0, 0 ) ]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id=7]
|
||
|
resource_name = "pre_jump"
|
||
|
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("ScreenOverlay/CanvasModulate:color")
|
||
|
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": [ Color( 0, 0, 0, 0 ) ]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id=8]
|
||
|
resource_name = "run"
|
||
|
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("ScreenOverlay/CanvasModulate:color")
|
||
|
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": [ Color( 0, 0, 0, 0 ) ]
|
||
|
}
|
||
|
|
||
|
[node name="Player" type="KinematicBody2D"]
|
||
|
collision_mask = 30
|
||
|
script = ExtResource( 2 )
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
position = Vector2( 0, -7 )
|
||
|
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.262745, 0.890196, 0.937255, 1 )
|
||
|
energy = 0.61
|
||
|
range_height = -2048.0
|
||
|
range_item_cull_mask = 15
|
||
|
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
|
||
|
|
||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||
|
autoplay = "idle"
|
||
|
anims/die = SubResource( 2 )
|
||
|
anims/fade_in = SubResource( 3 )
|
||
|
anims/fall = SubResource( 4 )
|
||
|
anims/idle = SubResource( 5 )
|
||
|
anims/jump = SubResource( 6 )
|
||
|
anims/pre_jump = SubResource( 7 )
|
||
|
anims/run = SubResource( 8 )
|
||
|
|
||
|
[node name="ScreenOverlay" type="CanvasLayer" parent="."]
|
||
|
layer = 128
|
||
|
|
||
|
[node name="CanvasModulate" type="ColorRect" parent="ScreenOverlay"]
|
||
|
anchor_right = 1.0
|
||
|
anchor_bottom = 1.0
|
||
|
color = Color( 0, 0, 0, 0 )
|
||
|
__meta__ = {
|
||
|
"_edit_use_anchors_": false
|
||
|
}
|