def __init__(self, scenarioData, startAttributes, startImages): super(Start, self).__init__(scenarioData, startAttributes, "start") self.nameable = False for imageId in startImages: imageAttributes = startImages[imageId].pop("image")[0] objectAttributes = startImages[imageId] imageId = imageAttributes["id"] # Create objects according to its category if (imageId == "beginning"): self.beginningImage = Object.BeginningImage( self, imageAttributes, objectAttributes) if (imageId == "start"): self.background = Object.JSONImage(self, imageAttributes, objectAttributes)