tracielin / Gamify_PedECG

An interactive, virtual game experience for learning specific pediatric ECG interpretation skills
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

How to save progress in an HTML game #6

Closed tracielin closed 2 months ago

tracielin commented 2 months ago

https://stackoverflow.com/questions/34847231/how-to-save-progress-in-an-html-game

Summary: Cookies or localStorage

tracielin commented 2 months ago

Instead, currently leaning towards:

Use my existing javascript scoring system (progress towards “completion” of level is dependent on confidence/correctness. Put this in a fixed header.

But have something like the below as the body of the game level as a way to have all the info for a given level on the same webpage. Task 1y (wrong on task 1 and high confidence) Task 1z (wrong on task 1 but low confidence) Task 1 (starting point) — Maybe option to scroll up for “guide” to help answer the question. “Look at your notebook for a refresher" Task 2y (where go if gets task 2 slide wrong with high confidence) Task 2z (where go if gets task 2 slide wrong with low confidence) Task 2 (where go if correct on task 1) [optional if position on page doesn't affect progress w/ level]Task 2a (where go if correct on task 1 with high confidence)

Task 3y (where go if gets task 3 slide wrong with high confidence) Task 3z (where go if gets task 3 slide wrong with low confidence) Task 3 (where go if correct on task 2) [optional] Task 3a (where go if correct on task 2 with high confidence)

Note: Would make a couple pages with the tasks in different orders... and the preceding level (L-1) would randomly go to one of the level (L) pages, so that the user(s) are given the ECGs in a different order each time they visit the page.