import pygame
pygame.init()
display_width = 600
display_height = 600
black = (0,0,0)
white = (0,0,0)
gameDisplay = pygame.display.set_mode((display_width,display_height))
pygame.display.set_caption('8Bit Warfare')
clock = pygame.time.Clock()
bgImg = pygame.image.load('improvedbackground.jpg')
carImg = pygame.image.load('castle.jpg')
extraImg = pygame.image.load('extraimage.jpg')
x = (display_width/4)
y = (display_height/4)
def car(x,y):
gameDisplay.blit(carImg, (x,y))
def extra(x,y):
x = x/2
y = x/2
gameDisplay.blit(extraImg,(x,y))
crashed = False
while not crashed:
for event in pygame.event.get():
if event.type == pygame.QUIT:
crashed = True
gameDisplay.fill(white)
gameDisplay.blit(bgImg,(0,0))
car(x,y)
extra(x,y)
pygame.display.update()
clock.tick(60)
pygame.quit()
quit()
It says " Error : Out of memory
Do you know what this means?