~/talk

Making Games With PPB

Talkat PyCascades 2021 · 2021-02-19..02-21· [game-development, python]
slides:none on file

PursuedPyBear is an education-focused Python game framework that opens a window with two lines of code (import ppb; ppb.run). It uses sprites with attributes (position, rotation, size), an event loop where movement is done in on_update using vectors scaled by update_event.time_delta (example speed 4 moving from (5,5) to (-6,-6)), and custom events as simple dataclasses emitted via signal(MyEvent, self) to change state (click to retarget and turn a square red). Scenes form a stack (push/replace/pop) and systems span scenes.

AI-written summary · about

  1. 0:00Start
  2. 1:53Goals
  3. 2:22Why Am I Pitching Ppb
  4. 4:10Sprites
  5. 6:56Event Handlers
  6. 10:55What Are Events
  7. 11:16Update Event
  8. 11:29Key Events
  9. 12:32How Do You Define Your Own Events
  10. 13:13Data Classes
  11. 15:50Scenes
  12. 17:41Lifestyle Events
  13. 18:03Reusing Code
  14. 22:10Systems
~/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.