Test Disabling Outline

main
Luna Brovchuk 2023-10-02 18:07:50 +02:00
parent 100d2affca
commit ac56eb0b47
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,8 @@
[gd_resource type="Shader" format=2]
[resource]
code = "shader_type canvas_item;
code = "
shader_type canvas_item;
uniform vec4 color : hint_color = vec4(1.0);
uniform float width : hint_range(0, 10) = 1.0;

View File

@ -2,7 +2,8 @@ extends KinematicBody2D
onready var fireball_preload = preload("res://src/models/fireball/Fireball.tscn")
onready var bullet_preload = preload("res://src/models/bullet/Bullet.tscn")
var outline_material = load("res://res/shaders/outline_material.tres")
#var outline_material = load("res://res/shaders/outline_material.tres")
var outline_material = load("res://res/shaders/empty_material.tres")
var speed_multiplier: float = 1.0
var invincibility_timer = .0
var velocity = Vector2.ZERO

View File

@ -19,7 +19,7 @@ func add_health(amount):
get_tree().get_root().get_node("Game/UIWrapper/UI/Left/Health/HealthSprite").frame = health
if health == 0:
playing = false
var animplayer = get_tree().get_root().get_node("Game/UIWrapper/Gameover/AnimationPlayer")
var animplayer = get_tree().get_root().get_node("Game/UIWrapper/UI/Gameover/AnimationPlayer")
animplayer.play("gameover")
yield(animplayer, "animation_finished")
return_to_menu()