tetrislib.h
来自「compiled for AtMega32 The source, to com」· C头文件 代码 · 共 30 行
H
30 行
#ifndef TETRISLIB_H
#define TETRISLIB_H
// Call tetris_init at startup
void tetris_init(void);
// Call the handler with 100 Hz, for game update and graphics rendering
void tetris_handler(void);
// Modify brick moves the falling brick dx cubes and/or rotates
void tetris_modify_brick(unsigned char dx, unsigned char rot);
// tetris_speed defines the speed of the falling brick
extern unsigned char tetris_speed;
// Set these bitflags in tetris_mode for:
#define TETRIS_MODE_SPEEDUP 1 // falling brick speedup
#define TETRIS_MODE_GRAVITY 2 // for real gravity. If not set, naive gravity
extern unsigned char tetris_mode;
// Score keeping:
// Total number of lines zapped
extern unsigned short tetris_stats_lines;
// Number of zap-rounds
extern unsigned short tetris_stats_zapcount;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?