PolyMarsDev / Flappuccino

A Pygame game made in 48 hours
355 stars 123 forks source link

Typo in "main.py" and Added "import colorsys" in background.py #21

Open renderman21 opened 3 years ago

renderman21 commented 3 years ago

Running the game, there is a sudden error in the console that most of them are "undefined". And when importing the files for main.py, there is a dot (.) before the referenced file, thus throwing off an error

firefish111 commented 3 years ago

no no, . means the current directory, it needs that otherwise it will attempt to open a file in path, or what is system32 if you use that shitty abomination called Microsoft Windows

On Tue, Jul 6, 2021, 06:28 ph3b3 @.***> wrote:

the . at the start of directorys is a unix thing i think

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PolyMarsDev/Flappuccino/pull/21#issuecomment-874471351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5R7YUBGIECCP5FY3ZLG2LTWKIBHANCNFSM47DEJEBA .

phoebe-leong commented 3 years ago

youll have to edit all of the directory references

phoebe-leong commented 3 years ago

on your local version

firefish111 commented 3 years ago

youll have to edit all of the directory references

but it works on Windows as well, have you not used cmd?

firefish111 commented 3 years ago

@phoebe-leong this guy is right though, it's supposed to be ./ not just .

renderman21 commented 3 years ago

no no, . means the current directory, it needs that otherwise it will attempt to open a file in path, or what is system32 if you use that shitty abomination called Microsoft Windows On Tue, Jul 6, 2021, 06:28 ph3b3 @.***> wrote: the . at the start of directorys is a unix thing i think — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#21 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5R7YUBGIECCP5FY3ZLG2LTWKIBHANCNFSM47DEJEBA .

Ah okay okay, I am using Linux in testing the game. And the . before the referenced python files such as player.py utils.py, etc., is a hidden file. Guessed I didn't account for Windows though.