I am currently trying to develop a game. I am using python IDLE which does not run my code as it says that I have an syntax error in my code.
The code works using notepad, however not on the Python IDLE. Could someone please help and advise?.
SCREEN = display.set_mode((800,600))
FONT = "fonts/space_invaders.ttf"
IMG_NAMES = ["ship", "ship", "mystery", "enemy1_1", "enemy1_2", "enemy2_1", "enemy2_2",
"enemy3_1", "enemy3_2", "explosionblue", "explosiongreen", "explosionpurple", "laser", "enemylaser"]
IMAGES = {name: image.load("images/{}.png".format(name)).convert_alpha()
for name in IMG_NAMES}
for name in IMG_NAMES}
- This is giving a invalid syntax error which for highlighted.