I'm trying to test a game but every time I try to run it appears "invalid syntax"

0
import pygame

def main():
    #variaveix
    pygame.init()
    tela = pygame.display.set_mode([300, 300])
    pygame.display.set_caption('THE GAME')
    relogio = pygame.time.Clock()
    branco = (255,255,255)
    azul = (0,255,255)
    verde = (0,255,0)
    sup = pygame.Surface((200,200))
    sup.fill(azul)

    sup2 = pygame.Surface((100,100))
    sup2.fill(verde)

    sair=False

    while sair !=True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                sair = True
            if event.type == pugame.MOUSEMOTION
                sup2 =sup2.move(10, 10)

        relogio.tick(27)
        tela.fill(branco)
        tela.blit(sup,[50,50])
        tela.blit(sup2,[70,70])
        pygame.display.update()
    pygame.quit()   

main()
    
asked by anonymous 14.10.2017 / 05:15

1 answer

2

This line:

if event.type == pugame.MOUSEMOTION

It was supposed to be this way:

if event.type == pygame.MOUSEMOTION:

In other words, you forgot the colon ( : ) and wrote pugame instead of pygame .

    
14.10.2017 / 06:25