Created
November 1, 2016 12:29
-
-
Save bucho666/3d6e8307df56f1b92be4166e65683fd5 to your computer and use it in GitHub Desktop.
pygameの基本
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 sys | |
import pygame | |
pygame.init() | |
screen = pygame.display.set_mode((680, 480), 0, 8) | |
pygame.display.update() | |
clock = pygame.time.Clock() | |
while(True): | |
for event in pygame.event.get(): | |
if event.type is pygame.QUIT: sys.exit(0) | |
clock.tick(60) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment