Day 3
Started earlier! Yay.
Since I'd already laid out todos I started in on one I hadn't written yet, but was related to the start of drawing things, the hex drawing. And since I'd already calculated the values, it was pretty simple to get the first one done.
I'm not doing 'complex' hex drawing, I could, but "I am not that good at math, US education" and "this is a prototype" and "complex math calc of rotations and so on on msx and c64 are probably going to require tables for fast stuff and I think simple is best"
That is what I am saying today
in future I will probably decide that this should be redone
that is in future. Not today.
stopped myself from obsessing on that and moved on…
Stumbling block 1
In my earlier (unfinished) simple löve project, I got completion and treesitter working with löve and lua code, and even got the quickrun to operate on löve.
But this new project, which I created with my "newlove.sh" script, was NOT completing any löve functions - unless referenced in the source I had open. So… totally not autocompleting properly.
Went back, compared, made some changes and got it working, but wanted to yak shave and fix the script… after about 10-15 minutes of that I managed to stop myself and just put a note at the bottom of the script "this isn't working fix it later."
Which is an accomplishment, I normally will be stuck on those type of things til they are fixed, and I have 4 other things to fix…
Stumbling block 2
Started the proper löve code, got the debug parts in and the 'quit on escape' for debugging in… and drew the hexagon.
So then I decided to try to go fullscreen and…
At First it didn't go fullscreen, so I was looking up how I wasn't doing it properly, and… no, I was doing it properly. At least per löve dox, and various references on the net…
So I recalled there was a library to help with this which seemed nice (and had some things for dealing with layers, etc.) (Yes I know I'll deal with those layers on the platforms also. sprites and overlays or something.) Tried that (shove is the library name) and it did NOT work either… so went and tested the shove demos… and while they didn't go fullscreen properly (always my desktop size) they DID scale. Which I can deal with (dev/prototype.)
So fixed that up and it worked.
why?
My guess is my löve implementation (which may be sdl2 based, not sdl3, unsure, not looking today) does not know how to tell a Wayland screen how to change resolutions. It can determine what resolutions are possible, it just doens't send the proper command to change, which also means they don't have to send the command to restore.
This method is probably better anyway, given that resizing the screen to a smaller size likely will also cause all the other windows to resize, and… yeah I don't REALLY want that.
Side note
Fsckings to AI for causing so many places to put up annoying cloudflare "prove you are human" pages.
Which don't work very well… not compared to "go away" and similar open source ones.
Personally I don't care for MITM as a service (cloudflare) anyway, but … löve docs are behind it.
Luckily I have them in various offline forms. We're going to need more offline documentation anyway in the coming years, thanks to AI crap and how the AI barons think anything they can fetch with libcurl is usable for their training (i.e. mine now, no I didn't steal it, I'm allowed, you're not.) Also fsckings to the systems that are allowing this and not going after them the way they would if it were a normal human being, or worse, a poor human being.
grid
laid out the hex grid, and it worked. (changed drawing to allow different colors for checking.)