Skip to content

Add the "Level selector" example - #1135

Merged
4ian merged 1 commit into
mainfrom
claude/dreamy-mendel-iw5mn6-level-selector
Nov 27, 2026
Merged

4ian merged 1 commit into
mainfrom
claude/dreamy-mendel-iw5mn6-level-selector

Conversation

@4ian

@4ian 4ian commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

A small example to get familiar with the new LevelSelector extension of GDevelopApp/GDevelop-extensions#2379. The extension is included in the project.

Level grid World map
grid The same progress on a path of levels (Woodland "Level Map")
  • Level grid (first scene): 30 levels on 2 pages (Jelly Pop "Level Grid"). A "Reset" button erases the saved progress.
  • World map: the same progress on a winding path of 24 levels (Woodland "Level Map").
  • Level: the scene opened by a chosen level. "Win with 1/2/3 stars" keeps the best stars of the level, unlocks the next level, saves the progress in the storage and goes back to the selector it came from.

The progress is a global variable: Progress.Unlocked and an array Progress.Stars. Each selector shows it with 3 actions at the beginning of its scene: "Unlocked levels", "Stars of every level from an array" and "Go to the page of a level". "Any level is chosen" and the ChosenLevel() expression open the level.

The level selectors are those of GDevelopApp/GDevelop-assets#770.

Gameplay tests

  • Choosing a level opens it: only level 1 is unlocked; touching locked level 2 does nothing, and touching level 1 opens it with its number.
  • Winning unlocks the next level and keeps the stars: after winning level 1 with 3 stars, the grid shows its 3 stars and level 2 unlocked.
  • The world map shows the same progress.

All 3 pass with the GDevelop CLI.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

Preview the game(s) changed or added in this Pull Request


This is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt.

@4ian
4ian merged commit 2cf5a0f into main Nov 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants