This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 DIM C(17,17) | |
20 D3=0 | |
30 D7=0 | |
40 IF F=1 THEN D3=D3+1 | |
50 IF F=2 THEN D7=D7+1 | |
60 D0=2 | |
70 D1=2 | |
80 D2=1 | |
90 D4=15 | |
100 D5=15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import os | |
import random | |
import sys | |
import pygame | |
from pygame.locals import * | |
# 初始位置. | |
CONST_STARTING_1P_POS_X = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import os | |
import random | |
import sys | |
import pygame | |
from pygame.locals import * | |
from drew import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
#------------------------------------------------------------------------- | |
# 畫Box. | |
#------------------------------------------------------------------------- | |
class Box(object): | |
#------------------------------------------------------------------------- | |
# 建構式. | |
# pygame : pygame. | |
# canvas : 畫佈. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import os, sys, random | |
import time | |
import pygame | |
from pygame.locals import * | |
from drew import * | |
# 常數-方塊快速下降速度. | |
BRICK_DROP_RAPIDLY = 0.01 | |
# 常數-方塊正常下降速度. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
#------------------------------------------------------------------------- | |
# 畫Box. | |
#------------------------------------------------------------------------- | |
class Box(object): | |
#------------------------------------------------------------------------- | |
# 建構式. | |
# pygame : pygame. | |
# canvas : 畫佈. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import random, sys, os, pygame | |
from pygame.locals import * | |
from drewEngine import * | |
#------------------------------------------------------------------------- | |
# 常數. | |
#------------------------------------------------------------------------- | |
# 顏色. | |
CONST_BLOCK = (0,0,0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
#------------------------------------------------------------------------- | |
# 點陣動畫系統. | |
#------------------------------------------------------------------------- | |
class Sprite(object): | |
#------------------------------------------------------------------------- | |
# 建構式. | |
# pygame : pygame. | |
# canvas : 畫佈. | |
# column : 列. |