Show newer

garden game save/memory shenanigans 

@InspectorCaracal actually you can save more space if you:

make blank space only one byte by keeping it under 128

use two blank space bytes if it's >127 (for a blank space > 127, store 127, x - 127 etc)

that way, you know it's a count for blank spaces if the leftmost bit is 0, otherwise it's a flower byte

garden game save/memory shenanigans 

@InspectorCaracal nonono.

you start at 0,0 right

say i store a string like

0x00 15
(code for red flower)
0x00 2
(code for blue flower)

and assume your field is 16 wide

this means:

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ R
_ _ B _ _ _ _ _ _ (etc...)

garden game save/memory shenanigans 

@InspectorCaracal hmm

this won't guarantee you can plant the entire field but here's an idea:

start from 0,0 (or whatever top left is on your field)
0x00 0x## means next ## spaces are blank (no flower)
anything other than 0x00 means flower data

this would be a very rudimentary RLE in that you're compressing whitespace

but once you get enough flowers filling it up it'll overflow your save space regardless

garden game save/memory shenanigans 

@InspectorCaracal also: this kind of problem is why thps part editors had a gauge that would fill up ;)

garden game save/memory shenanigans 

@InspectorCaracal if you don't save xy and plan it in a map instead you can fit each flower in 11 bits

@Nine wait, i was actually thinking about something else

but

i still get it

Show thread

salty proposal @ unicode consortium 

this is brutal and why is this person not on mastodon unicode.org/L2/L2017/17439-gen

@LaserScheme just told me to call april fools "gaypril fools"

roast them

@noelle i'll hang out in minecraft for a bit once im done with duolingo, but i should spend some time today finishing some slides for class too <3

@noelle that's ok <3 it's just people are always hanging out without me and ...

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!