looking up and loaf mode. 🐱🍞

#gameboy #gamedev #pixelart #retrogaming #projectwhiskers

whiskers picked up a power star. 🐱🌟

#gameboy #gamedev #pixelart #retrogaming #projectwhiskers

got basic room switching working. the plan is to store only a bump map for each room and decorate on load that so the world can be quite big.

#gameboy #gamedev #pixelart #retrogaming #projectwhiskers

the plan is to stay within 32kb for the rom so it can be flashed on a basic cartridge, but not sure if that will work out. 💾

#gameboy #gamedev #pixelart #retrogaming #projectwhiskers

ok, the gameboy screen only holds 10x9 tiles of 16x16. so a coordinate is never > 16 (4 bits).

so I can store a level object's x+y position in one byte (8 bits) and extract them using bitshift and save 50% storage.

feeling like a hacker now. 😎

@hbons Nice! Those functions are short enough that you could also use the "inline" keyword to remove the function call and return overhead (if performance becomes an issue).
@bbbbbr thanks for the tip!