-
俄罗斯方块,经典游戏。
其中的主要逻辑有:
(1)由于c的随机性函数不好,所以每次游戏开始根据bios时间设置种子。
(2)得分...
俄罗斯方块,经典游戏。
其中的主要逻辑有:
(1)由于c的随机性函数不好,所以每次游戏开始根据bios时间设置种子。
(2)得分越高,方块下降速度越快(每200分为单位)。
(3)每下落一个方块加1分,每消除一行加10分,两行加30分,三行加70分,四行加150分。初试分数为100分。
游戏控制:
up-旋转;空格-下落到底; 左右下方向键-控制方向。P-开始或暂停游戏。 ESC-退出。
特点:
(1)由于tc不支持中文,所以基本都是英文注释。
(2)函数命名尽可能规范的表达其内部处理目的和过程。
(3)代码加上注释仅有577行。(我下载过的两个俄罗斯方块代码一个在1087行,一个在993行,我的比它们代码少)。
(4)除了消除空格时算法比较复杂,其他算法都比较简单易读。
(5)绘图效率和局部代码效率扔有待提高。
(6)FrameTime参数可能依据不同硬件环境进行具体设置,InitGame需要正确的TC路径。-Tetris, classic games.
- 2022-02-20 12:56:31下载
- 积分:1
-
空时正交编码源程序,参考文献: V.Tarokh,H. Jafarkhani,and A. R. Calderbank "Space...
空时正交编码源程序,参考文献: V.Tarokh,H. Jafarkhani,and A. R. Calderbank "Space-Time Codes from
%Orthogonal Designs",IEEE Trans. Inform. Theory VOL. 45,NO. 5,JULY 1-orthogonal space-time coding source, References : V. Tarokh, H. Jafarkhani. and A. R. Calderbank, "Space-Time Codes from Or% thogonal Designs " IEEE Trans. Inform. Theory VOL. 45, NO. 5. JULY 1
- 2022-02-07 09:11:46下载
- 积分:1
-
Maze Find a path through the maze to any space character in the perimeter of the...
走迷宫 Find a path through the maze to any space character in the perimeter of the maze. Paths through the maze are denoted by a space character and walls by any other non white-space character (apart from . characters). -Maze Find a path through the maze to any space character in the perimeter of the maze. Paths through the maze are denoted by a space character and walls by any other non white-space character (apart from. Characters).
- 2022-12-29 19:05:03下载
- 积分:1
-
随机序列发生器,是一个m序列,生成函数都写在里面,位宽为4,可以改变!...
随机序列发生器,是一个m序列,生成函数都写在里面,位宽为4,可以改变!-random sequence generator, m is a sequence, generating function will be included in the inside, for four bit-can be changed!
- 2022-02-01 07:00:23下载
- 积分:1
-
分形维数的估算软件FD3,C++源代码,具有很好的学习价值,是一切分形科学工作的基础。...
分形维数的估算软件FD3,C++源代码,具有很好的学习价值,是一切分形科学工作的基础。-fractal dimension estimation software FD3, C source code, with good learning value of all fractal science work.
- 2022-07-02 21:47:40下载
- 积分:1
-
c++一群性质相近同的「东西」,如果译名一贯,阅读的感觉就很好。
一贯性的术语,扩充性高,延伸性高,系统化高。...
c++一群性质相近同的「东西」,如果译名一贯,阅读的感觉就很好。
一贯性的术语,扩充性高,延伸性高,系统化高。-c with a group of similar nature "things", if consistent translation, reading the feeling is very good. The consistency of terminology, scalable, extensible, highly systematized.
- 2022-06-14 07:09:01下载
- 积分:1
-
本系统采用NXP公司的ARM7处理器LPC2103为控制核心,实现智能电子秤的控制功能,原理图方案。...
本系统采用NXP公司的ARM7处理器LPC2103为控制核心,实现智能电子秤的控制功能,原理图方案。-The system uses NXP s LPC2103 for the control of ARM7 processor core, intelligent electronic scale control functions.
- 2022-12-07 03:05:04下载
- 积分:1
-
VB is a preparation of a bank with ATM machine transactions
是一个用VB编写得银行ATM机交易的程序-VB is a preparation of a bank with ATM machine transactions
- 2022-03-18 05:27:30下载
- 积分:1
-
动平衡相关算法 本程序介绍了一些与旋转机械动平衡相关方面的算法...
动平衡相关算法 本程序介绍了一些与旋转机械动平衡相关方面的算法 -balancing algorithms on the procedures with a number of rotating machinery related to the balancing algorithm
- 2022-03-04 03:04:52下载
- 积分:1
-
资产管理的软件,基于PHP/mysql/linux下的开源资产管理的软件
资产管理的软件,基于PHP/mysql/linux下的开源资产管理的软件-Asset management software, based on PHP/mysql
- 2022-08-15 02:43:18下载
- 积分:1