06-25-2021, 10:21 PM
(This post was last modified: 06-25-2021, 10:24 PM by megamarc.
Edit Reason: fix some typos
)
Hi,
I've done a major refactoring of Tilengine's sister project Python Platformer (https://github.com/megamarc/TilenginePythonPlatformer). I've split it onto separate, reusable modules what was a single-file implementation. The aim of this project is to showcase a real-world usage of tilengine to build a working game prototype, so everything must be keep clean and simple. Python can be quite tricky regarding imports, circular dependencies and sharing object instances, specially for someone having a strong background in C as things work quite differently. This refactoring supposed quite a bigger challenge than I expected at the beginning, but it's now completed.
It's structure can be of interest for those of you working on Python games...
I've done a major refactoring of Tilengine's sister project Python Platformer (https://github.com/megamarc/TilenginePythonPlatformer). I've split it onto separate, reusable modules what was a single-file implementation. The aim of this project is to showcase a real-world usage of tilengine to build a working game prototype, so everything must be keep clean and simple. Python can be quite tricky regarding imports, circular dependencies and sharing object instances, specially for someone having a strong background in C as things work quite differently. This refactoring supposed quite a bigger challenge than I expected at the beginning, but it's now completed.
It's structure can be of interest for those of you working on Python games...