Discuss Scratch

Shadow36821
Scratcher
100+ posts

help with code

So I am making a game with pygame and the game is still under dev. But, my tank image will not load when I run the shell. The rest works pefectly. Here is the code:

blip=“blip.png”
back=“blipbg.jpg”

import pygame, sys
from pygame.locals import *

pygame.init()
displaysurf=pygame.display.set_mode((600,600),0,32)
displaybk=pygame.image.load(back).convert()
bliptank=pygame.image.load(blip).convert_alpha()

while True:
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
sys.exit()

Heres where I think the problem is:
displaysurt.blit(blip, (25,25))

pygame.displaysurf.flip()
novice27b
Scratcher
1000+ posts

help with code

Which image is the tank?
Shadow36821
Scratcher
100+ posts

help with code

novice27b wrote:

Which image is the tank?
blip.png

Powered by DjangoBB