示例#1
0
    def __init__(self, planet, player_id):
        self.planet = planet
        self.color = random.choice(GameColor.PlayerColors)
        self.player_id = player_id

        self.angle = random.random() * 2 * math.pi
        self.pos = Planet.get_edge_pos(planet, self.angle)