players
BasePlayer
HumanPlayer
- class gobigger.players.human_player.HumanPlayer(cfg, team_id, player_id, border, spore_settings, sequence_generator=None)[source]
- add_balls(balls)[source]
- Overview:
Add new avatars
- Parameters:
balls <List[CloneBall] or CloneBall>: It can be a list or a single doppelganger
- adjust()[source]
- Overview:
Adjust all the balls controlled by the player, including two parts 1. Possible Rigid Body Collision 2. Possible ball-ball fusion
- eject(direction=None)[source]
- Overview:
All clones controlled by the player perform the spore-spitting action
- Return:
<list>: list of new spores
- get_keys_sort_by_balls()[source]
- Overview:
Sort by ball score from largest to smallest
- Return:
<list>: list of names
- move(direction=None, duration=0.05)[source]
- Overview:
Move all balls controlled by the player The main logic is
Processing stopped state
If it is stopping, control all balls to move closer to the center of mass
- Parameters:
direction <Vector2>: A point in the unit circle duration <float>: time
- Returns:
position <Vector2>: position after moving