I'm using the libtcod library to explore and comprehend basic engine construction. Understanding engine structure will help with development of future projects and ideas.
Following this tutorial, which has been updated to include newer Python 3 syntax and libtcod functions.
Part 1: get input and draw the character.
Part 2: 'Entity', render functions, and the map.
Part 3: Generating a dungeon.
Part 4: FOV (field-of-view)
Part 5: Placing enemies and a combat action.
Part 6: Handling damage.
-> Part 7: Creating the Interface.
Requirements:
-
tcod>=11.15
-
numpy>=1.18
In CLI or terminal, navigate to root directory of project and enter:
>> python rogue.py
The game will open in a new window.
UP, DOWN, LEFT, RIGHT: moves the player sprite around on the screen
ESC: close the window and exit