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 pointgame_ui: the GameUI component for menus and input dispatchui: 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
Free-play achievement ladder for the interactive client. |
|
Reusable game UI: menus, hotbar, click regions, and event dispatch. |
|
Pre-game launch screen: Play, Settings, and Reset to defaults. |
|
Interactive play script for Factoriax using pygame. |
|
Mutable UI state for the interactive play loop. |
|
Player-only UI components using pygame for pixel-font text rendering. |