-
俄罗斯方块,经典游戏。
其中的主要逻辑有:
(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
-
fengji2
说明: 风力发电模型,此模型较简单,可以模拟风机的功率输出,可以应用于微电网等分布式能源。(Wind power generation model, which is simple and can simulate the power output of wind turbine, can be applied to distributed energy sources such as micro-grid.)
- 2019-01-23 22:55:48下载
- 积分:1
-
jdbgjlehkajddoapdgpdjmlpdalfnenf
说明: SpyEye is Zeus s competitors, it can even remove the victim s computer in the Zeus. It is in the hacker underground market retail price of up to $ 500. Security company Damballa report, reverse engineer Xyliton break with VMProtect protection SpyEye 1.3.45, released SpyEye 1.3.45 Loader source code, it will allow malicious hackers to develop more complex and difficult to detect malicious programs. SpyEye author has released 1.3.48, an updated version is under development.
- 2020-03-27 11:04:36下载
- 积分:1
-
Apresenta??o1
this is my internship presentation
- 2020-06-21 23:40:02下载
- 积分:1
-
潮流计算节点电压
说明: 给定的运行条件有系统中各电源和负荷点的功率、枢纽点电压、平衡点的电压和相位角。待求的运行状态参量包括电网各母线节点的电压幅值和相角,以及各支路的功率分布、网络的功率损耗等(The set operating conditions included the power of each power source and load point, the pressure of the junction point, the pressure of the balance point and the phase angle.The operation conditions to be obtained included the pressure range and angle of each bus node, the power distribution of each branch, the power loss of the network, and so on)
- 2021-04-27 10:14:27下载
- 积分:1
-
新建文件夹
用spss时间序列预测得到游乐园的每天游玩人数(using time series prediction)
- 2019-07-11 20:36:06下载
- 积分:1
-
zigzag
用matlab实现zigzag扫描程序。(using Matlab achieve Zigzag scanning procedures.)
- 2006-06-18 09:15:19下载
- 积分:1
-
汽车仪表风格的Flash加载动画特效
汽车仪表风格的Flash加载动画特效,很有意思,也很有个性的Flash Loading,随着Flash短片的加载,仪表盘上的仪表针的由左向右摇摆,指针到达最右侧,表明Flash影片已经加载完成了,如示例截图所示的效果,很炫的感觉,含有Flash源文件。
- 2023-01-05 22:30:03下载
- 积分:1
-
code for Unitary ESPRIT
code for Unitary ESPRIT
- 2023-02-02 17:45:04下载
- 积分:1
-
frmOrderGoodsDetail
A greedy algorithm is a simple, intuitive algorithm that is used in optimization problems
- 2020-06-25 02:20:02下载
- 积分:1