-
俄罗斯方块,经典游戏。
其中的主要逻辑有:
(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
-
讯雷是下载工具,它在我的周围很流行,在我认为它很方便,实用。...
讯雷是下载工具,它在我的周围很流行,在我认为它很方便,实用。--- mine is to download tool, in my very popular around, I think it is very convenient and practical.
- 2022-06-15 19:37:34下载
- 积分:1
-
vc write tanks Maze procedure
vc写的坦克走迷宫程序-vc write tanks Maze procedure
- 2023-08-16 00:50:03下载
- 积分:1
-
游戏规则
目的:在本游戏中,你将作为一名裁缝,将尽可能多的纽扣穿成
一个闭合的路线。游戏初始有 15 个纽扣,随着时间的增
加,纽扣数目...
游戏规则
目的:在本游戏中,你将作为一名裁缝,将尽可能多的纽扣穿成
一个闭合的路线。游戏初始有 15 个纽扣,随着时间的增
加,纽扣数目也增加,当达到70个时游戏即结束。
规则:只能在有纽扣的点穿线,且只能在水平方向或竖直方向穿
线。线可交叉,但有纽扣的点不能交叉连接。
秘诀:要尽可能使连线长且该连线上的纽扣数多。-purpose of the rules of the game : In the game, you will act as a tailor, as much as a button to wear closed routes. Initial games are 15 buttons, with the increase in time, increase the number of buttons, reached 70 at the end of that game. Rules : only when there is the point of threading button, and then only in the horizontal direction or vertical direction of threading. Cross-line, but the point Button can cross-connect. The secret : To the extent possible, but the long-line connections on the button a few more.
- 2022-07-08 05:58:19下载
- 积分:1
-
网络蜘蛛源码发展套件,有源代码和测试例子,用java实现的
网络蜘蛛源码发展套件,有源代码和测试例子,用java实现的-network spider-source development kit, the active code and test case, with the realization of java
- 2023-05-04 20:35:03下载
- 积分:1
-
一种涡轮增压器的完整性输入和输出管理系统
一个在Turbo C中使用的完整的DOS输入输出管理系统-a Turbo C in the integrity of the DOS input and output management system
- 2023-06-22 17:10:04下载
- 积分:1
-
小波域数字图像水印算法MATLAB实现代码
小波域数字图像水印算法MATLAB实现代码-wavelet domain digital image watermarking algorithm in MATLAB code
- 2022-08-07 15:29:02下载
- 积分:1
-
Atmel ATMEGA单片机bootloader。它作为一个STK500板可…
Bootloader for Atmel Atmega microcontroller. It act as a STK500 board and can be used from within avrstudio.
- 2023-03-20 15:15:04下载
- 积分:1
-
WindowsMobile注册表查看器,十分实用。
WindowsMobile注册表查看器,十分实用。-Windows registry viewer, very useful.
- 2022-07-18 20:41:20下载
- 积分:1
-
清华紫光twain扫描仪编程接口范例
清华紫光twain扫描仪编程接口范例- Qinghua visual purple twain scanner programming connection
model
- 2023-09-06 15:15:03下载
- 积分:1