Skip to content

Instantly share code, notes, and snippets.

View mjnguyen's full-sized avatar

Michael Nguyen mjnguyen

  • Independent Developer
  • San Jose
View GitHub Profile
@mjnguyen
mjnguyen / blocks3.py
Created October 4, 2017 01:29
move the player
import pygame
import random
BLACK = ( 0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
class Block(pygame.sprite.Sprite):
def __init__(self, color, width, height):