Esempio n. 1
0
 def init_placement(self, creature_type):
     for x in range(World.get_max_x(self.inst_of_world)):
         for y in range(World.get_max_y(self.inst_of_world)):
             if World.get_xy(self.inst_of_world, x, y) is None:
                 World.set_xy(self.inst_of_world, x, y, creature_type)
                 self.current_position_x = x
                 self.current_position_y = y
                 return