100 Days of Code Day 20
I am one fifth complete. Anyway today’s exercise was Appointment Time which was about Date/Time handling in Javascript. It had a big warning to use a better library but not Moment.js since it is unsupported and deprecated
I seem to use Markdown viewers a lot in my 100 Days of Code projects and this one is no different. I am going to use a vue 3 markdown component to show my help files. No need for a JSON parser since Javascript has that built in. It took a lot of tweaking to get things showing up how I like. I did have to rip out some inter-help links because the component wasn’t giving me a way to override the click a link behavior. I wanted that so I could load the markdown file in place. Instead I just took out the links.
I am just now noticing that the component I chose has a type-o on the npm page and doesn’t seem to have a home page. Maybe I should choose a different one.
So, what’s left:
- API needs a call to check if a score is a high score
- API needs a call to save the score removing any excess lowest score(s) if over maximum high score count from settings.
- On a high score the UI needs to prompt for a name and save the score.
- The High Scores function needs a UI that shows the scores by difficulty level.
- Default difficulty should really be loaded from local storage overriding the settings table if present. This should also be saved when you select a difficulty level. Update the highlight too.
- Need an offline mode that has default settings and that stores the high scores in local storage (if you post a rude name, only you see it). Offline version will be what I post to itch.io
