Roguelike with a first-person 3D viewport
Written in python using libtcod. It's kinda slow, but it works, and I didn't have to write a terminal renderer from scratch which is nice.
Requires Python 3 installed (I used 3.8) https://www.python.org/downloads/
$ git clone https://github.com/TechniMan/firstpersonroguelike
$ cd firstpersonroguelike
$ virtualenv venv
$ ./venv/Scripts/activate # (add .bat for Windows cmd)
> pip install pillow
> pip install tcod
> python engine.py
When you're done with the virtual environment, simply enter:
> deactivate
Use the direction keys left and right to rotate 45degrees either direction, and up to move forwards. Use g
to pick up an item you're standing on, i
to open inventory to use an item, and d
to open inventory to drop an item. Walking into an enemy will attack them.
up
: move forwardsleft
: turn 45deg leftright
: turn 45deg rightdown
: move backwardsg
: pick up an item you're standing oni
: open inventory to use an itemd
: open inventory to drop an item- numpad
1
,2
,3
,4
,6
,7
,8
,9
: move in that direction relative to the map esc
to quit
- entity textures render badly from corners
- entity textures scale oddly with distance