Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issue #11 and #6, Enable running the game from anywhere #16

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

JanPoonthong
Copy link

Rather than telling user what to do, I made the changes for you. Now user have to just clone your project and download pygame and your project works out of the box.

Fix:
    Traceback (most recent call last):
      File "main.py", line 277, in <module>
	main()
      File "main.py", line 161, in main
	o.setSprite(((player.position.y/50) % 100) / 100)
      File "/home/jan/Tmp/Flappuccino/background.py", line 9, in setSprite
	color = colorsys.hsv_to_rgb(tint,1,1)
    NameError: name 'colorsys' is not defined
Fix:
    Traceback (most recent call last):
      File "main.py", line 4, in <module>
	from .player import Player
    ImportError: attempted relative import with no known parent package
So now you could run your games like python3 /home/PolyMarsDev/games/Flappuccino/main.py
@JanPoonthong JanPoonthong changed the title Fixing issue #11 and #6 Fixing issue #11 and #6, Enable running the game from anywhere Apr 23, 2021
@JanPoonthong JanPoonthong mentioned this pull request Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant