Developed for the Intro to Game Programming tutorial at US PyCon 2012, revised for PyCon APAC 2012, 2013 and 2014. Video of the tutorial (from the US PyCon 2013 - 2014 video coming soon) is at http://pyvideo.org/video/2620/introduction-to-game-programming The slide deck (with my speaking notes) is in slides.pdf The source files starting with numbers are steps along the development of the platformer.py game. A cocos2d implementation of the platformer is in platformer-cocos.py with a slightly juiced-up version in platformer-cocos-juice.py The other game skeletons are driving.py, minesweeper.py, side_scroller.py and tower_defence.py (the last is a cocos2d game.) The game in match3/main.py is an Android game runnable under pgs4a. There is also some examples of pylepton in action in effects.py Copyright 2012-2013 Richard Jones <richard@mechanicalcat.net> This code is placed in the Public Domain.
Source
pygame-tutorial /
Filename | Size | Date modified | Message |
---|---|---|---|
flappy | |||
kezmenu | |||
match3 | |||
235 B
|
|
undo debug stuffs
|
|
55 B
|
|
Added tag release-1.0.1 for changeset d7567f0ff2d2
|
|
75 B
|
|
up to step 8
|
|
311 B
|
|
renaming of steps
|
|
427 B
|
|
renaming of steps
|
|
594 B
|
|
split out the clock addition to a separate step
|
|
583 B
|
|
add tearing examples
|
|
540 B
|
|
add tearing examples
|
|
660 B
|
|
split out the clock addition to a separate step
|
|
739 B
|
|
split out the clock addition to a separate step
|
|
1.1 KB
|
|
split out the clock addition to a separate step
|
|
1.3 KB
|
|
split out the clock addition to a separate step
|
|
1.4 KB
|
|
split out the clock addition to a separate step
|
|
1.4 KB
|
|
split out the clock addition to a separate step
|
|
1.9 KB
|
|
clean up the diffs
|
|
2.4 KB
|
|
clean up the diffs
|
|
2.6 KB
|
|
remove unnecessary refactoring of Sprite step; leave background as blit
|
|
2.9 KB
|
|
updates
|
|
2.4 KB
|
|
remove unnecessary refactoring of Sprite step; leave background as blit
|
|
2.5 KB
|
|
new tile set for map and use new maps per step
|
|
3.6 KB
|
|
new tile set for map and use new maps per step
|
|
3.9 KB
|
|
new tile set for map and use new maps per step
|
|
4.8 KB
|
|
new tile set for map and use new maps per step
|
|
5.1 KB
|
|
new tile set for map and use new maps per step
|
|
815 B
|
|
move the enemy image load to class attribute; add commented version of platformer
|
|
22.3 KB
|
|
add basic driving example (no collisions); use modenine in minesweeper
|
|
912 B
|
|
README.txt edited online with Bitbucket
|
|
372.9 KB
|
|
up to step 8
|
|
701 B
|
|
add some lepton-based special effects
|
|
132 B
|
|
up to step 8
|
|
198 B
|
|
add minesweeper example (uses mouse event and different event gathering)
|
|
94 B
|
|
add overview of tutorial; tweak some bits of the code progression
|
|
279 B
|
|
add basic driving example (no collisions); use modenine in minesweeper
|
|
111 B
|
|
add minesweeper example (uses mouse event and different event gathering)
|
|
1.5 KB
|
|
add tower defence
|
|
548 B
|
|
add basic driving example (no collisions); use modenine in minesweeper
|
|
2.2 KB
|
|
add basic driving example (no collisions); use modenine in minesweeper
|
|
5.8 KB
|
|
add some lepton-based special effects
|
|
336 B
|
|
add overview of tutorial; tweak some bits of the code progression
|
|
37.1 KB
|
|
add sound
|
|
10.0 KB
|
|
add sound
|
|
4.2 KB
|
|
new tile set for map and use new maps per step
|
|
4.6 KB
|
|
undo debug stuffs
|
|
3.9 KB
|
|
new tile set for map and use new maps per step
|
|
2.7 KB
|
|
add basic driving example (no collisions); use modenine in minesweeper
|
|
3.6 KB
|
|
add 16-scenes.py
|
|
653 B
|
|
add some lepton-based special effects
|
|
9.0 KB
|
|
fix cocos version
|
|
8.0 KB
|
|
fix cocos version
|
|
10.8 KB
|
|
new tile set for map and use new maps per step
|
|
260 B
|
|
make tmx cell properties mutable
|
|
270 B
|
|
make tmx cell properties mutable
|
|
199 B
|
|
make tmx cell properties mutable
|
|
3.8 KB
|
|
add some lepton-based special effects
|
|
10.1 KB
|
|
add basic driving example (no collisions); use modenine in minesweeper
|
|
2.5 KB
|
|
new tile set for map and use new maps per step
|
|
11.3 KB
|
|
new tile set for map and use new maps per step
|
|
4.4 KB
|
|
more example tmx fixes
|
|
227 B
|
|
add a proper ship
|
|
22.3 KB
|
|
add sound
|
|
8.2 KB
|
|
add a proper ship
|
|
6.2 MB
|
|
latest slides
|
|
132 B
|
|
clean up some filenames
|
|
156 B
|
|
add side-scroller example and extend tmx to cope with separate tileset files
|
|
28.1 KB
|
|
switch to TMX object layer for triggers
|
|
958 B
|
|
add tower defence
|
|
10.6 KB
|
|
add tower defence
|
|
2.2 KB
|
|
switch to TMX object layer for triggers
|
|
545 B
|
|
switch to TMX object layer for triggers
|
|
1.1 KB
|
|
add some lepton-based special effects
|
|
658 B
|
|
add some lepton-based special effects
|