Imports
#Imports
import pygame, sys, time, random
from pygame.locals import *
Display
pygame.init() #initializes pygame window
pygame.display.set_caption('Parkour') #titlebar caption
Bg=pygame.display.set_mode((800,600),0,32) #sets main surface
"""--------------------------------------------------------------------------"""
Event loop
gameActive = True
while gameActive:
#print (event)
for event in pygame.event.get():
if event.type == pygame.QUIT:
gameActive = False
pygame.quit()
quit()
Background (ISSUE) Yeah I'm a beginner, but shouldn't this fill the screen then update it? Bg is true so it should constantly run right?
#Background
Bg = True
while Bg:
screen.fill((0,0,255))
pygame.display.flip()