0

Hello there.
I am new in Python, so sorry for stupid question.

Here is my chunk of code.

class Map(object):

    scenes = [
    'central_corridor': CentralCorridor(),
    'laser_weapon_armory': LaserWeaponArmory(),
    'the_bridge': TheBridge(),
    'escape_pod': EscapePod(),
    'death': Death()
    ]

    def __init__(self, start_scene):
        self.start_scene = start_scene
    def next_scene(self, scene_name):
        return Map.scenes.get(scene_name)
    def opening_scene(self):
        return self.next_scene(self.start_scene)ap = Map('central_corridor') 

Interpreter shows me

  File "ex43.py", line 173
    'central_corridor': CentralCorridor(),
                      ^
SyntaxError: invalid syntax

What can cause it?

Edited by Flying_robot

2
Contributors
2
Replies
25
Views
2 Years
Discussion Span
Last Post by Flying_robot
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.