{"id":28117,"library":"pyverse2d","title":"PyVerse2D","description":"PyVerse2D is a 2D game engine built on pyglet and OpenGL, designed for rapid prototyping of simple 2D games. Current version 0.74.13 supports Python >=3.10. The project is in active development with frequent releases.","status":"active","version":"0.74.13","language":"python","source_language":"en","source_url":"https://github.com/WhiteWolf45380/pyverse2d","tags":["game engine","2d","pyglet","opengl"],"install":[{"cmd":"pip install pyverse2d","lang":"bash","label":"Latest stable"}],"dependencies":[{"reason":"Rendering backend; must be compatible version (>=1.5, <2.0 as of engine version 0.74.x)","package":"pyglet","optional":false}],"imports":[{"note":"The main class is directly under the package, not a submodule.","wrong":"from pyverse2d.verse import Verse","symbol":"Verse","correct":"from pyverse2d import Verse"},{"note":"Graphics objects are in the 'graphics' submodule.","wrong":"from pyverse2d.sprite import Sprite","symbol":"Sprite","correct":"from pyverse2d.graphics import Sprite"}],"quickstart":{"code":"from pyverse2d import Verse\n\napp = Verse()\napp.title = 'My Game'\napp.run()","lang":"python","description":"Creates a basic game window and runs the main loop."},"warnings":[{"fix":"Set app.width and app.height after instantiation, not in constructor.","message":"In version 0.74.x, the 'Verse' class constructor no longer accepts a 'width' and 'height' keyword argument; use the 'width' and 'height' attributes before calling 'run()'.","severity":"breaking","affected_versions":">=0.74.0"},{"fix":"Replace 'from pyverse2d.constants import *' with 'from pyverse2d.math import VEC2_ZERO' etc.","message":"The 'pyverse2d.constants' module is deprecated; use 'pyverse2d.math' for vector constants.","severity":"deprecated","affected_versions":">=0.72.0"},{"fix":"Add 'pyglet>=1.5,<2.0' to your project dependencies.","message":"Pyglet 2.0 is not supported; force pyglet 1.5.x in your requirements.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install pyverse2d' in the same environment as your script.","cause":"Package not installed or installed in a different environment.","error":"ModuleNotFoundError: No module named 'pyverse2d'"},{"fix":"Upgrade to latest version: 'pip install --upgrade pyverse2d'","cause":"Using a very old version (<0.70) where the method was named 'start'.","error":"AttributeError: 'Verse' object has no attribute 'run'"},{"fix":"Use 'from pyverse2d.graphics import Sprite'","cause":"Trying to import Sprite directly from the main package instead of the graphics submodule.","error":"ImportError: cannot import name 'Sprite' from 'pyverse2d'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}