Skip to content

Sync top-python-game-engines with the updated tutorial - #948

Merged
realpython-bot merged 1 commit into
masterfrom
maintenance/top-python-game-engines-20261121
Nov 21, 2026
Merged

realpython-bot merged 1 commit into
masterfrom
maintenance/top-python-game-engines-20261121

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Syncs top-python-game-engines with the maintenance update of the Top Python Game Engines tutorial.

What changed

  • requirements.txt: arcade==2.6.10 -> arcade==3.3.3 and pygame==2.1.2 -> pygame==2.6.1. The old pins have no wheels for Python 3.13 and fail to build (pymunk, Pillow 9, pygame 2.1.2).
  • arcade/arcade_basic.py and arcade/arcade_game.py: ported to Arcade 3, matching the updated article listings:
    • arcade.start_render() -> self.clear() (in Arcade 3, start_render() can only be called once, so it raises on the second frame)
    • arcade.draw_lrtb_rectangle_outline() -> arcade.draw_lrbt_rectangle_outline()
    • draw_text(start_x=..., start_y=...) -> draw_text(x=..., y=...)
    • arcade.Sprite(filename=...) -> the path passed positionally, because filename= is silently ignored and the sprite renders blank
    • arcade.clamp() -> arcade.math.clamp()
    • self.player.draw() -> arcade.draw_sprite(self.player), because Sprite.draw() was removed

Verification

  • Ran on Python 3.13.18 in a fresh venv installed from the new requirements.txt.
  • Ran every Pygame, Pygame Zero, and Arcade script under Xvfb for 10 seconds. Each one stayed in its game loop with no traceback.
  • Drove arcade_game.py from a test script: both sprites loaded their PNG textures, on_mouse_motion() clamped the player to the window, a coin pickup scored, and 300 on_update()/on_draw() frames ran cleanly.
  • Ran adventurelib_basic.py and adventurelib_game.py with scripted input. Both exited cleanly.
  • ruff==0.14.1 passes both format --check and check.

Article draft (admin): https://realpython.com/pbjt/blog/post/2702/change/
Maintenance card: https://trello.com/c/xhuwAPmn

🤖 Generated with Claude Code

…n Game Engines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@realpython-bot
realpython-bot merged commit 008fbf7 into master Nov 21, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/top-python-game-engines-20261121 branch November 21, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant