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

@ -223,3 +223,7 @@ func _enter_code():
fast_punishment = 1 fast_punishment = 1
"FASTERPUNISHMENT": "FASTERPUNISHMENT":
fast_punishment = 2 fast_punishment = 2
"WIGGLE":
var player = get_tree().get_nodes_in_group("player").pop_back()
player.sprite.material.set_shader_param("palette", load("res://graphics/player/palettes/costume_wriggle.png"))
player.sprite.set_texture(load("res://graphics/player/costume_wriggle.png"))

BIN
graphics/npc/msx_blink.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/msx_blink.png-3e81cac31b42c7066c74bede693edca4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/npc/msx_blink.png"
dest_files=[ "res://.import/msx_blink.png-3e81cac31b42c7066c74bede693edca4.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/msx_respawn.png-079d35100957fd3b65980cf58702fa84.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/npc/msx_respawn.png"
dest_files=[ "res://.import/msx_respawn.png-079d35100957fd3b65980cf58702fa84.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/costume_wriggle.png-9a4503fad456a1616bc9300fa81a7e80.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/player/costume_wriggle.png"
dest_files=[ "res://.import/costume_wriggle.png-9a4503fad456a1616bc9300fa81a7e80.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/costume_wriggle.png-fad3e57a7421b503255cab9833e11de8.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/player/palettes/costume_wriggle.png"
dest_files=[ "res://.import/costume_wriggle.png-fad3e57a7421b503255cab9833e11de8.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -743,7 +743,7 @@ Wolfboy
Rhidianruckus Rhidianruckus
Wily Beast Wily Beast
Maddy Maddy
" Sylvan"
align = 1 align = 1
valign = 1 valign = 1
@ -832,7 +832,7 @@ align = 1
material = SubResource( 8 ) material = SubResource( 8 )
position = Vector2( 106, 69 ) position = Vector2( 106, 69 )
frames = SubResource( 18 ) frames = SubResource( 18 )
frame = 1 frame = 2
playing = true playing = true
[node name="Label" type="Label" parent="Control/RollCall1/MsX"] [node name="Label" type="Label" parent="Control/RollCall1/MsX"]
@ -918,7 +918,6 @@ align = 1
material = SubResource( 13 ) material = SubResource( 13 )
position = Vector2( 2952, 24 ) position = Vector2( 2952, 24 )
frames = SubResource( 24 ) frames = SubResource( 24 )
frame = 1
playing = true playing = true
[node name="Label" type="Label" parent="Control/RollCall2/Catbat"] [node name="Label" type="Label" parent="Control/RollCall2/Catbat"]
@ -934,7 +933,6 @@ align = 1
[node name="TheScrump" type="AnimatedSprite" parent="Control/RollCall2"] [node name="TheScrump" type="AnimatedSprite" parent="Control/RollCall2"]
position = Vector2( 2992, 128 ) position = Vector2( 2992, 128 )
frames = SubResource( 27 ) frames = SubResource( 27 )
frame = 1
playing = true playing = true
[node name="Label" type="Label" parent="Control/RollCall2/TheScrump"] [node name="Label" type="Label" parent="Control/RollCall2/TheScrump"]
@ -982,7 +980,7 @@ align = 1
material = SubResource( 34 ) material = SubResource( 34 )
position = Vector2( 3024, 62 ) position = Vector2( 3024, 62 )
frames = SubResource( 43 ) frames = SubResource( 43 )
frame = 1 frame = 6
playing = true playing = true
[node name="Label" type="Label" parent="Control/RollCall2/Skelarcher"] [node name="Label" type="Label" parent="Control/RollCall2/Skelarcher"]
@ -1107,7 +1105,7 @@ align = 1
material = SubResource( 71 ) material = SubResource( 71 )
position = Vector2( 72, 152 ) position = Vector2( 72, 152 )
frames = SubResource( 80 ) frames = SubResource( 80 )
frame = 2 frame = 7
playing = true playing = true
[node name="Label" type="Label" parent="Control/RollCall3/Hellarcher"] [node name="Label" type="Label" parent="Control/RollCall3/Hellarcher"]
@ -1124,6 +1122,7 @@ align = 1
material = SubResource( 66 ) material = SubResource( 66 )
position = Vector2( 68, 104 ) position = Vector2( 68, 104 )
frames = SubResource( 70 ) frames = SubResource( 70 )
frame = 1
playing = true playing = true
[node name="Label" type="Label" parent="Control/RollCall3/Turchin"] [node name="Label" type="Label" parent="Control/RollCall3/Turchin"]
@ -1153,6 +1152,7 @@ position = Vector2( 4, 0 )
z_index = 1 z_index = 1
frames = SubResource( 61 ) frames = SubResource( 61 )
animation = "chomp" animation = "chomp"
frame = 1
playing = true playing = true
[node name="Border" type="AnimatedSprite" parent="Control/RollCall3/Beel/Head/Sprite"] [node name="Border" type="AnimatedSprite" parent="Control/RollCall3/Beel/Head/Sprite"]
@ -1160,6 +1160,7 @@ material = SubResource( 62 )
z_index = -1 z_index = -1
frames = SubResource( 61 ) frames = SubResource( 61 )
animation = "chomp" animation = "chomp"
frame = 1
playing = true playing = true
[node name="ShapeTransform" type="RemoteTransform2D" parent="Control/RollCall3/Beel/Head"] [node name="ShapeTransform" type="RemoteTransform2D" parent="Control/RollCall3/Beel/Head"]
@ -1310,6 +1311,7 @@ align = 1
material = SubResource( 82 ) material = SubResource( 82 )
position = Vector2( 3362, 122.5 ) position = Vector2( 3362, 122.5 )
frames = SubResource( 87 ) frames = SubResource( 87 )
frame = 2
playing = true playing = true
[node name="Label" type="Label" parent="Control/RollCall4/Famicop"] [node name="Label" type="Label" parent="Control/RollCall4/Famicop"]

View file

@ -24,8 +24,6 @@ onready var filled_shards: Node2D = $"%FilledShards"
onready var shard_title: Label = $"%ShardTitle" onready var shard_title: Label = $"%ShardTitle"
onready var shard_arrow: Sprite = $"%ShardArrow" onready var shard_arrow: Sprite = $"%ShardArrow"
onready var animation_player: AnimationPlayer = $AnimationPlayer onready var animation_player: AnimationPlayer = $AnimationPlayer
onready var forward_status: TabContainer = $"%ForwardStatus"
onready var shards_required: Label = $"%ShardsRequired"
func _ready() -> void: func _ready() -> void:
Fade.fade_in(0.4) Fade.fade_in(0.4)
@ -91,15 +89,7 @@ func _input(event: InputEvent) -> void:
shard_arrow.position.x = filled_shards.get_child(selected_shard).position.x shard_arrow.position.x = filled_shards.get_child(selected_shard).position.x
func _select_level(level_id: int) -> void: func _select_level(level_id: int) -> void:
var level: LevelEntry = LevelData.levels[level_id] var level = LevelData.levels[level_id]
# fail if required boss is not beaten
if not level.boss_required.empty():
var boss_save = Save.current_file.levels[level.boss_required]
if not boss_save.completed:
return
# fail if not enough shards
if Save.current_file.get_total_shards() < level.shards_required:
return
selected_level = level_id selected_level = level_id
# hide arrows at edges of leve set # hide arrows at edges of leve set
if level_id == 0: if level_id == 0:
@ -107,19 +97,9 @@ func _select_level(level_id: int) -> void:
else: else:
back_arrow.modulate.a = 1.0 back_arrow.modulate.a = 1.0
if level_id == LevelData.levels.size() - 1: if level_id == LevelData.levels.size() - 1:
forward_status.current_tab = 0
forward_arrow.modulate.a = 0.0 forward_arrow.modulate.a = 0.0
else: else:
forward_status.current_tab = 0
forward_arrow.modulate.a = 1.0 forward_arrow.modulate.a = 1.0
var next_level = LevelData.levels[level_id + 1]
if Save.current_file.get_total_shards() < next_level.shards_required:
forward_status.current_tab = 1
shards_required.text = str(next_level.shards_required)
if not next_level.boss_required.empty():
var boss_save = Save.current_file.levels[next_level.boss_required]
if not boss_save.completed:
forward_status.current_tab = 2
# set text # set text
level_title.text = level.title level_title.text = level.title
# initiate animation # initiate animation

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=22 format=2] [gd_scene load_steps=19 format=2]
[ext_resource path="res://menus/level_select_scholar.gd" type="Script" id=1] [ext_resource path="res://menus/level_select_scholar.gd" type="Script" id=1]
[ext_resource path="res://graphics/level_select/world_map.png" type="Texture" id=2] [ext_resource path="res://graphics/level_select/world_map.png" type="Texture" id=2]
@ -7,11 +7,9 @@
[ext_resource path="res://graphics/hud/pause_arrow.png" type="Texture" id=5] [ext_resource path="res://graphics/hud/pause_arrow.png" type="Texture" id=5]
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=6] [ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=6]
[ext_resource path="res://shaders/wibble_wobble.gdshader" type="Shader" id=7] [ext_resource path="res://shaders/wibble_wobble.gdshader" type="Shader" id=7]
[ext_resource path="res://ui/2ndpuberty_scholar_outline.fnt" type="BitmapFont" id=8]
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=9] [ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=9]
[ext_resource path="res://graphics/collectibles/shard.png" type="Texture" id=10] [ext_resource path="res://graphics/collectibles/shard.png" type="Texture" id=10]
[ext_resource path="res://objects/collectibles/shard.tscn" type="PackedScene" id=11] [ext_resource path="res://objects/collectibles/shard.tscn" type="PackedScene" id=11]
[ext_resource path="res://graphics/falling_block/woeful_soul.png" type="Texture" id=12]
[ext_resource path="res://graphics/hud/levelselect_arrow.png" type="Texture" id=14] [ext_resource path="res://graphics/hud/levelselect_arrow.png" type="Texture" id=14]
[sub_resource type="Curve2D" id=1] [sub_resource type="Curve2D" id=1]
@ -33,10 +31,6 @@ shader_param/ammount = Vector2( 2, 0 )
shader_param/offset = Vector2( 0, 0 ) shader_param/offset = Vector2( 0, 0 )
shader_param/delay = Vector2( 4, 0 ) shader_param/delay = Vector2( 4, 0 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 12 )
region = Rect2( 8, 0, 8, 8 )
[sub_resource type="ShaderMaterial" id=5] [sub_resource type="ShaderMaterial" id=5]
shader = ExtResource( 9 ) shader = ExtResource( 9 )
shader_param/border_color = Color( 0, 0, 0, 1 ) shader_param/border_color = Color( 0, 0, 0, 1 )
@ -209,7 +203,6 @@ offset = 300.0
[node name="CurrentLevel" type="HBoxContainer" parent="."] [node name="CurrentLevel" type="HBoxContainer" parent="."]
anchor_right = 1.0 anchor_right = 1.0
margin_bottom = 16.0 margin_bottom = 16.0
theme = ExtResource( 4 )
alignment = 1 alignment = 1
[node name="BackArrow" type="TextureRect" parent="CurrentLevel"] [node name="BackArrow" type="TextureRect" parent="CurrentLevel"]
@ -235,51 +228,15 @@ text = "Verdant Hills"
align = 1 align = 1
valign = 1 valign = 1
[node name="ForwardStatus" type="TabContainer" parent="CurrentLevel"] [node name="ForwardArrow" type="TextureRect" parent="CurrentLevel"]
unique_name_in_owner = true
margin_left = 177.0
margin_right = 183.0
margin_bottom = 16.0
tabs_visible = false
[node name="ForwardArrow" type="TextureRect" parent="CurrentLevel/ForwardStatus"]
unique_name_in_owner = true unique_name_in_owner = true
material = SubResource( 3 ) material = SubResource( 3 )
anchor_right = 1.0 margin_left = 177.0
anchor_bottom = 1.0 margin_top = 4.0
margin_right = 183.0
margin_bottom = 12.0
size_flags_vertical = 4 size_flags_vertical = 4
texture = ExtResource( 5 ) texture = ExtResource( 5 )
stretch_mode = 4
[node name="NotEnoughShards" type="HBoxContainer" parent="CurrentLevel/ForwardStatus"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Shard" type="TextureRect" parent="CurrentLevel/ForwardStatus/NotEnoughShards"]
material = ExtResource( 6 )
margin_top = 2.0
margin_right = 11.0
margin_bottom = 13.0
size_flags_vertical = 4
texture = ExtResource( 10 )
[node name="ShardsRequired" type="Label" parent="CurrentLevel/ForwardStatus/NotEnoughShards"]
unique_name_in_owner = true
margin_left = 15.0
margin_top = 3.0
margin_right = 29.0
margin_bottom = 13.0
custom_colors/font_color = Color( 0.960784, 0.2, 0.258824, 1 )
custom_fonts/font = ExtResource( 8 )
text = "20"
[node name="BossNotBeaten" type="TextureRect" parent="CurrentLevel/ForwardStatus"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
texture = SubResource( 9 )
stretch_mode = 4
[node name="LevelStats" type="Panel" parent="."] [node name="LevelStats" type="Panel" parent="."]
visible = false visible = false

View file

@ -9,5 +9,6 @@ func _on_ActivationArea_area_entered(area):
if area.is_in_group("player_hitbox"): if area.is_in_group("player_hitbox"):
activate() activate()
$Sprite.frame = 1 $Sprite.frame = 1
$StaticBody2D/CollisionPolygon2D.disabled = true
pressed = true pressed = true
Audio.play_sound(sound,$AudioStreamPlayer) Audio.play_sound(sound,$AudioStreamPlayer)

View file

@ -8,7 +8,6 @@ extents = Vector2( 2, 0.5 )
[node name="Button" type="Node2D"] [node name="Button" type="Node2D"]
script = ExtResource( 2 ) script = ExtResource( 2 )
type = "button"
[node name="Sprite" type="Sprite" parent="."] [node name="Sprite" type="Sprite" parent="."]
position = Vector2( 4, 4 ) position = Vector2( 4, 4 )

View file

@ -23,4 +23,4 @@ margin_bottom = 143.0
margin_top = 3.0 margin_top = 3.0
margin_bottom = 91.0 margin_bottom = 91.0
text = "Ms. X (Marisa Xevious): text = "Ms. X (Marisa Xevious):
born 10/21/2062, she was locked up for such trivial crimes as shoplifting and marijuana possession. her reliance on weed causes many issues in her life." born 10/21/2062, she was locked up for such trivial crimes as shoplifting and marijuana possession. her reliance on drugs causes many issues in her life."

View file

@ -3,25 +3,38 @@ extends KinematicBody2D
var velocity = Vector2.ZERO var velocity = Vector2.ZERO
var is_moving = false var is_moving = false
var is_holding_shard = true var is_holding_shard = true
var has_respawned = false
onready var death_particles = $DeathSplatter onready var death_particles = $DeathSplatter
onready var sprite = $Sprite onready var sprite = $Sprite
onready var anims = $AnimationPlayer onready var anims = $AnimationPlayer
onready var raycast = $RayCast2D onready var raycast = $RayCast2D
onready var respawn_raycast = $RespawnRaycast
onready var shard_position = $Position2D onready var shard_position = $Position2D
onready var start_position = position
onready var blink_timer = $BlinkTimer
const shard = preload("res://objects/collectibles/shard.tscn") const shard = preload("res://objects/collectibles/shard.tscn")
const BloodSpray := preload("res://objects/environment/blood/blood_spray.tscn")
func _ready(): func _ready():
raycast.add_exception($Hitbox) raycast.add_exception($Hitbox)
blink_timer.start(rand_range(5.0,7.0))
func _physics_process(delta): func _physics_process(delta):
print(respawn_raycast.get_collider())
if is_moving: velocity.x = -50 if is_moving: velocity.x = -50
#Stop when see something #Stop when see something
if raycast.is_colliding(): velocity.x = 0 if raycast.is_colliding():
#stop behind sg
velocity.x = 0
if respawn_raycast.is_colliding():
#start moving again after respawning when seeing sg
if raycast.get_collider() != null:
if raycast.get_collider().is_in_group("player_hitbox"): is_moving = true
velocity.y += 128 * delta velocity.y += 128 * delta
velocity = move_and_slide_with_snap(velocity, Vector2.DOWN, Vector2.UP, true) velocity = move_and_slide_with_snap(velocity, Vector2.DOWN, Vector2.UP, true)
#Anims #Anims
if velocity.x == 0: if velocity.x == 0:
if !anims.get_current_animation() == "give": anims.play("idle") if !anims.get_current_animation() == "give" && !anims.get_current_animation() == "respawn" && !anims.get_current_animation() == "blink": anims.play("idle")
else: else:
anims.play("walk") anims.play("walk")
#Stop at the end of path and give shard #Stop at the end of path and give shard
@ -39,7 +52,18 @@ func spawn_shard():
is_holding_shard = false is_holding_shard = false
func switch_action(): func switch_action():
is_moving = true #is_moving = true
pass
func spray_blood():
for i in 16:
var spray = BloodSpray.instance()
spray.pause_mode = PAUSE_MODE_PROCESS
Physics2DServer.set_active(true)
spray.global_position = global_position
spray.velocity = Vector2(randf() * 80.0, 0.0).rotated(randf() * TAU)
spray.stains_player = false
get_parent().add_child(spray)
func die(): func die():
#Create particles #Create particles
@ -47,5 +71,15 @@ func die():
get_parent().add_child(death_particles) get_parent().add_child(death_particles)
death_particles.global_position = global_position death_particles.global_position = global_position
death_particles.emitting = true death_particles.emitting = true
spray_blood()
Audio.play_sound(Audio.a_msx_die,Audio.ac_die) Audio.play_sound(Audio.a_msx_die,Audio.ac_die)
queue_free() is_moving = false
velocity.x = 0
position = start_position
anims.play("respawn")
has_respawned = true
func _on_BlinkTimer_timeout():
anims.play("blink")
blink_timer.start(rand_range(5.0,7.0))

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://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_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://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://scripts/snap_sprite.gd" type="Script" id=12]
[ext_resource path="res://objects/npc/msx.gd" type="Script" id=13] [ext_resource path="res://objects/npc/msx.gd" type="Script" id=13]
@ -47,6 +49,47 @@ tracks/2/keys = {
"values": [ 0 ] "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] [sub_resource type="Animation" id=15]
resource_name = "give" resource_name = "give"
length = 0.5 length = 0.5
@ -143,6 +186,47 @@ tracks/2/keys = {
"values": [ 0 ] "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] [sub_resource type="Animation" id=9]
resource_name = "walk" resource_name = "walk"
length = 0.4 length = 0.4
@ -206,8 +290,10 @@ script = ExtResource( 13 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."] [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle" autoplay = "idle"
anims/RESET = SubResource( 16 ) anims/RESET = SubResource( 16 )
anims/blink = SubResource( 18 )
anims/give = SubResource( 15 ) anims/give = SubResource( 15 )
anims/idle = SubResource( 4 ) anims/idle = SubResource( 4 )
anims/respawn = SubResource( 17 )
anims/walk = SubResource( 9 ) anims/walk = SubResource( 9 )
[node name="Sprite" type="Sprite" parent="."] [node name="Sprite" type="Sprite" parent="."]
@ -260,8 +346,19 @@ cast_to = Vector2( 32, 0 )
collision_mask = 3 collision_mask = 3
collide_with_areas = true 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="."] [node name="Position2D" type="Position2D" parent="."]
position = Vector2( 17, 2 ) position = Vector2( 17, 2 )
__meta__ = { __meta__ = {
"_gizmo_extents_": 0.0 "_gizmo_extents_": 0.0
} }
[node name="BlinkTimer" type="Timer" parent="."]
[connection signal="timeout" from="BlinkTimer" to="." method="_on_BlinkTimer_timeout"]