Tap, click, or press a key on the canvas to start browser audio.
# Raycasting A small raycasting example demonstrating grid-map collision, player rotation and movement, textured wall projection, and a minimap rendered into the CPU pixel buffer. Controls: - Arrow Left / Arrow Right: rotate the player. - Physical A / D: alternate rotation controls. - Arrow Up / Arrow Down: move forward and backward. - Physical W / S: alternate movement controls. - Gamepad left stick or d-pad: rotate and move. The example casts one ray per screen column against a tile map, projects the nearest wall hit into vertical strips, and samples simple wall textures. The minimap shows the map, player position, facing direction, and a subset of the cast rays.