Show newer

there's a new homestar runner toon on april fools this is not an april fools

@LaserScheme a single tall bird in a trenchcoat pretenting to be two smaller birds in a trenchcoat

reminder that i run a discord server here discord.gg/cwn6byK and we have a minecraft server too and you should join if you wanna hang out with me and my friends more :3

garden game save/memory shenanigans 

@InspectorCaracal with this way, you can store up to 128 flowers (best case scenario, they're sequential and starting at top left) or at least ~85 flowers (blank space byte between each flower bytes)

not sure how to improve this any more :( sorry

garden game save/memory shenanigans 

@InspectorCaracal i wouldn't know of an easy way to do it... the bytes sort of help you know when to expect the next block of data, be it whitespace or flower data

garden game save/memory shenanigans 

@InspectorCaracal
if <byte> < 128, jump <byte> space in field, starting top left, going left to right
if <byte> >= 128, decode flower data <byte>, <byte+1>

does that make sense?

garden game save/memory shenanigans 

@InspectorCaracal
if we see that in the save data, that means, starting from the top left, we skip 16 field spaces, then treat next byte, etc

garden game save/memory shenanigans 

@InspectorCaracal

let's go over your flower data again:
16 possible Flowers, that's 4 bits
8 Maturity stages, that's 3 bits
6 Leaf types, that's 3 bits
and Rarity, which is one bit
so:
0b1FFFFMMM 0bLLLR0000
first bit is 1 to indicate there's flower data, followed by 11 bits of data

if the first bit is 0, which would coincidentally be a number lower than 128, we treat it as blank space, no flower is planted

so:

0b0010000 = 16 blank spaces

Show older
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!