mirror of
https://github.com/d3vyce/Python-Game.git
synced 2025-07-01 09:28:19 +02:00
add window init function
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
import pygame
|
||||
from pygame.locals import *
|
||||
|
||||
def init_game():
|
||||
pygame.init()
|
||||
screen = pygame.display.set_mode((1280, 720), pygame.SCALED)
|
||||
pygame.display.set_caption("Test Window")
|
||||
|
||||
return screen
|
Reference in New Issue
Block a user