added player movement

This commit is contained in:
specCon18 2025-01-14 22:26:04 -05:00
parent 5b8a9dd113
commit 703023c019
2 changed files with 11 additions and 3 deletions

View file

@ -15,10 +15,10 @@ def main():
for event in pygame.event.get():
if event.type == pygame.QUIT:
return
screen.fill((0, 0, 0))
screen.fill((0, 0, 0))
p1.draw(screen)
p1.update(dt)
pygame.display.flip()
pygame.display.flip()
tick = clock.tick(60)
dt = tick/1000
if __name__ == "__main__":