doodle/pkg
Noah Petherbridge 672ee9641a Savegame and High Scores
* Adds pkg/savegame to store user progress thru Level Packs.
* The savegame.json is mildly tamper resistant by including a checksum
  along with the JSON body.
* The checksum combines the JSON string + an app secret (in savegame.go)
  + user specific entropy (stored in their settings.json). If the user
  modifies their save file and the checksum becomes invalid the game
  will not load the save file, acting like it didn't exist, resetting
  all their high scores.

Updates to the Story Mode window:

* On the LevelPacks list: shows e.g. "[completed 0 of 3 levels]" showing
  a user's progress thru the level pack.
* Below the levels on the Detail screen:
  * Shows an indicator whether the level is completed or not.
  * Shows high scores (fastest times beating the level)
  * Shows a padlock icon if levels are locked and the player hasn't
    reached them yet. Pops up an Alert modal if a locked level is
    clicked on.

Scoring is based around your fastest time elapsed to finish the level.

* Perfect Time (gold coin): player has not died during the level.
* Best Time (silver coin): player has continued from a checkpoint.

In-game an elapsed timer is shown in the top left corner along with the
gold or silver coin indicating if your run has been Perfect.

If the user enters any Cheat Codes during gameplay they are not eligible
to win a high score, but the level will still be marked as completed.
The icon next to the in-game timer disappears when a cheat code has been
entered.
2022-01-02 16:28:43 -08:00
..
balance Savegame and High Scores 2022-01-02 16:28:43 -08:00
branding Prepare v0.10.0 for release 2021-12-30 17:57:13 -08:00
campaign Go 1.16 embed instead of go-bindata 2021-07-13 18:04:25 -07:00
collision Polish and bugfixes 2021-10-09 20:45:38 -07:00
doodads Bugfix: Undo/Redo works for the Doodad Editor 2021-10-11 16:10:04 -07:00
drawtool Brush Pattern Textures 2021-06-09 22:36:32 -07:00
enum Window Icon, UI Polish 2021-12-30 16:31:45 -08:00
filesystem Finalize basic functionality for Level Packs 2021-12-26 20:48:29 -08:00
keybind Various minor tweaks and changes 2021-10-07 20:50:24 -07:00
level Polish and bugfixes 2021-10-09 20:45:38 -07:00
levelpack Savegame and High Scores 2022-01-02 16:28:43 -08:00
license Diverge Free vs. Paid Features 2021-06-16 22:35:01 -07:00
log Switch github.com/kirsle/golog to git.kirsle.net/go/log 2019-12-22 18:34:31 -08:00
modal Savegame and High Scores 2022-01-02 16:28:43 -08:00
native WIP Publish Dialog + UI Improvements 2021-06-10 22:36:22 -07:00
pattern Loading Screen 2021-07-18 21:19:52 -07:00
physics Overhaul the Platformer Physics System 2020-04-04 21:00:32 -07:00
savegame Savegame and High Scores 2022-01-02 16:28:43 -08:00
scripting Polish and bugfixes 2021-10-09 20:45:38 -07:00
shmem Crosshair Option + Doodad Editor crash fix 2021-10-11 15:57:33 -07:00
sound WIP Game Settings Window, WASM Fixes, Sound FX 2020-09-01 20:54:58 -07:00
sprites Savegame and High Scores 2022-01-02 16:28:43 -08:00
uix Add the ui.ColorPicker 2022-01-01 18:48:34 -08:00
updater Updater: Better SemVer version checks for updates 2021-07-11 14:09:18 -07:00
usercfg Savegame and High Scores 2022-01-02 16:28:43 -08:00
userdir Savegame and High Scores 2022-01-02 16:28:43 -08:00
wallpaper Giant Screenshot Feature 2021-10-03 17:21:17 -07:00
wasm WASM: Store User Files in localStorage 2019-06-27 15:59:18 -07:00
windows Savegame and High Scores 2022-01-02 16:28:43 -08:00
cheats.go Savegame and High Scores 2022-01-02 16:28:43 -08:00
commands.go Async Giant Screenshot, Player Physics and UI Polish 2021-10-07 18:27:38 -07:00
config.go Go 1.16 embed instead of go-bindata 2021-07-13 18:04:25 -07:00
doodle.go Finalize basic functionality for Level Packs 2021-12-26 20:48:29 -08:00
editor_scene_debug.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
editor_scene.go Async Giant Screenshot, Player Physics and UI Polish 2021-10-07 18:27:38 -07:00
editor_ui_doodad.go Zoom Improvements 2021-09-12 15:27:37 -07:00
editor_ui_menubar.go Window Icon, UI Polish 2021-12-30 16:31:45 -08:00
editor_ui_palette.go Condensed Palette, Bird AI Update 2021-10-12 20:49:48 -07:00
editor_ui_popups.go Async Giant Screenshot, Player Physics and UI Polish 2021-10-07 18:27:38 -07:00
editor_ui_toolbar.go Settings Window + Bugfix 2021-06-19 22:14:41 -07:00
editor_ui.go Crosshair Option + Doodad Editor crash fix 2021-10-11 15:57:33 -07:00
fps.go Collision Box Updates 2021-06-02 20:50:28 -07:00
guitest_scene.go The Window Manager Update 2020-04-06 23:21:17 -07:00
main_scene.go Prepare v0.10.0 for release 2021-12-30 17:57:13 -08:00
menu_scene.go Window Icon, UI Polish 2021-12-30 16:31:45 -08:00
play_inventory.go Async Giant Screenshot, Player Physics and UI Polish 2021-10-07 18:27:38 -07:00
play_scene_touch.go Condensed Palette, Bird AI Update 2021-10-12 20:49:48 -07:00
play_scene.go Savegame and High Scores 2022-01-02 16:28:43 -08:00
scene.go Doodads: Crumbly Floor, Start Flag & State Blocks 2019-12-30 18:13:28 -08:00
shell.go Async Giant Screenshot, Player Physics and UI Polish 2021-10-07 18:27:38 -07:00
story_scene.go Finalize basic functionality for Level Packs 2021-12-26 20:48:29 -08:00