PolyMarsDev / Flappuccino

A Pygame game made in 48 hours
354 stars 127 forks source link

Fix the itch.io link and add comments #4

Closed ghost closed 3 years ago

ghost commented 3 years ago

itch.io link

So, in the README.md, one of the itch.io links' leads to cursor custodian. I have fixed that and added an additional section about pygame and it's installation to help people install the library.

Comments and __name == "__main"

Then in the main file I added comments, and also check whether the file was imported and then the main function was called or from the same file and not from another file. This is how to do that:

import pygame
def main():
    print("I like coding")
# now come to the part
if __name__ == "__main__":
    main()

A great article which proves this in detail is this. Anyways, hope this helps Flappuccino.

PolyMarsDev commented 3 years ago

Thanks!