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

Create constants.py#25

Open
CodeLongAndProsper90 wants to merge 3 commits into
tasdikrahman:masterfrom
CodeLongAndProsper90:patch-3
Open

Create constants.py#25
CodeLongAndProsper90 wants to merge 3 commits into
tasdikrahman:masterfrom
CodeLongAndProsper90:patch-3

Conversation

@CodeLongAndProsper90
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@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')
Copy link
Copy Markdown

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 thread spaceshooter/__init.py__
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
Copy link
Copy Markdown

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.

2 participants