r/retrogamedev • u/Rdust- • 14h ago
Working on a 3d engine for the original Gameboy (not color)
This is the process so far!
No framebuffer, so tiles become one, the Game Boy can only show 8x8 tiles, so the 3D view is drawn into tile memory, then copied to the screen.
-Half the lines, same screen. It only draws 56 lines and shows each one twice, by changing the scroll position every two lines.
No multiply. The CPU has no multiply instruction, so the 3D maths uses lookup tables instead. (What wqs a bitch to get working
Drawing heights. Each column is drawn front to back, and a window shrinks as floors, steps and walls fill it, so nothing is drawn twice.
It gets around 12fps average, goal is 15 :)
Lmk what u think!