Levelpack: Secret level support #89
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SketchyMaze/doodle#89
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
doodad levelpack create
This would happen in the
doodad levelpack create
command: Add CLI flags to mark certain .level filenames as hidden, like:In the LevelPack JSON format, hidden levels are marked by a Hidden boolean on the pkg/levelpack/Level struct.
Story Mode window
In the "Story Mode" window (levelpack_open.go):
Shell command to play secret levels
There should be a cheat code (maybe the "unlock all levels" cheat?) or a developer shell command to play secret levels.
Command would be like:
The existing
open filename.level
which can process level and doodad filenames could also match .levelpack files; and the second argument is the level name to play. So if you know the name (can just open the levelpack as a zip file ;)), you can load any level in it."Secret Exit" flags
See #66
A doodad property on the Exit Flag could mark it as a secret exit (or just have a distinct doodad).
Ideas how it could work:
Example: you have a 20 level campaign and you have 3 bonus levels that are mixed in and ordered among the others. Say level 5 has a secret exit and the bonus level is inserted between levels 5 and 6 in your ordering of levels passed in to
doodad levelpack create
.Getting the secret exit on level 5 would load the next hidden level (between 5 and 6).
If the next level is not a secret exit (e.g., you put all the secret levels at the end of your levelpack) - it will load the first secret levelpack that you have not completed yet.