Alter 2 files

Add __init__.py
Rename main.py to __main__.py
This commit is contained in:
akp 2025-03-22 13:06:13 +00:00
parent d1a9c866ee
commit bb96c1c639
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755
2 changed files with 0 additions and 10 deletions

0
game/__init__.py Normal file
View file

View 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()