Created
November 14, 2013 20:20
-
-
Save ErikRamses/7473662 to your computer and use it in GitHub Desktop.
Hello Word con Pykinect
This file contains 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 pygame | |
if __name__ == '__main__': | |
WINSIZE = 640, 480 | |
pygame.init() | |
#Initialize PyGame | |
screen = pygame.display.set_mode(WINSIZE, 0, 16) | |
pygame.display.set_caption('Python Kinect Game') | |
screen.fill(THECOLORS["black"]) | |
with nui.RunTime() as kinect: | |
kinect.skeleton_engine.enabled = True | |
kinect.skeleton_frame_ready += post_frame | |
#Main game loop | |
while True: | |
e = pygame.event.wait() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment