Skip to content
Merged

. #4

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lessons/01_Physics_for_Games/01_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""
import pygame


# Initialize Pygame
pygame.init()

Expand Down Expand Up @@ -39,7 +40,6 @@ def main():

while running:


# Event handling
for event in pygame.event.get():

Expand All @@ -51,7 +51,6 @@ def main():
# with a boolean value of whether they are pressed or not
keys = pygame.key.get_pressed()


# Calculate the change tin the position
d_x = 0
d_y = 0
Expand Down