Marisa Rigate's Big Commit: Disaster Averted!

This commit is contained in:
Haze Weathers 2023-12-25 01:01:59 -05:00
parent 1215099f4d
commit 263d6219cc
19 changed files with 314 additions and 95 deletions

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=16 format=2]
[gd_scene load_steps=20 format=2]
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=1]
[ext_resource path="res://graphics/npc/msx_respawn.png" type="Texture" id=2]
[ext_resource path="res://graphics/npc/msx_walk.png" type="Texture" id=3]
[ext_resource path="res://graphics/npc/msx_blink.png" type="Texture" id=4]
[ext_resource path="res://graphics/npc/msx_idle.png" type="Texture" id=11]
[ext_resource path="res://scripts/snap_sprite.gd" type="Script" id=12]
[ext_resource path="res://objects/npc/msx.gd" type="Script" id=13]
@ -47,6 +49,47 @@ tracks/2/keys = {
"values": [ 0 ]
}
[sub_resource type="Animation" id=18]
resource_name = "blink"
length = 0.7
step = 0.06
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:texture")
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": [ ExtResource( 4 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:hframes")
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": [ 4 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Sprite:frame")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.12, 0.24, 0.54, 0.66 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 0 ]
}
[sub_resource type="Animation" id=15]
resource_name = "give"
length = 0.5
@ -143,6 +186,47 @@ tracks/2/keys = {
"values": [ 0 ]
}
[sub_resource type="Animation" id=17]
resource_name = "respawn"
length = 0.4
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, 0.35 ),
"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("Sprite:texture")
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": [ ExtResource( 2 ) ]
}
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 ]
}
[sub_resource type="Animation" id=9]
resource_name = "walk"
length = 0.4
@ -206,8 +290,10 @@ script = ExtResource( 13 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
anims/RESET = SubResource( 16 )
anims/blink = SubResource( 18 )
anims/give = SubResource( 15 )
anims/idle = SubResource( 4 )
anims/respawn = SubResource( 17 )
anims/walk = SubResource( 9 )
[node name="Sprite" type="Sprite" parent="."]
@ -260,8 +346,19 @@ cast_to = Vector2( 32, 0 )
collision_mask = 3
collide_with_areas = true
[node name="RespawnRaycast" type="RayCast2D" parent="."]
position = Vector2( 16, 0 )
enabled = true
cast_to = Vector2( 56, 0 )
collision_mask = 8
collide_with_areas = true
[node name="Position2D" type="Position2D" parent="."]
position = Vector2( 17, 2 )
__meta__ = {
"_gizmo_extents_": 0.0
}
[node name="BlinkTimer" type="Timer" parent="."]
[connection signal="timeout" from="BlinkTimer" to="." method="_on_BlinkTimer_timeout"]