Python Forum
Action rpg written in standard library. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Game Development (https://python-forum.io/forum-11.html)
+--- Thread: Action rpg written in standard library. (/thread-24490.html)



Action rpg written in standard library. - ninedeadeyes - Feb-16-2020

Just in case if anyone is interested I'll leave my code and video here..

https://github.com/Ninedeadeyes/7-Dungeons-Deep


https://www.youtube.com/watch?v=Jmmdnoz2X-w


RE: Action rpg written in standard library. - nilamo - Feb-20-2020

Just a little constructive criticism, I think you should only have the images in one place. Let's say you wanted to change what the player looked like while facing right. That's ".\\art\\heroright.gif", and there's 4 different places that string would need to change.

Instead, what about using a dict:
images = {
    "hero-right": ".\\art\\heroright.gif"
}
Then everywhere you'd use it, it'd be images["hero-right"]. Which is much more descriptive, so it's self-documenting, without needing to just know what an Image2.gif is.