pygame is
Simple DirectMedia Layer is
Site Swing
Mek's Sample Code

Mek's Sample Code - Collection-1

Sean J McKiernan (mekire)



I originally wrote most of these to assist others on forums and wanted to upload the ones that I have sitting around on my computer. Perhaps others may find them instructive....

Perhaps not.


  • Changing the color of the screen with the mouse (basics intro).
  • Dragging an image around the screen with the mouse.
  • Moving a sprite in all 8 directions. (no animation)
  • Four direction movement (with animation)
  • Rotating tank turret.
  • Punching a transparent hole in a surface.
  • Basic platforming and collision detection.

I would also like to encourage people to come and share your code, ask questions, and join in at the Game Development forum.



Home Page:


click to view original size


Mek's Sample Code - Collection-1 - May 16, 2013 account Comments

If you wish to leave a comment with your account, please sign in first.

No user comments have been submitted.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 9, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

Aug 21, 2015

Aug 16, 2015

Jul 30, 2015

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