2 Exporting
dxtr edited this page 2026-10-19 02:29:09 +02:00

Exporting

Exporting a game, to run it as its players will, comes after the editor, which is built, and after its built-in code editor, step 23, which comes next. So far pyssel/export builds the player image exported games will start from: the engine without the editor, saved as a core, from the files your Lisp finds the engine in. build-player-image builds it in a few seconds, keeps it in ~/.cache/pyssel/, and builds it again when a file of the engine is newer; player-command gives the program and arguments that start it. Started so, the image reads what to play from its standard input, as pyssel/player describes, plays it, and ends with the game.

To run a game apart from your editor in the meantime, to profile it or to run several, start another Lisp, load the game's system and its scene, and run it there.