Fixing issue #11 and #6, Enable running the game from anywhere#16
Open
JanPoonthong wants to merge 6 commits intoPolyMarsDev:mainfrom
Open
Fixing issue #11 and #6, Enable running the game from anywhere#16JanPoonthong wants to merge 6 commits intoPolyMarsDev:mainfrom
JanPoonthong wants to merge 6 commits intoPolyMarsDev:mainfrom
Conversation
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
Closed
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rather than telling user what to do, I made the changes for you. Now user have to just clone your project and download
pygameand your project works out of the box.