what am i even doing anymore bro
ok this session got out of hand
not sure if it’ll show but it was 10hrs of stuff then 4 HOURS OF BUGFIXING AND TRIAL AND ERROR GAHHHH
ok heres what i did
streaks and auto advance
- added streak tracking to quiz mode. current streak, best streak, accuracy %, all saved to
localStorage.
if you get one wrong, the streak’s gone, no mercy at ALL. also made it so a correct guess auto-advances to a new round after 2 seconds instead of just sitting there waiting for you to click new round like some kind of caveman.
THE BIG ONE
so quiz mode and learn mode were both using this rough relative distance method to figure out neighbours, which is fine until you realise it’s not actually how constellations work. constellations aren’t just the shape with lines and dots lol, they’re officially bounded regions of sky (yes, actually, the IAU drew borders around all 88 of them in 1930).
so I went and found the real boundary data and pulled it from d3-celestial, same open source star chart project I got the line/star data from originally. every constellation now has its actual official border drawn around them so when you’re learning you know what parts are actually part of it (trust me, this helps when you’re learning)
but other than that, wth did this even do?
- hemisphere classification is now based on where the constellation’s real territory sits, not just an average of its star pattern (this fixed monoceros and serpens specifically, both of which sit right on the celestial equator and were getting sorted into the wrong hemisphere before)
- learn mode now draws the ACTUAL official boundary outline around whatever you’re looking at, dashed amber line, very satisfying
- neighbouring constellations now fade based on real distance instead of just being flat dim, so busy parts of the sky (looking at you, octans) don’t turn into an illegible wall of navy lines
BTW I genuinely thought the octans clutter thing from ages ago was a bug, but the south pole is just actually that crowded with tiny constellations. I think you can tell I prefer the north.
also had a scary moment where NOTHING was rendering and learn mode wouldn’t even switch, I thought I’d broken something major, but turned out to just be a memory issue from having so much boundary data loaded so I restarted vscode and it sorted itself out 💀
what’s next
-
changing some of the names and shapes, I need to find out which ones are actually used widely cause some in the dataset I use are super weird (peep the video!)
-
the duplicate constellation entry (serpens has two parts sharing one id, still not dealt with)
-
I really really really want to add a speedrun mode!!
