Vibe Coding Encyclopedia

Mode 7 perspective floor

The flat map is increased to "distance = height × focus ÷ line number" for each line at the bottom of the screen, making the depth of perspective 2D, just like the old racing game.

Category
Pseudo-3D in 2D

Technical terms · Mode 7 (perspective floor) · Scanline floor casting · ImageData · Uint32Array pixel buffer · Distance fog

Related techniques

Technique document (Korean)