def builder(): r = room.RoomUI(id='village1', width=1008, height=144) r.add(se.BackgroundItem(image='gfx/village1_1.png', pos=[0, 0, -1]), 'main') r.add(se.BackgroundItem(image='gfx/village1_2.png', pos=[73, 0, 1]), 'main') r.add(se.BackgroundItem(image='gfx/village1_3.png', pos=[229, 0, 1]), 'main') r.add(se.BackgroundItem(image='gfx/village1_4.png', pos=[606, 0, 1]), 'main') r.add( se.WalkArea(tag='walkarea', shape=sh.Graph(nodes=[[8, 71], [23, 63], [49, 49], [40, 37], [56, 24], [84, 13], [770, 13], [780, 34], [1000, 34]], edges=[[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8]]), scale=sh.LinY(y0=0, z0=0.8, y1=144, z1=0.1), depth=sh.LinY(y0=0, z0=1, y1=144, z1=0)), 'main') r.addItem(id='village1.poster') r.addItem(id='village1.door', anim=var.doors.village_scummbar) r.addItem(id='village1.cliffside') r.addItem(id='village1.archway') r.addDynamicItems() r.init.append(init) #print (State.items['scummbar.door.out'].walkto) return r
def builder(): r = room.RoomUI(id='scummbar', width=640, height=144) r.add(se.BackgroundItem(image='gfx/scummbar_1.png', pos=[0, 0, -3]), 'main') r.add(se.BackgroundItem(image='gfx/scummbar_2.png', pos=[374, 20, 0.95]), 'main') r.add(se.BackgroundItem(image='gfx/scummbar_3.png', pos=[157, 0, 0.99]), 'main') r.add(se.BackgroundItem(image='gfx/scummbar_4.png', pos=[20, 0, 0.99]), 'main') r.add( se.WalkArea(tag='walkarea', shape=sh.Polygon(outline=[ 32, 16, 70, 24, 128, 19, 251, 18, 311, 10, 321, 10, 345, 32, 467, 41, 492, 50, 514, 40, 565, 40, 580, 35, 629, 6, 626, 0, 256, 0, 200, 16, 149, 0, 90, 0, 85, 10 ], holes=[[374, 28, 505, 28, 505, 6, 374, 6]]), depth=sh.LinY(y0=0, z0=1, y1=144, z1=0)), 'main') # doors r.addItem(id='scummbar.door.out', anim=var.doors.village_scummbar) r.addItem(id='scummbar.door.kitchen', anim=var.doors.scummbar_kitchen) # doors # r.add (se.Sprite (item='scummbar.door.out', anim = var.doors.village_scummbar, model='door_scummbar_village', pos = [32, 24, 0]), 'main') # r.add (se.Sprite (item='scummbar.door.kitchen', anim = var.doors.scummbar_kitchen, model='door_scummbar_kitchen', pos = [591, 9, 0]), 'main') # other r.addItem(id='scummbar.fireplace', parent='walkarea') # pirates r.addItem(id='scummbar.mancomb') # r.add (se.Sprite (item = 'scummbar.estevan', model = 'scummbar.estevan', pos = [164, 21, 1]), 'main') # r.add (se.Sprite (item = 'scummbar.loom', model = 'scummbar.loom', pos = [260, 17, 1]), 'walkarea') # r.add (se.Sprite (item = 'scummbar.pirate1', model = 'scummbar.pirate1', pos = [138, 38, -1]), 'main') # r.add (se.Sprite (model = 'scummbar.pirate2', pos = [124,20,-1], tag = 'scummbar.pirate2'), 'main') # r.add (se.Sprite (model = 'scummbar.pirate3', pos = [30,0,-1], tag = 'scummbar.pirate3'), 'walkarea') # r.add (se.Sprite (item = 'scummbar.pirate4', model = 'scummbar.pirate4', pos = [0, 0, -1]), 'walkarea') # r.add (se.Sprite (model = 'scummbar.pirate5', pos = [200,18,1], tag = 'scummbar.pirate5'), 'main') # r.add (se.Sprite (model = 'scummbar.pirate6', pos = [160,0,1], tag = 'scummbar.pirate6'), 'main') # r.add (se.Sprite (model = 'scummbar.pirate7', pos = [255,38,1], tag = 'scummbar.pirate7'), 'walkarea') # r.add (se.Sprite (model = 'scummbar.pirate8', pos = [215,44,1], tag = 'scummbar.pirate8'), 'walkarea') # r.add (se.Sprite (model = 'scummbar.pirate9', pos = [278,40,1], tag = 'scummbar.pirate9'), 'walkarea') # r.add (se.Character (model='ilp1', speed = 100, dir = 'e', # state='idle', text_color=[85, 85, 255, 255], text_offset=[0,60], pos = [376, 11, 0.95]), 'walkarea') # r.add (se.Character (model='ilp2', speed = 100, dir = 'e', # state='idle', text_color=[255, 255, 85, 255], text_offset=[0,60], pos = [413,11,0.95]), 'walkarea') # r.add (se.Character (model='ilp3', speed = 100, dir = 'e', # state='idle', text_color=[255, 85, 255, 255], text_offset=[0,60], pos = [444,18,0.95]), 'walkarea') # r.add (se.Sprite (item = 'scummbar.important_looking_pirates', pos=[370,30,0]), 'main') # r.init.append (animate) # r.init.append (cook) r.addDynamicItems() return r
def builder(): r = room.RoomUI(id=roomId, width=480, height=144) r.add(se.BackgroundItem(image='gfx/village2.png', pos=[0, 0, -1]), 'main') r.add( se.WalkArea(tag='walkarea', shape=sh.Polygon(outline=[ 0, 24, 123, 63, 199, 63, 299, 30, 377, 30, 385, 35, 454, 35, 470, 0, 0 ]), depth=sh.LinY(y0=0, z0=1, y1=144, z1=0)), 'main') r.addItem(id='village2.archway') r.addItem(id='village2.village3') r.addItem(id='lmf') r.addItem(id='citizen', parent='walkarea') r.addItem(id='lmf1', parent='walkarea') r.addItem(id='lmf2', parent='walkarea') r.addItem(id='lmf3', parent='walkarea') r.addItem(id='village2.rat', parent='walkarea') r.addItem(id='village2.fakedoor1') r.addItem(id='village2.fakedoor2') r.addItem(id='village2.fakedoor3') r.addItem(id='village2.fakedoor4') r.addItem(id='village2.door', anim=var.doors.village_voodoolady) r.addDynamicItems() r.init.append(init) #print (State.items['scummbar.door.out'].walkto) return r
def builder(): r = RoomDialogue(id='scummbar') r.add(se.BackgroundItem(image='gfx/mancomb.png', pos=[0, 0, -1]), 'main') r.addItem(id='mancomb.mancomb') #r.addItem (id = 'guybrush.dialogue') r.init.append(f) return r
def builder(): r = room.RoomUI(id=roomId, width=width, height=height) r.add(se.BackgroundItem(image='gfx/village3_1.png', pos=(0, 0, -1)), 'main') r.add(se.BackgroundItem(image='gfx/village3_2.png', pos=(166, 0, 2)), 'main') r.add( se.WalkArea(tag='walkarea', shape=sh.Polygon(outline=[ 406, 49, 425, 49, 436, 63, 494, 63, 494, 42, 594, 42, 594, 71, 600, 71, 638, 23, 745, 23, 752, 17, 770, 17, 770, 10, 762, 10, 775, 0, 374, 0, 396, 22 ]), depth=sh.LinY(y0=0, z0=1, y1=144, z1=0)), 'main') r.addDynamicItems() r.init.append(init) return r