oh ho ho ho! i figured out how to cram water into the existing block infrastruct...

@eniko@mastodon.gamedev.place

oh ho ho ho! i figured out how to cram water into the existing block infrastructure in my block game's engine

if there are 8 possible levels of water height, and corners can be offset by at most 1 from the block's water height then that takes 3 bits for the overall height and 4 bits for the corner offsets for a total of 7 bits. which i can encode in the outline byte

then i can use 4 of the 5 available bevel byte's bits to hold the flow direction (0-8 inclusive)

delightfully devilish, eniko!