Skip to content

Instantly share code, notes, and snippets.

@wibbia
wibbia / Tanks.py
Last active August 29, 2015 14:01
import pygame, sys, time, math
from pygame.locals import *
pygame.init()
size = width, height = 1000,600
black = 0,0,0
brown = 168,132,32
grey = 119,119,119
import pygame, sys, time, math, random, os
from pygame.locals import *
pygame.init()
size = width, height = 1000,600
black = 0,0,0
brown = 168,132,32
grey = 119,119,119
@wibbia
wibbia / Pong
Created October 30, 2014 14:16
import pygame, sys, time, math
from pygame.locals import *
pygame.init()
size = width, height = 1000,600
black = 0,0,0
brown = 168,132,32
grey = 119,119,119
import pygame, sys, time, math, random, os
from pygame.locals import *
pygame.init()
size = width, height = 1150,600
black = 0,0,0
brown = 168,132,32
grey = 119,119,119
import random
print("Poem Generator")
noun = open("Words\Boun.txt", "r")
n = noun.readlines()
noun.close()
verb = open("Words\Berbs.txt", "r")
v = verb.readlines()
verb.close()
import pygame, sys, time
from pygame.locals import *
pygame.init()
white = 255,255,255
red = 255,0,0
black = 0,0,0
blue = 0,0,255
Orange = 255,185,0
package com.example.jim.tictactoe;
/**
* Created by Jim on 2014/11/1
*/
public class Logic {
public static final int PLAYER_X = 1;
public static final int PLAYER_O = 0;
public static final int EMPTY = -1;
public static final int PLAYER_X_WIN = 2;
public static final int PLAYER_O_WIN = 3;
import pygame, sys, time
from pygame.locals import *
## Initialize Pygame
pygame.init()
## Set Values for screen
size = width, height = 1000, 600
s = pygame.display.set_mode(size)
@wibbia
wibbia / Paino.py
Last active August 29, 2015 14:19
import pygame, sys, winsound, time
pygame.init()
size = width, height = 865, 365
s = pygame.display.set_mode(size)
class Notes(pygame.sprite.Sprite):
def __init__(self, x, y, colour, sound_control):
@wibbia
wibbia / Tetris
Last active August 29, 2015 14:21
import pygame, sys, random, time
from pygame.locals import *
pygame.init()
size = width, height = 400,600
screen = pygame.display.set_mode(size)
picked_letter = []