Alter 2 files
Add __init__.py Rename main.py to __main__.py
This commit is contained in:
parent
d1a9c866ee
commit
bb96c1c639
2 changed files with 0 additions and 10 deletions
0
game/__init__.py
Normal file
0
game/__init__.py
Normal file
|
@ -29,16 +29,6 @@ def main():
|
|||
|
||||
pygame.draw.circle(screen, "red", player_pos, 40)
|
||||
|
||||
keys = pygame.key.get_pressed()
|
||||
if keys[pygame.K_w]:
|
||||
player_pos.y -= 300 * dt
|
||||
if keys[pygame.K_s]:
|
||||
player_pos.y += 300 * dt
|
||||
if keys[pygame.K_a]:
|
||||
player_pos.x -= 300 * dt
|
||||
if keys[pygame.K_d]:
|
||||
player_pos.x += 300 * dt
|
||||
|
||||
# flip() the display to put your work on screen
|
||||
pygame.display.flip()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue