factoriax.playground.play

factoriax.playground.play#

Factoriax Play: the human-facing gameplay interface.

This subpackage contains pygame-based UI components for interactive play. It is intentionally separated from the core RL environment so that the training pipeline never pulls in pygame as a dependency.

Quick start#

>>> python -m factoriax.playground.play

Or import directly:

>>> from factoriax.playground.play.main import main
>>> main()

Submodules#

  • main: the game loop and the entry point

  • game_ui: the GameUI component for menus and input dispatch

  • ui: menu rendering (inventory, achievements, pause)

This module holds no imports, so the engine import path never pulls in pygame. Import from the defining module instead.

Modules

achievements

Free-play achievement ladder for the interactive client.

game_ui

Reusable game UI: menus, hotbar, click regions, and event dispatch.

launch_screen

Pre-game launch screen: Play, Settings, and Reset to defaults.

main

Interactive play script for Factoriax using pygame.

play_state

Mutable UI state for the interactive play loop.

ui

Player-only UI components using pygame for pixel-font text rendering.