Feb-20-2020, 08:30 PM
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
Instead, what about using a dict:
".\\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.