changed renderer
This commit is contained in:
parent
902440e5bb
commit
cd0e7fcc54
8 changed files with 84 additions and 35 deletions
|
|
@ -6,9 +6,12 @@ var credits_shown : bool = false
|
|||
@export var credits_node : Control
|
||||
@export var credits_button : Button
|
||||
@export var levels_vbox : VBoxContainer
|
||||
@export var exit_button : Button
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
if OS.get_name() == "Web":
|
||||
exit_button.hide()
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
for level_num in GameManager.levels.size():
|
||||
var new_button : Button = Button.new()
|
||||
|
|
@ -43,3 +46,7 @@ func _on_credits_button_pressed():
|
|||
|
||||
func _on_credits_page_meta_clicked(meta):
|
||||
OS.shell_open(str(meta))
|
||||
|
||||
|
||||
func _on_exit_button_pressed():
|
||||
get_tree().quit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue