changed renderer
This commit is contained in:
parent
902440e5bb
commit
cd0e7fcc54
8 changed files with 84 additions and 35 deletions
|
|
@ -174,6 +174,8 @@ func open_termimal():
|
|||
func _on_player_object_clicked(object):
|
||||
if(object.name == "StartButton"):
|
||||
start_room()
|
||||
if(object.name == "MenuButton"):
|
||||
get_tree().change_scene_to_file(GameManager.menu_scene_path)
|
||||
|
||||
func _player_area_entered(area : Area3D):
|
||||
#print(area.name)
|
||||
|
|
|
|||
|
|
@ -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