Open Parkreiner opened 1 year ago
Updating this with my findings so far, as well as some last-minute discoveries, now that the game is out.
useEffect
cleanup functions are forThe game's out now, meaning that people are already trying to mod things, and have ripped the character portraits. That also means that I've made some "fun" discoveries:
CharacterPreview
component, I feel like I might need to add some extra state management to the thing, just to make sure that I can relate all the things going on to the UI state properly. Bare minimum, I want to disable the download button while a download operation is happeningSo much to research, so many unanswered questions still. Realistically, I think this tool is going to need a couple more months in the oven, because all this research is basically blocking all the other code and features.
I'm thinking that I'm going to try doing some of the tasks that aren't dependent on this at the same time, just so I'm not doing nothing but reading and playing with the canvas API.
This is probably the biggest blocker to getting the backend started at all.
Each character needs a group of SVG paths that can be rendered to an HTML canvas, but from what I understand, the syntax for rendering can be a little bit weird.
Until I research the API and get a feel for the best way to represent the data, any attempts at modeling that data on the backend are just going to be speculative, and might not line up at all what the project ends up needing.
Known resources: