Python Forum
[PyGame] Problem when moving game window
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Problem when moving game window
#5
metulburr@ubuntu:~/Downloads/Tile Based Game$ python3 main.py 
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "main.py", line 254, in <module>
    g = Game()
  File "main.py", line 35, in __init__
    self.load_data()
  File "main.py", line 71, in load_data
    self.item_images[item] = pg.image.load(path.join(img_folder, ITEM_IMAGES[item])).convert_alpha()
pygame.error: Couldn't open img/shotgun.png
(Jan-14-2020, 06:24 PM)michael1789 Wrote: Try running it, get to where and enemy is trying to get you behind a wall and click and hold the title bar for a second or two and let go.

You should use the exact filename as linux is case sensitive. It would make your programs more available. I had to change all the filenames to even run it.

Regarding your issue...i dont have that happen based on what you explained to replicate the issue. Nothing odd happens when i hold the title bar mid game or move the window behind a wall with enemies on the other side.
Recommended Tutorials:
Reply


Messages In This Thread
Problem when moving game window - by michael1789 - Jan-12-2020, 04:25 PM
RE: Problem when moving game window - by metulburr - Jan-12-2020, 11:16 PM
RE: Problem when moving game window - by metulburr - Jan-14-2020, 07:38 PM
RE: Problem when moving game window - by metulburr - Jan-14-2020, 10:32 PM
RE: Problem when moving game window - by metulburr - Jan-15-2020, 12:07 PM
RE: Problem when moving game window - by metulburr - Jan-15-2020, 08:44 PM
RE: Problem when moving game window - by metulburr - Jan-15-2020, 09:44 PM
RE: Problem when moving game window - by metulburr - Jan-16-2020, 11:43 AM
RE: Problem when moving game window - by metulburr - Jan-17-2020, 01:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] Problem With Entering Game Loop ElevenDecember 3 2,687 Jan-19-2020, 08:25 AM
Last Post: michael1789
  Snake Game - obstacle problem Samira 3 5,646 Oct-31-2019, 02:58 PM
Last Post: Samira
  [PyGame] Game Logic problem with a "The Game of Life" Replication Coda 2 3,146 Dec-24-2018, 09:26 AM
Last Post: Coda
  [PyGame] Pong game key.event problem erickDarko 2 4,198 Dec-12-2018, 03:17 PM
Last Post: erickDarko

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020