原创 sp4
def init_boxs_pixel_x_y_relative_BOARD(): boxs = [] for i in range(NUMBOXHORIZONTAL): vert_boxs = []
原创 sp9
elif event.type == KEYUP: lives -= 1 key_p
原创 f5
def create_game(): s = socket.socket(socket.AF_INET, socket.SOCK_STREA
原创 f3
def around_check(cross,i,j): #print i,j if i+4 <= NUMLINESHORIZONT
原创 f8
if Lock == False: #i,j,x,y = get_position_clicked(CR
原创 f2
def init_crosspos(CROSSPOS): for i in range(NUMLINESHORIZONTAL): center_x = BOARDLEFT + BOXSIZE + i*BOXSIZ
原创 f6
def main(): global FPS,BASICFONT,BASICFONTSIZE FPSCLOCK = pygame.t
原创 f9
while not Sended: for event in pygame.eve
原创 camera2
class World: pass class Camera: def __init__(self,x,y): self.x = x self.y = y def follow(se
原创 camera1
#coding=utf-8 from pygame.locals import * from pygame import Surface import pygame import sys import random from pygame
原创 camera5
def main(): global FPSCLOCK FPSCLOCK = pygame.time.Clock() ca
原创 sp6
def is_valid_move(move): global BLANK if move == LEFT: if BLANK[0] >= NUMBOXHORIZONTAL - 1:
原创 camera3
if direction == RIGHT: if self.x < WORLDWIDTH - WINDOWWIDTH
原创 sp7
def shuffle_boxs(boxs,num_moves): global BLANK,ALLMOVES moves_gen
原创 sp11--cheat
def cheat(boxs): print "cheat mode on" cheat_move = "" for mov