Пример #1
0
  def __init__(self, player):
    self.map_file = "test_megaman_map.tmx"

    self.map_data = tmxloader.load_pygame(
      os.path.join("data", "maps", self.map_file)
    )
    self.physics_manager = PhysicsManager(self.map_data)

    self.player = player
    self.all_sprites = pygame.sprite.RenderPlain((self.player,))
Пример #2
0
 def __init__(self):
     self.map_file = "desert.tmx"
     self.map_data = tmxloader.load_pygame(os.path.join("data", "maps", self.map_file))