Some progress on Inle, a little arcade game @rek and I are working on.

Follow

@neauoire free trick for getting extra memory for the terrain... store the height for each column as a 4-bit difference from the column to the left. you can't do perfectly sharp cliffs with it, but it lets you store a lot more terrain.

· · Web · 3 · 0 · 1

@neauoire might not work for what you have, though. but i've used delta encoding for stuff like this in the past :)

@cancel Oh! Like an offset from the previous tile! It's a good idea, it would make getting the tiles a bit slower tho, right now space is not really an issue, the entire game is 2.1kb ..

@cancel @neauoire i love delta encodings!

for extra credit you could use a variable length encoding where 3 bits is data and 1 bit says whether to continue or not (so 0-7 fits in 4 bits, 8-63 fits in 8 bits, 64-511 fits in 12 bits, and 512-4096 fits in 16 bits)

Sign in to participate in the conversation
Merveilles

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.