Documentation ¶
Index ¶
Constants ¶
View Source
const ( SIGNAL_ACTIVATE = "activate" SIGNAL_DRAW = "draw" SIGNAL_KEY_PRESS_EVENT = "key-press-event" KEY_LEFT uint = 65361 KEY_UP uint = 65362 KEY_RIGHT uint = 65363 KEY_DOWN uint = 65364 ACTION_QUIT = "app.quit" ACTION_PAUSE = "win.pause" ACTION_RESUME = "win.resume" ACTION_NEWGAME = "win.start" ACTION_ROTATE = "win.rotate" ACTION_LEFT = "win.left" ACTION_RIGHT = "win.right" ACTION_DOWN = "win.down" LABEL_PAUSE = "Pause" LABEL_RESUME = "Resume" LABEL_STARTGAME = "Start Game" LABEL_SCORE = "SCORE" UNIT_SIZE = 32 SPAN_SIZE = UNIT_SIZE - 2 )
View Source
const ( ROW = 19 COL = 11 LEVELS = 6 )
View Source
const ( STATE_ZERO = iota SATE_GAMEOVER STATE_GAMING STATE_PAUSED )
View Source
const SHAPE_SIZE = 4
Variables ¶
View Source
var ( RGB_COLOR_GRAY = Rgb{231 / 255.0, 231 / 255.0, 231 / 255.0} RGB_COLOR_BLUE = Rgb{168 / 255.0, 202 / 255.0, 1} RGB_COLOR_GREEN = Rgb{132 / 255.0, 212 / 255.0, 129 / 255.0} )
View Source
var ErrorMoving = errors.New("error moving")
View Source
var InvalidPoint = Point{0, -SHAPE_SIZE}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.