Exemple #1
0
 def on_init(self):
 	room = first_room()
     pygame.init()
     self._display_surf = screen
     self._running = True
     if room == 1: 
     	#import room
     	from room1 import screen_stuff
     	screen_stuff(screen)
     if room == 2:
         from room2 import screen_stuff
         screen_stuff(screen)
         bear_blit(bear)
Exemple #2
0
def room_change(new_room): 
    room_doc = open("room_num.txt", "w")
    room_doc.write(str(new_room)) 
    room_doc.close()
    room = get_room()
    if room == 1:
        from room1 import screen_stuff
        screen_stuff(screen)
    elif room == 2:
        from room2 import screen_stuff
        from room2 import bear_blit
        screen_stuff(screen)
        bear_blit(bear)
    elif room == 3:
        from room3 import screen_stuff
        screen_stuff(screen)
    return room