Python Skeleton Code

#importing pygame module and initializing it
import pygame
from pygame.locals import *
pygame.init()
#Creates a blank window of width 720 pixels and height 540 pixels.
#This window has a coordinate system where top left corner is (0, 0) and the right bottom corner is (720,540)
screen = pygame.display.set_mode((720,540))
#Setting the name of the window to "First Game"
pygame.display.set_caption("First game")
#Everything in the game goes in While loop just like Tic Tac Toe
while True:

#Update the screen each time loop is repeated
pygame.display.update()
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
exit()  

Tel.: (530)-219-5220
Powered by Webnode
Create your website for free! This website was made with Webnode. Create your own for free today! Get started