making levels
This commit is contained in:
parent
cc0014f3e8
commit
716dae1d33
17 changed files with 451 additions and 61 deletions
|
|
@ -12,7 +12,7 @@ func _ready():
|
|||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
for level_num in GameManager.levels.size():
|
||||
var new_button : Button = Button.new()
|
||||
new_button.text = "Level " + str(level_num) + " : " + GameManager.levels[level_num].level_name
|
||||
new_button.text = "Level " + str(level_num+1) + " : " + GameManager.levels[level_num].level_name
|
||||
new_button.pressed.connect(func(): pick_level(GameManager.levels[level_num].level_name))
|
||||
levels_vbox.add_child(new_button)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue