1

I'm working on a small project in pygame that will eventually end up being a top-down, open world fantasy game (think final fantasy 1). I am working on the basics of open world travel, and I've got most of it down. The only issue is that sometimes my background is blitted before the player (which is good) and sometimes my background is blitted after the player (very bad).

It seems like it only blits correctly the first time you run the code after updating the mapping.py file, otherwise it blits incorrectly. (Something to do with the mapping.pyc file?) Can someone please explain what's going on and how I can fix this? My code is in a zip file below, since I'm not sure what area exactly to pin down as the "problem area."

Zip file with python source files (just run "main.py") can be found here (from sourceforge).

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
Ben Schwabe
  • 1,283
  • 1
  • 21
  • 36
  • Without seeing your code, it's impossible to answer your question. Most people are not going to download random zip-files from free hosters; either post your code here, or at least use and link to a github (or bitbucket/sourceforge/whatever public source code hoster) repository. – sloth Jan 02 '14 at 10:19
  • Alright, I'll upload it to sourceforge and change the download link. My code is extensive, so I didn't want to just paste it all in the question. – Ben Schwabe Jan 02 '14 at 16:18
  • I am voting to close this question as there is no [**Minimal**, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example). – Rabbid76 Dec 22 '20 at 14:51

0 Answers0