Test Disabling Outline
parent
100d2affca
commit
ac56eb0b47
|
@ -1,7 +1,8 @@
|
||||||
[gd_resource type="Shader" format=2]
|
[gd_resource type="Shader" format=2]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
code = "shader_type canvas_item;
|
code = "
|
||||||
|
shader_type canvas_item;
|
||||||
|
|
||||||
uniform vec4 color : hint_color = vec4(1.0);
|
uniform vec4 color : hint_color = vec4(1.0);
|
||||||
uniform float width : hint_range(0, 10) = 1.0;
|
uniform float width : hint_range(0, 10) = 1.0;
|
||||||
|
|
|
@ -2,7 +2,8 @@ extends KinematicBody2D
|
||||||
|
|
||||||
onready var fireball_preload = preload("res://src/models/fireball/Fireball.tscn")
|
onready var fireball_preload = preload("res://src/models/fireball/Fireball.tscn")
|
||||||
onready var bullet_preload = preload("res://src/models/bullet/Bullet.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 speed_multiplier: float = 1.0
|
||||||
var invincibility_timer = .0
|
var invincibility_timer = .0
|
||||||
var velocity = Vector2.ZERO
|
var velocity = Vector2.ZERO
|
||||||
|
|
|
@ -19,7 +19,7 @@ func add_health(amount):
|
||||||
get_tree().get_root().get_node("Game/UIWrapper/UI/Left/Health/HealthSprite").frame = health
|
get_tree().get_root().get_node("Game/UIWrapper/UI/Left/Health/HealthSprite").frame = health
|
||||||
if health == 0:
|
if health == 0:
|
||||||
playing = false
|
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")
|
animplayer.play("gameover")
|
||||||
yield(animplayer, "animation_finished")
|
yield(animplayer, "animation_finished")
|
||||||
return_to_menu()
|
return_to_menu()
|
||||||
|
|
Loading…
Reference in New Issue