[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Function problem



This error:

  File "main.py", line 36
    def pymageinit():
      ^
SyntaxError: invalid syntax

is caused by this function:

def pymageinit():
    global magi
    magi = [Mage("Player",20, 200), Mage("Arcawen",20, 200)]



does anyone know what i'm doing wrong?