~/talk

Game Programming with Python and PyGame, by Mr Valdez - Part 2

Talkat PyCon Philippines 2012 · 2012-06-30..07-01· [python, creative-coding]
name:Mr Valdez
links:none on file
slides:none on file

A working PyGame demo creates a 640x480 window and runs a classic game loop that polls events updates objects and draws each frame, representing characters as sprites as rects and using axis-aligned rectangle math for collision detection. The code limits speed with a 60 FPS cap, spawns multiple enemies with random positions, fires bullets, and removes enemies on hit; some rough edges remain (initial bullet hide by setting x to -1000, occasional event-handling glitches).

AI-written summary · about

  1. 0:00Game coordinates and resolutions
  2. 0:44Collision detection basics
  3. 4:03Game design patterns
  4. 6:20Python for game dev
  5. 9:16Basic Pygame window
  6. 12:34Game sprite creation
  7. 16:49Frame rate control
  8. 18:45User input handling
  9. 20:22Adding multiple enemies with object-oriented approach
  10. 23:57Dynamic enemy containers
  11. 25:55Random enemy spawning
  12. 27:05Projectiles and interactions
  13. 29:26Collision detection
  14. 34:24Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.