• Stars
    star
    227
  • Rank 175,900 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created about 5 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A raycasting library for your terminal!

Terminal Dungeon

A Doom-like game engine that renders to ascii and outputs to terminal! From /terminal_dungeon/ root directory type python -m terminal_dungeon to play.

Terminal Dungeon Preview

This engine was used to power a maze solving robot during Advent of Code 2019:

Maze Solver

(see code here: AoC Raycaster)

  • 'esc' to exit

  • 't' to turn off textures

  • 'wasdqe' or arrow-keys to move

  • 'space' to jump


Depending on your terminal font, Renderer.ascii_map may need to be adjusted.

Values stored in wall textures should range from 0-9. 6 is the default wall shade; values below 6 will darken the wall and above 6 will lighten it.


This project wouldn't have been possible without the following valuable resources:

Lode's Computer Graphics Tutorial

PyRay - Python Raycasting Engine

pygame-raycasting-experiment

More Repositories