lighting en fonts update
This commit is contained in:
+6
-8
@@ -12,22 +12,20 @@ func _ready():
|
||||
anim.play("default")
|
||||
$Draakje/Hoest.playing = true
|
||||
var size = get_viewport_rect().size
|
||||
anim.position = Vector2(size.x/2, size.y/2)
|
||||
var bg = get_theme_stylebox("panel")
|
||||
bg.bg_color = Color("3a223a")
|
||||
anim.position = Vector2(size.x/2, size.y/2 - 100)
|
||||
|
||||
func _process(delta):
|
||||
if fadeout:
|
||||
opacity_dragon -= delta * 2.0
|
||||
opacity_dragon = max(0.0, opacity_dragon - delta * 2.0)
|
||||
anim.material.set_shader_parameter("opacity", opacity_dragon)
|
||||
$Draakje/Label.material.set_shader_parameter("opacity", opacity_dragon)
|
||||
if opacity_dragon <= 0.25:
|
||||
if opacity_dragon <= 0.99:
|
||||
if !start:
|
||||
get_tree().root.add_child(room)
|
||||
get_tree().get_root().add_child(room)
|
||||
var bg = get_theme_stylebox("panel")
|
||||
opacity_panel -= delta * 0.5
|
||||
opacity_panel -= delta * (1.1 - opacity_panel)
|
||||
bg.bg_color.a = opacity_panel
|
||||
if opacity_panel <= 0:
|
||||
print("free willy")
|
||||
queue_free()
|
||||
|
||||
#Recenter draakje
|
||||
|
||||
Reference in New Issue
Block a user