created game window
This commit is contained in:
parent
23b62c4c13
commit
faa55f0b47
0
pypong/game_files/__init__.py
Normal file
0
pypong/game_files/__init__.py
Normal file
19
pypong/game_files/game.py
Normal file
19
pypong/game_files/game.py
Normal file
@ -0,0 +1,19 @@
|
||||
import pygame
|
||||
|
||||
SCREEN_SIZE = (640, 480) # Size of the game window
|
||||
|
||||
|
||||
def game():
|
||||
pygame.init()
|
||||
|
||||
window = pygame.display.set_mode(SCREEN_SIZE)
|
||||
surface = pygame.Surface(SCREEN_SIZE)
|
||||
|
||||
running = True
|
||||
|
||||
while running:
|
||||
pygame.display.flip()
|
||||
|
||||
|
||||
def main():
|
||||
game()
|
Loading…
Reference in New Issue
Block a user