Skip to content

Running your Game

You can start your game at any time by tapping the Play button.

This will open the Player.

The Top Bar

The top bar in the player is automatically hidden when you start the game, you can reveal it by tapping the topmost part of your screen.

It contains options to Quit the game or show the Console.

The Console

The console lists all the outputs your code has generated using the pyxen.log function.

Every log entry also keeps track of the file and line that made the log call.

Errors

When a runtime error occurs in the Python side, you're presented a message box with information concerning the Exception that was raised.

You also have access to the full stack track in reverse order (The most recent call is first).

The game will close immediately after an error is raised, to prevent that, just catch exceptions on the Python side before it exits the main entry points.