Skip to content
Branch: master
Find file History
Latest commit 749de6e May 15, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
data Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
macosx Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
__init__.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
aacircle.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
aliens.py Adding fullscreen toggling to examples/aliens.py Jan 6, 2019
arraydemo.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
audiocapture.py The start of a _sdl2.mixer module. Feb 13, 2019
blend_fill.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
blit_blends.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
camera.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
chimp.py Chimp tutorial: use a right syntax for docstrings Dec 4, 2018
cursors.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
dropevent.py Add drop events Mar 7, 2019
eventlist.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
fastevents.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
fonty.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
freetype_misc.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
glcube.py Fix glcube.py fullscreen toggling. Jan 6, 2019
headless_no_windows_needed.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
liquid.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
mask.py Fix mask example float error. Jan 5, 2019
midi.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
moveit.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
oldalien.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
overlay.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
pixelarray.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
playmus.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
prevent_display_stretching.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
readme.txt Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
scaletest.py Make scaletest example python 3 compatible Feb 15, 2019
scrap_clipboard.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
scroll.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
sound.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
sound_array_demos.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
sprite_texture.py dlon's example using pygame.sprite with Texture and Image. May 13, 2019
stars.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
testsprite.py Change LOGICAL to SCALED. May 14, 2019
textinput.py Add textinput example Jan 8, 2019
vgrade.py Make SDL_image and SDL_mixer link to more shared libraries normally i… Dec 1, 2016
video.py Update video example May 15, 2019

readme.txt

These examples should help get you started with pyGame. Here is a
brief rundown of what you get. The source code for these examples
is in the public domain. Feel free to use for your own projects.

uberball.py - This was added for pygame-1.5. It is a more complete
    game, similar to breakout. Derived from the pygame chimp example
    it shows how to do menu screens and a more complete game.

aliens.py - This started off as a port of the SDL demonstration,
    Aliens. Now it has evolved into something sort of resembling
    fun. This demonstrates a lot of different uses of sprites and
    optimized blitting. Also transparancy, colorkeys, fonts, sound,
    music, joystick, and more. (PS, my high score is 117! goodluck)

oldalien.py - This more closely resembles a port of the SDL Aliens
    demo. The code is a lot simpler, so it makes a better starting
    point for people looking at code for the first times. These
    blitting routines are not as optimized as they should/could be,
    but the code is easier to follow, and it plays quick enough.

stars.py - A simple starfield example. You can change the center of
    perspective by leftclicking the mouse on the screen.

fonty.py - Super quick, super simple application demonstrating
    the different ways to render fonts with the font module

vgrade.py - Demonstrates creating a vertical gradient with
    Numpy. The app will create a new gradient every half
    second and report the time needed to create and display the
    image. If you're not prepared to start working with the
    Numpy arrays, don't worry about the source for this one :]

arraydemo.py - Another example filled with various surfarray
    effects. It requires the surfarray and image modules to
    be installed. This little demo can also make a good starting
    point for any of your own tests with surfarray

sound.py - Extremely basic testing of the mixer module. Load a
	sound and play it. All from the command shell, no graphics.

liquid.py - This example was created in a quick comparison with the
	BlitzBasic gaming language. Nonetheless, it demonstrates a quick
	8-bit setup (with colormap).

glcube.py - Using PyOpenGL and Pygame, this creates a spinning 3D
	multicolored cube.

scrap_clipboard.py - A simple demonstration example for the clipboard support.

data/ - directory with the resources for the examples



We're always on the lookout for more examples and/or example
requests. Code like this is probably the best way to start
getting involved with python gaming.


Pete Shinners
shredwheat@mediaone.net


pySDL    : http://pysdl.sourceforge.net
SDL      : http://www.libsdl.org
aliens.c : http://www.libsdl.org/projects/aliens
You can’t perform that action at this time.