Skip to content

Instantly share code, notes, and snippets.

@ryesalvador
Created April 1, 2016 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryesalvador/133c1012dad9a12e742831b406706e21 to your computer and use it in GitHub Desktop.
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
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