pygame games
Run a pygame game in the browser as it is, or let the editor's AI turn it into an instant Python game (PyLevate) with one click.
A pygame project runs real pygame (pygame-ce on Pyodide) in the browser. Your desktop game loop works as it is.
Turn a pygame game into an instant Python game
An instant Python game (PyLevate) opens at once, and has leaderboards, saves and iOS and Android export.
- Open your pygame game in the editor, or find it on your Projects page.
- Click Make an instant Python game.
- Read the report: what the AI will rewrite (for example
pygame.mixer.music, threads, sockets,global). - Click Make it.
You get a new project, “name (instant)”. Your pygame game stays as it is.
The new project opens with the AI chat, and the message to port the game is sent for you. The AI writes main.py, and every change is test-built before it is applied. Check the game in the preview, then Keep or Revert.
- Your original is in the folder
pygame-original/. The AI reads it and never changes it. - Pictures and sounds (PNG, JPG, GIF, WebP, BMP, WAV, OGG, MP3) are kept. The game loads them from
pygame-original/. - No hosted AI on your plan? The chat opens on This computer or In this browser, with the message ready. See AI on your own computer.
The report reads your code; it doesn’t run it. A daily limit on new projects applies.