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":
state = State.STAND
"die":
var map = Game.get_map()
var gover = load("res://menus/game_over.tscn").instance()
map.add_child(gover)
Game.change_map(load("res://menus/game_over.tscn"))

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_param/animate_noise = true
shader_param/noise_intensity = 1.0
shader_param/fps = 60.0
[sub_resource type="ShaderMaterial" id=8]
shader = ExtResource( 11 )
@ -1872,6 +1873,7 @@ tracks/2/keys = {
[sub_resource type="Animation" id=18]
resource_name = "explode"
length = 0.7
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("ExplosionRect:material:shader_param/opacity")