Created
June 5, 2018 13:50
-
-
Save pathunstrom/6a4cf49486bd009e85426736e6f22c4b to your computer and use it in GitHub Desktop.
cool game code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assume this is an image file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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