Skip to content

Instantly share code, notes, and snippets.

@pathunstrom
Last active March 10, 2020 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pathunstrom/8da67c4f783178dab0299d6b9d1bf228 to your computer and use it in GitHub Desktop.
Save pathunstrom/8da67c4f783178dab0299d6b9d1bf228 to your computer and use it in GitHub Desktop.
A one line PursuedPyBear demo. Because we can.
(lambda ppb: ppb.run(setup=lambda scene: scene.add(s := ppb.Sprite(position=ppb.Vector(0, -4), image=ppb.Image("player.png"), on_update=lambda update, signal: setattr(s, 'position', s.position + (ppb.Vector(0, 1) * update.time_delta))))))(__import__("ppb"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment