def __init__(self, controller): Activity.__init__(self, controller) self.script = [ ("tut1a", [ (["This is Bob","Bob is a blob"],(225,250)), (["Bob is on a magical quest", "for sparkly things"], (225,425)) ]), ("tut1b", [ (["Hold the right mouse button","to charge Bob up"],(300,250)), (["Release RMB to launch Bob","towards the mouse"],(350,250)), (["Once Bob is launched he cannot","launch again until he has collided","or interacted with some object"],(400,450)) ]), ("tut1c", [ (["These are sparkly things","Touch these to beat a level"],(550,250)) ]), ("tut2a", [ (["These are platforms and spinners"],(400,350)), (["They are made of different materials", "that have different properties"],(400,375)), ]), ("tut2b", [ (["You can manually rotate spinners","that have gears in the middle"],(200,400)), (["Left click on them and move","the mouse to rotate them"],(300,575)), ]), ("tut3a", [ (["These are gravity wells","They either push or pull you."],(300,100)), (["While you are in a gravity well","you are not subject to normal gravity."],(300,400)), ]), ("tut3b", [ (["Use them to perform","sweet orbital maneuvers."],(450,200)), ]), ("tut4", [ (["These are forcefields and magnets","They do what you might expect"],(400,350)), ]), ("tut5a", [ (["These are sheep", "Sheep are assholes", "Sheep murdered your whole family"],(200,400)), (["If you hit sheep at high speeds", "they die. If you hit them", "at low speed you die"],(350,400)), ]), ("tut5b", [ (["Kill the evil bastards", "before they kill you"],(500,600)), ]), ] self.panel = 0 self.caption = 0 self.update_tut()
def __init__(self, controller): Activity.__init__(self, controller) self._widgets = [] self._selectedwidget = None