Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Create constants.py #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

CodeLongAndProsper90
Copy link

No description provided.

Copy link

@koutoftimer koutoftimer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes have to revised carefully.

Comment on lines -24 to -25
img_dir = path.join(path.dirname(__file__), 'assets')
sound_folder = path.join(path.dirname(__file__), 'sounds')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have removed this two completely, why?

img_dir is a used constant.

Comment on lines +1 to +6
## initialize pygame and create window
pygame.init()
pygame.mixer.init() ## For sound
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Space Shooter")
clock = pygame.time.Clock() ## For syncing the FPS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If someone runs python <path to>/spaceShooter.py what result will be? It looks like this code is not required because it does nothing in this case.

Plus: where do you have constants WIDTH and HEIGHT from? Where is pygame import?

Looks like total nonsense and should be removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants