Skip to content

scene level_select_screen

Rob Nugen edited this page Mar 25, 2022 · 6 revisions

level_select_screen 2022 Feb 04 level_select_too_small_back_button 2022 Mar 25

Each level select button is implemented with

res://LevelSelect/LevelSelectButton.gd

Two images are used for each number. The version below, used until 3 February 2022 used the same 12 numbers for all different worlds. They looked bad so D redid the numbers, 12 per animal.

func set_level(level):
    # we do not need to remember the level because
    # LevelSelectScene links the button press to the respective level select
    var path_to_num = String("res://images/levelselect/numbers/" + String(level).pad_zeros(2) + ".png")
    $level_number.set_texture(load(path_to_num))

In the bottom right, the back button should be larger.. same as used on the game won screen.