fixed bug where the game over text would glitch out for a few frames

This commit is contained in:
pennyrigate 2024-07-11 19:32:26 -04:00
parent 102c170983
commit 5800db8432
2 changed files with 3 additions and 3 deletions

View file

@ -176,6 +176,4 @@ func _on_animation_finished(anim_name: String) -> void:
"Beam": "Beam":
state = State.STAND state = State.STAND
"die": "die":
var map = Game.get_map() Game.change_map(load("res://menus/game_over.tscn"))
var gover = load("res://menus/game_over.tscn").instance()
map.add_child(gover)

View file

@ -1818,6 +1818,7 @@ _data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.803571, 1 ), 0.0, 0.0, 0,
shader = ExtResource( 1 ) shader = ExtResource( 1 )
shader_param/animate_noise = true shader_param/animate_noise = true
shader_param/noise_intensity = 1.0 shader_param/noise_intensity = 1.0
shader_param/fps = 60.0
[sub_resource type="ShaderMaterial" id=8] [sub_resource type="ShaderMaterial" id=8]
shader = ExtResource( 11 ) shader = ExtResource( 11 )
@ -1872,6 +1873,7 @@ tracks/2/keys = {
[sub_resource type="Animation" id=18] [sub_resource type="Animation" id=18]
resource_name = "explode" resource_name = "explode"
length = 0.7
step = 0.05 step = 0.05
tracks/0/type = "value" tracks/0/type = "value"
tracks/0/path = NodePath("ExplosionRect:material:shader_param/opacity") tracks/0/path = NodePath("ExplosionRect:material:shader_param/opacity")