currently i have it set up so that each chunk (a 32x32 set of tiles) will get a 'tick' every half-second, and after nine minutes that'll have touched every tile in a chunk, which is what i'm calling a 'supertick'. chunks will synchronize to the current tick as you enter and leave them, but if more than a full supertick passes between the time you leave and reenter that extra update is lost
i'm gonna have to change that eventually b/c that's not a good solution for a farming/terraforming game
i have implemented 'time' which means now i have to handle the What Happens With Time Outside of Loaded Chunks problem
less feasible to say "oh it just doesn't pass" in a game about large-scale terraforming
i made a linear feedback shift register to scatter tile updates across each chunk
inspired by https://www.youtube.com/watch?v=bHRhPj0CRXI
anyway i posted another reportback for asteroid garden over on dreamwidth https://xax.dreamwidth.org/114664.html
& i also updated the online version, which is here: http://tzaphiriron.sidemoon.net/code/2week/0x-tavern_space/webgl2.html
still not "a game" but it's got more interface now V:
like i've gotten way less into Video Games over time, mostly because at some point i started to recognize how absurdly narrow its genre conventions are. boy howdy if you want a shooty game there are a billion of them but if you want a game where the landscape isn't a static mesh you're still more-or-less limited to like, minecraft
baffled that devs looked at the popularity of minecraft and the thing they took from it was "oh, people like crafting systems" as if that was the salient difference
every so often i go looking for a new game to play and end up finding more-or-less nothing
at this point it's like, i would like a game that involves 1. a place changing over time that's 2. not a pure simulation game where 3. you have a dedicated pc avatar rather than a floating camera
every time i try looking up more specific instances of that ("rpg w/ town-building" or w/e) i end up seeing the same list of like 6 games, all of which i've already played
after all of that i got it so you can click a tile w/ the hoe and have it immediately update
this is also robust enough to handle placing arbitrarily many things on any tile
there are still some issues remaining (it doesn't work right on chunk boundaries & it doesn't update neighbors) but on the whole it all works. hooray 🎊
for a while this bug looked like "clicking on a tile just erases it" until i happened to click on enough to see some tiles show through.
the issue was i wasn't resetting the camera position when i did the render, so the updated tiles ended up offset by the pc's position instead of where they should be in the chunk
the problem was: `.bufferSubData` takes its index offset in _bytes_ and i was assuming it was in _indices_, since `.drawArrays` has its index offset in indices, so all my data was getting misaligned as i wrote them
_this_ issue was b/c i was trying to render with a stride value in bytes instead of in array indices.
graphics programming is very heavy on converting between near-identical units with disastrous consequences if you do it wrong
i can only assume i'm doing some interleaving wrong, but looking at my code it all looks like it _should_ be fine
but, of course, it's not, so that just means i have an imperfect grasp on what my code is actually doing
huge burn on cops etc
(from https://eprints.lse.ac.uk/53222/1/Graeber_Dead_zones_imagination_2012.pdf)
At the same time, if one accepts
Piaget’s (1936) famous definition of mature intelligence as the ability to coordinate
between multiple perspectives (or possible perspectives) one can see, here,
precisely how bureaucratic power, at the moment it turns to violence, becomes
literally a form of infantile stupidity.
If what I’ve been saying is true, then
this is just what we’d expect. The police truncheon is precisely the point where the
state’s bureaucratic imperative for imposing simple administrative schema, and its monopoly of coercive force, come together. It only makes sense then that
bureaucratic violence should consist first and foremost of attacks on those who
insist on alternative schemas or interpretations.
hi im xax. i code and write monster porn, not necessarily in that order. also at http://xax.dreamwidth.org + http://xax.itch.io + http://archiveofourown.org/users/xax