Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

└─$ python main.py  

pygame-ce 2.2.1 (SDL 2.26.4, Python 3.11.2)
/home/yolo/pygame-forks/2023-jam/Pygame-Jam-2023/setup.py:23: Warning: PyGame seems to be running through X11 on t

op of wayland, instead of wayland directly  window = pygame.display.set_mode((WINDOW_WIDTH, WINDOW_HEIGHT))
Traceback (most recent call last):  File "/home/yolo/pygame-forks/2023-jam/Pygame-Jam-2023/main.py", line 12, in <module>    main()  File "/home/yolo/pygame-forks/2023-jam/Pygame-Jam-2023/main.py", line 8, in main    game_manager.run()  File "/home/yolo/pygame-forks/2023-jam/Pygame-Jam-2023/gamemanager.py", line 41, in run    pygame.transform.scale(game_surface, (WINDOW_WIDTH, WINDOW_HEIGHT), window)
pygame.error: Only works with same format surfaces
                                                      

I get this when running your project. I'm not sure why but it seems the depth of the dest surface is not the same on my machine or something?

(1 edit)

I'm sorry that our game didn't run.
We have tested our game on Mac and Windows machines and it runs without crashing. 

I haven't had experience with Linux before so I'm not sure how to fix that error. Maybe you could try hardcoding values for the WINDOW_WIDTH and WINDOW_HEIGHT variables in the setup.py file rather than it being based of your monitor size?

(+1)

No I don't think it's about the monitor size, but I'll try to find the problem

(+1)

Okay, I fixed it, I made the changes and made a pull request too.