Skip to content

Instantly share code, notes, and snippets.

@pathunstrom
Created June 5, 2018 13:50
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/6a4cf49486bd009e85426736e6f22c4b to your computer and use it in GitHub Desktop.
Save pathunstrom/6a4cf49486bd009e85426736e6f22c4b to your computer and use it in GitHub Desktop.
cool game code
# Assume this is an image file.
import ppb
from ppb import BaseSprite
class Player(BaseSprite):
pass
def main():
game_kwargs = {"set_up": scene_setup}
ppb.run(resolution=(800, 800),
scene_kwargs=game_kwargs)
def scene_setup(scene):
scene.add(Player())
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment