Files
tps-demo/main/main.gd
Hugo Locurcio ab16a938f9 Add a bloom quality setting
The default level is High, which is equivalent to the previous glow
setting used (bicubic upscaling enabled).

Low keeps glow enabled but disables bicubic upscaling.
Disabled disables glow entirely.

The setting is called "bloom" as it's a more common term in gaming,
even though the Environment parameter is called "glow".
2020-09-15 21:41:53 +02:00

27 lines
549 B
GDScript

extends Node
func _ready():
OS.window_fullscreen = Settings.fullscreen
go_to_main_menu()
func go_to_main_menu():
var menu = ResourceLoader.load("res://menu/menu.tscn")
change_scene(menu)
func replace_main_scene(resource):
call_deferred("change_scene", resource)
func change_scene(resource : Resource):
var node = resource.instance()
for child in get_children():
remove_child(child)
child.queue_free()
add_child(node)
node.connect("quit", self, "go_to_main_menu")
node.connect("replace_main_scene", self, "replace_main_scene")