Skip to content

Commit 3adebb6

Browse files
committed
Create game file with starter code
1 parent 85d3ad9 commit 3adebb6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

basic-game.py/my_game.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pygame
2+
3+
pygame.init()
4+
5+
# set up drawing window
6+
screen = pygame.display.set_mode((500, 500))
7+
8+
# run until user asks to quit
9+
running = True
10+
11+
while running:
12+
# did user click quit button?
13+
for event in pygame.event.get():
14+
if event.type == pygame.QUIT:
15+
running = False

0 commit comments

Comments
 (0)