factoriax.playground.editor

factoriax.playground.editor#

The level editor.

The editor reads and writes a Level. It holds the level in an EditorState while the user edits it.

Start the editor with python -m factoriax.playground.editor.

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

Modules

canvas

The camera and the tile drawing of the editor canvas.

dialogs

The dialogs of the level editor.

inventory_panel

The inventory panel, at the right edge of the editor.

main

The main loop of the level editor.

slot_display

The slot layout that the editor draws for each machine.

state

The level under edit, as mutable numpy arrays.

toolbar

Sidebar toolbar, menu bar, and status bar for the level editor.