~/talk

Game Programming with Python

Talkat PyCon APAC 2018 · 2018-05-31..06-02· [python, creative-coding]
links:none on file
slides:none on file

Live code builds a 640x480 pygame demo with keyboard movement, sprite blits from Microsoft Paint art, and a 60 FPS clock; collision uses axis-aligned rectangle math and optional per-pixel hitboxes, enemies spawn with random x between 1000 and 5000 and up to hundreds (demo tries 1000) causing visible frame drops until PNGs are converted and images .convert() is used. Code adds simple lives, walls, and sound hookup (audio over HDMI fails live). Joystick init and controls are shown and the playable prototype mostly works.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:52What is a game loop
  3. 7:06Math basics for game design
  4. 12:30Collision detection explained
  5. 15:46Live coding first game
  6. 21:13Adding player character
  7. 27:03Keyboard controls setup
  8. 30:28Creating enemy sprites
  9. 34:04Game speed and frame rate
  10. 36:50Managing multiple enemies
  11. 41:20Detecting collisions
  12. 45:07Game over and explosions
  13. 48:15Adding sound effects
  14. 50:05Adding walls and boundaries
  15. 52:10Fixing movement bugs
  16. 53:13Power-ups and lives
  17. 54:10Q&A and closing
~/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.