pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
News

PySDL 0.9.3 released - Jul 9, 2014

Marcus von Appen has released PySDL2 0.9.3.

PySDL2 is a wrapper around the SDL2 library and as such similar to the discontinued PySDL project. In contrast to PySDL, it has no licensing restrictions, nor does it rely on C code, but uses ctypes instead.

Version 0.9.3 is a small feature release, which comes with the following changes:

  • new sdl2.ext.Renderer.scale attribute, which denotes the horizontal and vertical drawing scale
  • new sdl2.ext.point_on_line() function to test, if a point lies on a line segment
  • PYSDL2_DLL_PATH can contain multiple paths separated by os.pathsep to search for the libraries now
  • sdl2.ext.get_image_formats() only returns BMP image support now, if SDL2_image and PIL are not found
  • sdl2.ext.load_image() tries to use sdl2.SDL_LoadBMP() now, if SDL2_image and PIL are not found
  • fixed issue #55: sdl2.SDL_GameControllerAddMappingsFromFile() does not raise a TypeError for Python 3.x anymore
  • fixed issue #56: sdl2.ext.Renderer.draw_line() and sdl2.ext.Renderer.draw_point() handle multiple lines (or points) as arguments properly now
  • fixed issue #57: if SDL2_image is not installed and PIL is used, the loaded pixel buffer of the image file is not referenced anymore after returning from sdl2.ext.load_image(), causing random segmentation faults
  • fixed issue #58: raise a proper error, if sdl2.ext.FontManager.render() could not render a text surface
  • fixed issue #59: The sdl2.ext.TextureSpriteRenderSystem.sdlrenderer attribute is correctly documented now
  • fixed a local variable and module name collision in sdl2.ext.FontManager.render()

You can download it from http://bitbucket.org/marcusva/py-sdl2/downloads.
The documentation, listing all of its features, can be browsed online at http://pysdl2.readthedocs.org/.

PyOpenGL 3.1.0 released - Jul 8, 2014

Mike C. Fletcher has released PyOpenGL 3.1.0. The big changes are:

  • Generation of wrappers is substantially more automatic and based on Khronos source-files with annotations from the Chromium/regal project
  • Common code-base for Python 2.6, 2.7, 3.3 and 3.4; Python 2.5 is no longer supported; 2to3 is no longer used
  • Better isolation and pervasive lazy-loading behavior to prevent loading unused libraries (e.g. GLUT in non-GLUT contexts or GLES in OpenGL contexts)
  • Automated wrappers now (generally) allow passing in output arrays or having them generated
  • Experimental support for GLES and EGL
  • Many bug-fixes and minor improvements

This release should be largely compatible with anything that worked with 3.0.2 as long as that code didn't poke around in the internals of PyOpenGL too much. The structure of the package has changed significantly in order to allow for loading e.g. GLES or GL without loading the other APIs, and to make the code less GL-arrogant (i.e. to make ES a more-or-less-equal api).

To install:

pip install PyOpenGL PyOpenGL_accelerate

Docs, more detailed installation instructions, etc. are on the PyOpenGL Homepage.

PyCon 2014 intro to game programming - May 25, 2014

Intro to game programming by Richard Jones:
http://pyvideo.org/video/2620/introduction-to-game-programming


 

PySDL 0.9.2 released - Apr 13, 2014

Marcus von Appen has released PySDL2 0.9.2.

Version 0.9.2 is a bugfix release, which fixes some issues in the PySDL2 API:

  • fixed issue #32: the line clipping algorithms do not run into precision errors anymore
  • fixed issue #53 (again): sdl2.video.SDL_GL_ResetAttributes() is properly wrapped now to retain backwards compatibility with previous SDL2 releases
  • fixed issue #54: text input is correctly converted for the text entry component
  • updated the example BMP files, which could not be loaded properly on some systems with SDL2_image and PIL

You can download it from http://bitbucket.org/marcusva/py-sdl2/downloads.
The documentation, listing all of its features, can be browsed online at http://pysdl2.readthedocs.org/.

The python pygame music collection - Apr 10, 2014

We are collecting music made with python at this "the-game-music-from-pygames" issue.

The music will be placed on the new "HiFi"(alpha) pygame website for people to listen to. If you've made some music, or you like music from a game please suggest it in the issue!

PySDL 0.9.1 released - Apr 8, 2014

Marcus von Appen has released PySDL2 0.9.1.

PySDL2 is a wrapper around the SDL2 library and as such similar to the discontinued PySDL project. In contrast to PySDL, it has no licensing restrictions, nor does it rely on C code, but uses ctypes instead.

Version 0.9.1 is a bugfix release, which fixes some issues in the PySDL2 API:

  • fixed issue #50: corrected the sdl2.ext.load_image() documentation
  • fixed issue #52: sdl2.ext.Renderer.fill(), sdl2.ext.Renderer.draw_rect() and sdl2.ext.Renderer.draw_point() convert sequences correctly now
  • fixed issue #53: provide backwards compatibility for previous SDL2 releases by adding a wrapper function for sdl2.cpuinfo.SDL_HasAVX()

You can download it from http://bitbucket.org/marcusva/py-sdl2/downloads.
The documentation, listing all of its features, can be browsed online at http://pysdl2.readthedocs.org/.

PyPy + pygame_cffi benchmarked against CPython + pygame - Mar 28, 2014

Development continues on a version of pygame that's optimized for PyPy. Recently, the performance of PyPy + pygame_cffi was benchmarked and compared to the performance of CPython + pygame. Results have been posted here: http://morepypy.blogspot.de/2014/03/pygamecffi-pygame-on-pypy.html

Kivy App Contest 2014 - Mar 27, 2014

The Kivy App Contest 2014 will run from April 15 until May 14. The theme and the prizes will be announced soon.

(Kivy, a cross-platform application development framework, can use pygame for some of its functions.)

PyOpenGL 3.1.0b2 is available for testing - Mar 26, 2014

Mike C. Fletcher has announced that the second beta version of PyOpenGL 3.1.0 is now available. If no critical issues are found, then Mike will do a final release in a few weeks. These are the changes since Beta 1:

  • Generation fixes (lots of them)
  • GLES/GL-only extensions should now be generated only in the appropriate directories
  • Extensions which are multi-api will show up in each API package (note: custom wrappers are still written per-api)
  • Freshly generated wrappers from the khronos API repository
  • Late/lazy binding of all entry points (that is, we do not even attempt to resolve any entry point until we try to try to call it)
  • All DLLs are now lazy-loaded, so we can define DLLs and entry points without paying for loading them in every script
  • Export the nullFunction method in the OpenGL.platform namespace
  • No longer export DLLs into the OpenGL.platform namespace, these are now in OpenGL.platform.PLATFORM (to allow for lazy loading)
  • Setup script fixes for relative filename references
  • Build fixes for cython on OS X
  • Remove duplicate checking for extension in createFunction()
  • A bit of work on making a GLES2 shader wrapper as in GL
  • Explicitly check for self._noErrorResult in error checkers rather than assuming no-error-result is always boolean False
  • Explicitly return self._noErrorResult when error checking is suppressed
  • VBO implementation is now separated out into per-api modules so that GLES can eventually get its own implementation
  • OS X fix for true-core-context with no error checking
  • Refactor the OSMesa context into a platform and a module with the extension functions (OpenGL.osmesa)
  • Make most "output" parameters use "orPassIn" flag so that they can be *either* generated or passed in
  • Fix for shader log retrieval when using core shader implementation
  • Provide OpenGL and GLES dlls on the EGL and GLX platforms respectively
  • Reinstate intended default for context-checking flag (True)
  • Remove support for extremely old ctypes versions from now-unsupported Python versions
  • Accelerate wrappers regenerated with cython 0.20.1

Download: https://pypi.python.org/pypi/PyOpenGL/3.1.0b2

PyWeek 18 will begin on May 11 - Mar 25, 2014

The 18th PyWeek Python Game Programming Challenge will run from May 11th (00:00 UTC) until May 18th (00:00 UTC)

The PyWeek challenge:

  1. Invites entrants to write a game in one week from scratch either as an individual or in a team,
  2. Is intended to be challenging and fun,
  3. Will increase the public body of game tools, code and expertise,
  4. Will let a lot of people actually finish a game, and
  5. May inspire new projects (with ready-made teams!)
Check out the help page for how to compete (and prepare) and the growing resources message board post:

cocos2d 0.6.0 released - Mar 25, 2014

The cocos2d Team has released cocos2d 0.6.0, a 2D framework for games and multimedia that uses Python, pyglet and six.

http://cocos2d.org/

PySDL2 0.9.0 released - Mar 23, 2014

Marcus von Appen has released PySDL2 0.9.0.

PySDL2 is a wrapper around the SDL2 library and as such similar to the discontinued PySDL project. In contrast to PySDL, it has no licensing restrictions, nor does it rely on C code, but uses ctypes instead.

Version 0.9.0 is a feature release, which provides the following changes:

  • the sdl2 module is compatible with SDL2 2.0.3
  • new sdl2.ext.subsurface() function to create subsurfaces from sdl2.SDL_Surface objects
  • new sdl2.ext.SoftwareSprite.subsprite() method to create sdl2.ext.SoftwareSprite objects sharing pixel data
  • the unit test runner features a --logfile argument now to save the unit test output to a file
  • the different render classes of sdl2.ext.sprite were renamed
  • the sdl2.ext.RenderContext class was renamed to sdl2.ext.Renderer to be consistent with with SDL2's naming scheme
  • sdl2.ext.SpriteRenderer was renamed to sdl2.ext.SpriteRenderSystem
  • sdl2.ext.SoftwareSpriteRenderer was renamed to sdl2.ext.SoftwareSpriteRenderSystem
  • sdl2.ext.TextureSpriteRenderer was renamed to sdl2.ext.TextureSpriteRenderSystem
  • sdl2.ext.SpriteFactory.create_sprite_renderer() was renamed to sdl2.ext.SpriteFactory.create_sprite_render_system()
  • various bug fixes

Please note that version 0.9.0 is not compatible with previous releases, due to the changed class names in the sdl2.ext module.

You can download it from http://bitbucket.org/marcusva/py-sdl2/downloads. The documentation, listing all of its features, can be browsed online at http://pysdl2.readthedocs.org/.

Blender 2.70 released - Mar 20, 2014

The Blender Foundation has released Blender 2.70, an open-source 3D modeling tool with a Python-scriptable game engine.

BaconGameJam 07 and Mini Ludum Dare 50 - Mar 10, 2014

There will be two short game competitions later this month:

  • BaconGameJam 07 - the competition will begin when the theme is announced on March 21
  • Mini Ludum Dare 50 - the theme is DEMAKES, and the competition will run from March 22 until March 24

PyJ2D 0.23 and Pyjsdl 0.18 released - Mar 7, 2014

PyJ2D 0.23, a tool for converting Python/pygame code to Java, and Pyjsdl 0.18, a tool for converting Python/pygame code to HTML5-compatible JavaScript, have been released by Jim Garnon. There are limitations, which are described on the PyJ2D and Pyjsdl pages.

Ludum Dare 29 - weekend of April 25th-28th - Feb 27, 2014

The 29th Ludum Dare game programming competition will take place on the weekend of April 25th-28th, 2014. Details:
http://www.ludumdare.com/compo/

spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 23, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)