Ok, thanks!
rrrlead
Creator of
Recent community posts
I had to edit main.py to be able to play the game.
What to do:
Add this line on the top of the file:
from pathlib import Path
repleace all
pygame.image.load("path")
with
pygame.image.load(Path("path"))
and rename file "Hard.png" in Assets folder to "hard.png"
After all of this changes, the code should run.
Whenever I try to run source code, game crashes with error:
Traceback (most recent call last):
File "/home/gemius/Downloads/Flyre/flyre.py", line 5, in <module>
App(LoadingState, IntegerScaleScreen(SIZE)).run()
File "/home/gemius/Downloads/Flyre/src/engine/app.py", line 57, in run
self.state = self.state.next_state
File "/home/gemius/Downloads/Flyre/src/engine/state_machine.py", line 274, in state
new.on_resume()
File "/home/gemius/Downloads/Flyre/src/engine/state_machine.py", line 92, in on_resume
pygame.mixer.music.load(MUSIC / self.BG_MUSIC)
pygame.error: Unrecognized audio format
Python: 3.9.4
pygame: 2.0.1
SDL: 2.0.14
Operating system: ubuntu