~/talk

Making Games with ppb

Talkat PyOhio 2019 · 2019-07-27..07-28· [creative-coding]
slides:none on file

Hands-on walkthrough that uses the ppb engine to get a working game from a blank Python file to two small demos: a shooter and a virtual pet. Steps include installing ppb, creating a window, defining ppb event-driven sprites, wiring input handlers and an update loop, spawning projectiles, placing five targets, doing circle collision by comparing radii with vector math, and removing off‑screen objects (or else the game slows). The pet demo adds an idle subsystem for hunger/age via dataclasses events, shows feeding, image import from Piskel, and packaging/entry-point setup; examples run live but note missing camera-bounds helpers and an off-screen cleanup caveat.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20Getting Started
  3. 3:37Sprite
  4. 6:25Player Movement
  5. 8:10Event Handler
  6. 9:59Testing
  7. 12:45Why sprite is going down
  8. 13:20How to be net
  9. 13:51Event handlers
  10. 14:04Define controls
  11. 14:46Keys
  12. 15:14Documentation
  13. 16:45Controllers
  14. 17:35Velocity Vector
  15. 18:20Inverted Control
  16. 19:44Order of Operations
  17. 20:30Cue Release
  18. 21:30Control
  19. 21:56Update
  20. 23:31Movement
  21. 24:50Create Bullet
  22. 27:09Create Control
  23. 28:07Swimming Prince
  24. 28:29People Wired Up
  25. 28:59Create a Scene
  26. 29:55Glasses
  27. 30:44Sensors
  28. 31:34Scenes
  29. 32:19Inclusion
  30. 36:52Target Position
  31. 37:29Collision Detection
  32. 38:31Current State
  33. 38:51Get
  34. 39:44Tag
  35. 40:53Gate Condition
  36. 41:09Collision Preserves
  37. 41:50Anchor
  38. 42:26Targets
  39. 43:50Ground
  40. 45:02Pistol
  41. 46:36Images
  42. 47:56Image Attributes
  43. 49:15Player Position
  44. 49:46Collision
  45. 50:43Powerups
  46. 51:57Virtual Pet
  47. 52:45Life Sample
  48. 53:01Creek
  49. 57:16Installing
~/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.