Download Python and Pygame 3.4: https://www.python.org/downloads/ http://www.pygame.org/download.shtml Here's the code incase you're lazy: import pygame, sys black = (0,0,0) white = (255,255,255) pygame.init() screen = pygame.display.set_mode((400,400)) pygame.display.set_caption('YouTube') clock = pygame.time.Clock() while True: if pygame.event.get(pygame.QUIT): pygame.quit(); sys.exit() screen.fill(white) pygame.draw.rect(screen, black, (100,100,200,200)) pygame.display.flip() clock.tick(60) Hope you enjoy ^_^
Python / Pygame - Tutorial Part 1 (For beginners) - YouTube | |
53 Likes | 53 Dislikes |
5,049 views views | 1,842 followers |
Gaming | Upload TimePublished on 24 Jan 2015 |
Không có nhận xét nào:
Đăng nhận xét