Arcade (Python) Python 2D game library built on pyglet and OpenGL with sprites, views and game helpers.
Overview Arcade is a Python library for 2D games built on pyglet and OpenGL. It provides sprites, view-based screen organization, collision and physics helpers, and access to lower-level graphics functionality. It is distinct from the unrelated Arcade.dev service and is primarily a desktop game-development option.[1] [2] [3]
Contents Screens and event handling Arcade's View classes separate screens such as menus, gameplay and pause interfaces. A view supplies drawing, update and input behavior while the Window retains responsibilities such as its dimensions. Switching the active view changes which behavior handles the displayed screen. This offers structure for a growing game without implying that an existing program's event loop can be copied unchanged.[5]
Sprites and collision organization SpriteList groups sprites for rendering and for collision-related operations. The tutorial separates a player from wall geometry so the same lists can serve distinct game roles. Spatial hashing can accelerate collision queries for largely stationary objects, but moving those objects becomes more expensive. It is therefore a workload-dependent design choice rather than an optimization that should be applied indiscriminately to every list.[4]
Graphics and threading Arcade exposes an OpenGL context through the window and distinguishes CPU-side texture data from graphics objects that require an initialized context. Some objects defer their graphics initialization, but arbitrary worker-thread interaction with OpenGL objects is not supported. The documented resource-collection behavior keeps graphics cleanup associated with the context, which matters when combining a game with background processing.[6]
Rendering without an interactive window Arcade can use pyglet's headless support on Linux systems with EGL. It can render into framebuffers for image output, but ordinary window input events are absent. An application designed around keyboard or mouse interaction therefore needs a different control path in this mode. Headless availability is a specific deployment capability, not proof that any interactive game runs unchanged on a server.[7]
Assets, licensing and distribution Arcade's code and documentation use MIT, while built-in resources use CC0 or similarly permissive terms. Resource handles provide a convenient way to locate bundled images, sounds and fonts without hard-coding their installation paths. The distribution guide separately discusses packaging and application signing; a runnable script is not itself a finished distributable. Imported assets and added dependencies require their own licensing checks.[8] [9]
Substitution considerations Arcade can replace pygame for a desktop 2D game when a team wants its view, sprite-list and graphics abstractions. The migration concerns the program architecture as well as individual function calls: pygame's explicitly managed loop and Surface operations do not become Arcade views and graphics objects automatically. Hardware requirements and deployment targets should be established before committing to that port.[3] [4] [5] [6] [10]
Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.