Skip to content

Main Entrypoint

Main Entrypoint

The application starts in src/code/main.py, initializes pygame, and launches the title screen.

Module Location

from main import main

Behavior

  • Initializes pygame
  • Creates a fullscreen display surface
  • Applies a compatibility fix for pygame_widgets on Python 3.14+ by adding OrderedSet.copy
  • Starts TitleScreen

Entry Function

def main() -> None

Example

if __name__ == "__main__":
main()