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 23, 2016

Oct 22, 2016

Oct 17, 2016

Oct 11, 2016

Oct 10, 2016

Oct 3, 2016

Oct 1, 2016

Sep 19, 2016

Sep 17, 2016

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