Skip to content

abesto/pyrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyrl

In this repo I followed along the excellent Python TCOD Roguelike Tutorial: http://rogueliketutorials.com/tutorials/tcod/. There is one major trick: I used an ECS framework (esper, specifically). I made several monkey-patches to Esper (refer to pyrl/esper_ext.py). The implementation (especially data model) differs to varying degrees from the tutorial, both to more clearly express stuff within the ECS system, and to satisfy my sense of elegance. Also, the code is fully typed (with the exception of some pieces of black magic), and heavily utilizes Python 3 features like dataclasses.

There is much room for improvement, but for now I consider this project finished. I publish it with the hopes that it might be useful to someone furiously searching Google for "python tcod roguelike ECS example".

About

Followed along http://rogueliketutorials.com/tutorials/tcod/, but with Esper ECS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages