PYBLOCKS / DOCS

Install and make your first game

Install PyBlocks on Windows, open an example, press Play and save your changes. No Python or other tools are needed.

Install PyBlocks

PyBlocks runs on 64-bit Windows 10 or later. The installer is a single file named PyBlocks-Setup-0.9.0-beta.1.exe, and everything the editor needs (including its own Python runtime) is inside it.

  1. Double-click PyBlocks-Setup-0.9.0-beta.1.exe.
  2. If Windows SmartScreen shows Windows protected your PC, click More info and then Run anyway. The beta is not code-signed yet, so Windows does not recognise the publisher.
  3. The installer follows your Windows language (English or Spanish). By default it installs just for you, without administrator rights; you can choose to install for all users instead.
  4. Keep or change the install folder. The page also reminds you that your projects are kept if you uninstall.
  5. Optionally tick Create a desktop shortcut.
  6. Leave Launch PyBlocks ticked on the last page and click Finish.

To uninstall, use Windows Settings → Apps or the Uninstall PyBlocks entry in the Start menu. Your projects and settings are not deleted.

The Home workspace

PyBlocks opens on Home. On the very first launch a 5-step Quick tour highlights the workspaces, the examples, Play, Blocks and the main shortcuts. Press Esc or Skip tour to close it; replay it any time with Help → Quick tour or the Quick tour button on Home.

Home: example games on the left, recent projects on the right.
Home: example games on the left, recent projects on the right.
  • Examples: the four bundled games, each with a screenshot and a one-line description.
  • Recent: the last projects you opened. Click one to reopen it.
  • New project and Open…: create a project or open an existing project folder.
  • Report a problem: saves a zip with diagnostics you can send us (see Troubleshooting).

The version you are running is shown next to the logo, at the right end of the status bar and in Help → About PyBlocks (F1).

Open an example

The fastest way to learn is to open a finished game and look inside.

  1. On Home, click an example card, for example The Little Garden.
  2. PyBlocks copies it to Documents\PyBlocks\<example name> and opens the copy in the Scene workspace. If that folder already exists, the copy gets a number, such as LittleGarden 2.
  3. The shipped original is never modified, so you can experiment freely.

File → Open Example... does the same but lets you pick the example from a list and choose the destination folder yourself. The examples guide describes what each game teaches.

Create a new project

  1. Click New project on Home, or use File → New Project (Ctrl+Shift+N).
  2. Type a project name. It becomes the folder name, so avoid characters such as \ / : * ? " < > |.
  3. Choose the parent folder. PyBlocks creates the project folder inside it.

Every new project starts from The Little Garden, a small animated starter game, already saved and ready to play. A project is a plain folder:

MyProject/
  .pbproject.json      project settings (name, start scene, window size...)
  scenes/              scenes (*.pbscene.json)
  assets/              sprites, audio, fonts, animation clips
  plugins/             PyBlocks Lab Python modules (*.py)

To reopen a project later, use Recent on Home, Open…, or File → Open Project Folder (Ctrl+Shift+O) and select the project folder.

Press Play

Press Ctrl+P or the Play button in the middle of the header. The game starts in the Game workspace. In The Little Garden, move with WASD or the arrow keys, press Space for a magic burst and collect the four crystals.

The Little Garden, the starter every new project begins with.
The Little Garden, the starter every new project begins with.
CtrlPPlay / Stop
CtrlShiftPPause / Resume
CtrlAltPStep one frame
Ctrl.Stop

Changes the game makes while it runs are not kept: when you stop, the editor shows the scene exactly as it was before you pressed Play. If a script has an error, Play is blocked and the Problems panel explains why (see Blocks). The Play modes and where the game view can live are described in The editor interface.

Save your work

CtrlSSave Scene
CtrlShiftSSave Scene As...
CtrlAltSSave Project
  • Save Scene (File → Save Scene, also in the Scene menu, or the disk icon in the header) writes the open scene, including every object's blocks, to its .pbscene.json file.
  • Save Project saves the scene and also writes .pbproject.json with the project settings.
  • Animation clips save themselves a moment after each change.

The status bar says Saved, Modified or No project, and a dot appears next to the scene name in the workspace caption when there are unsaved changes. PyBlocks asks before closing or switching scenes with unsaved changes.