Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- #Настройки окна
- WIDTH = 500
- HEIGHT = 500
- FPS = 60
- #Настройка цвета
- BLACK = (0,0,0)
- WHITE = (255,255,255)
- RED = (255,0,0)
- BLUE = (0,0,255)
- #Инициализация
- pygame.init()
- screen = pygame.display.set_mode((WIDTH,HEIGHT))
- clock = pygame.time.Clock()
- #Время
- lastTime = 0
- currentTime = 0
- moving = ''
- running = True
- while running:
- for i in pygame.event.get():
- if i.type == pygame.QUIT:
- running = False
- pygame.display.update()
- clock.tick(FPS)
- pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement