Skip to content

Instantly share code, notes, and snippets.

import pygame,time,random,sys,copy,os;from pygame.locals import *;t2=0;nor=0;pg=pygame;pd=pg.display;cdc=copy.deepcopy;pc=[[[1,1],[1,1]],[[1,0],[1,0],[1,1]],[[0,1],[0,1],[1,1]],[[1],[1],[1],[1]],[[0,1,1],[1,1,0]],[[1,1,0],[0,1,1]],[[1,1,1],[0,1,0]]];cols=[(0,0,0),(100,100,100),(10,100,225),(0,150,220),(0,220,150),(60,200,10),(180,210,5),(210,180,10),(100,200,170)];pg.init();pd.set_mode((320,240),FULLSCREEN);sk=pd.get_surface();f=[[1]+[0 for x in range(8)]+[1] for x in range(19)]+[[1 for x in range(10)]];of=cdc(f);s=12;brt=Rect((100,0,s,s));b=-1;p=[];lc=[-9,0];t=0;bt=60;pg.key.set_repeat(200,100);rh=0;cr=[];crs=pg.Surface((8*s,s));crs.fill((255,0,0));crs.set_alpha(100);gv=-1;z=pg.font.Font("c.ttf",14);_=0;pg.mixer.music.load("t.ogg");pg.mixer.music.play(-1)
while 1:
sk.fill((0,0,0));_su=z.render("Score " + str(_),1,(255,255,255));_rect=_su.get_rect();_rect.bottomright=(310,230);sk.blit(_su,_rect)
if gv>-1:
b=10;rh=0
if not t%5:
gv-=1;f[9-gv]=[1]*10;f[10+gv]=[1]*10;t=1
if gv==0:gv=99
if b<-1:
import random
players = ["Starplayer", "Ben", "Kev", "Cris", "Runner", "Heart", "Kitty", "Jade", "Moon", "Gem", "Mo", "Ant", "Sword", "Crazy-horse", "Ellie", "Fish"]
#List of registered players
quizQuestions = [["What is CEOP?", "I/Criminal Exploration and Online Protection", "C/Child Exploitation and Online Protection", "I/Child Exploitation and Organised Protectors"],
["When you get an email from someone you do not know what should you do?", "C/Delete it and mark as spam.", "I/Reply and say hello.", "I/Forward to your friends."],
["How secret should you keep your passwords?", "C/Never give out passwords except to your parents.", "I/Give them only to your best friends.", "I/Give them to strangers."],