const

Game specific functions and constants

Includes:

  • the actions that a player can take
  • possible formations
  • recolor a player sprite

Do not change these constants directly as other parts of the game rely on their correct format

ACT

Team formations - Must start with the keeper - Must contain positions for both left and right sides - Recommended to specify completley in terms of W and H (and PLAYER_RADIUS / BALL_RADIUS if reqd)

recolor

recolor(surface, color=(255, 108, 0))

Fill all pixels of the surface with color, preserve transparency.