Ashet OS

Dungeon

Dungeon is a basic raycasting demo showcasing how to implement games with software-based rendering.

§1 Controls

Dungeon can be controlled via both the mouse and the keyboard.

Input

Action

Keyboard

Left

Turn left

Right

Turn right

Up

Move forward

Down

Move backward

Page Up

Rotate left

Page Down

Rotate right

Escape

Exit the game

Mouse

Left Button + Motion

Rotate camera

Right Button + Motion

Move forward/backward

The original source code of Dungeon was derived from the demo Burn It Down by xq which was published at Nordlicht 2019 demo party.

Implementing demo effects on that "platform" was incredibly resource constraint by only having 2 chunks of RAM with 32 kB each. This implied that all effects had to be computed on the fly, and the original source code filled the screen in a column-major manner, filling the columns left-to-right, each column is rendered bottom-to-top.