Created
April 1, 2016 13:12
-
-
Save ryesalvador/133c1012dad9a12e742831b406706e21 to your computer and use it in GitHub Desktop.
Source code for the "Make a Python 2D game using Pygame Tutorial #1" - https://youtu.be/adiRAQbVz_w
This file contains hidden or 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 | |
SCREEN_WIDTH = 400 | |
SCREEN_HEIGHT = 350 | |
WHITE = (255, 255, 255) | |
pygame.init() | |
screen = pygame.display.set_mode([SCREEN_WIDTH, SCREEN_HEIGHT]) | |
pygame.display.set_caption('Hello, World!') | |
screen.fill(WHITE) | |
pygame.display.update() | |
pygame.time.wait(4000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment