Skip to content

Instantly share code, notes, and snippets.

View hortonew's full-sized avatar

Erik Horton hortonew

View GitHub Profile
@hortonew
hortonew / pygame2_clearScreen.py
Last active December 10, 2015 23:08
Pygame - Clear Screen
import pygame
pygame.init()
screen = pygame.display.set_mode((800,600))
if __name__ == "__main__":
while True:
screen.fill((0,0,0))
pygame.display.flip()
@hortonew
hortonew / pyglet1_blankWindow.py
Created January 11, 2013 00:25
Pyglet - Get a blank window to come up
import pyglet
screen = pyglet.window.Window(800,600)
if __name__ == "__main__":
pyglet.app.run()
@hortonew
hortonew / pygame1_blankWindow.py
Created January 11, 2013 00:07
Pygame - Get a blank window to come up
import pygame
pygame.init()
screen = pygame.display.set_mode((800,600))
if __name__ == "__main__":
while True:
pygame.display.flip()