Skip to content

Instantly share code, notes, and snippets.

@bucho666
Created November 1, 2016 12:29
Show Gist options
  • Save bucho666/3d6e8307df56f1b92be4166e65683fd5 to your computer and use it in GitHub Desktop.
Save bucho666/3d6e8307df56f1b92be4166e65683fd5 to your computer and use it in GitHub Desktop.
pygameの基本
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