Skip to content

Instantly share code, notes, and snippets.

View AndyNovo's full-sized avatar

Andy Novocin AndyNovo

View GitHub Profile
import pygame
BLACK = (0,0,0)
RED = (255, 0, 0)
screen = pygame.display.set_mode([450, 600])
another_loop = True
clock = pygame.time.Clock()
import pygame
import random
BLACK = (0,0,0)
RED = (255, 0, 0)
WHITE = (255, 255, 255)
pygame.init()
screen = pygame.display.set_mode([450, 600])
import pygame
import random
BLACK = (0,0,0)
RED = (255, 0, 0)
WHITE = (255, 255, 255)
pygame.init()
WIDTH = 450
HEIGHT = 600
@AndyNovo
AndyNovo / mouse.py
Last active November 15, 2015 23:39
import pygame
import random
BLACK = (0,0,0)
RED = (255, 0, 0) #These tuples are RGB by the way
WHITE = (255, 255, 255)
pygame.init()
WIDTH = 450
HEIGHT = 600
import pygame
import random
BLACK = (0,0,0)
RED = (255, 0, 0) #These tuples are RGB by the way
WHITE = (255, 255, 255)
pygame.init()
WIDTH = 450
HEIGHT = 600
import pygame
import random
BLACK = (0,0,0)
pygame.init()
WIDTH = 450
HEIGHT = 600
screen = pygame.display.set_mode([WIDTH, HEIGHT])
import pygame
import random
BLACK = (0,0,0)
RED = (255, 0, 0) #These tuples are RGB by the way
WHITE = (255, 255, 255)
pygame.init()
WIDTH = 450
HEIGHT = 600
import pygame
import random
BLACK = (0,0,0)
pygame.init()
WIDTH = 450
HEIGHT = 600
screen = pygame.display.set_mode([WIDTH, HEIGHT])
import pygame
import random
from math import sin, cos, tan, asin, acos, atan, degrees
from math import radians as rad
pygame.init()
resolution = (800, 600)
screen = pygame.display.set_mode(resolution)
mousepos = [0, 0]
import pygame
import random
BLACK = (0,0,0)
pygame.init()
WIDTH = 450
HEIGHT = 600
screen = pygame.display.set_mode([WIDTH, HEIGHT])