-
C语言写的俄罗斯方块程序
其中的主要逻辑有:
(1)由于c的随机性函数不好,所以每次游戏开始根据bios时间设置种子。
(2)得分越高,方块下降速度
C语言写的俄罗斯方块程序
其中的主要逻辑有:
(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路径。
-err
- 2023-05-30 22:10:03下载
- 积分:1
-
calulating routine for frequence , which is based on both calulating routine for...
基于PIC嵌入式系统的频率计算程序和电路的频率计算程序
- 2022-04-11 18:56:35下载
- 积分:1
-
电子小闹钟设计 带程序 原理图纸
电子小闹钟设计 带程序 原理图纸...
电子小闹钟设计 带程序 原理图纸
电子小闹钟设计 带程序 原理图纸-Electronic design with a small alarm clock program alarm clock principle of drawing a small electronic design principle with the procedure drawings
- 2022-10-19 09:35:03下载
- 积分:1
-
一个游戏,玩克林特打planew。看谁能先打吨。
一款人与客户端打飞机的人工智能游戏,,,
和美观的界面-a game that play with the clint to hit the planew .look: who can the First hit the enemy s the head of the plane
- 2022-02-10 16:33:08下载
- 积分:1
-
题目:一个5位数,判断它是不是回文数。即12321是回文数,个位与万位相同,十位与千位相同。 1.程序分析:同上...
题目:一个5位数,判断它是不是回文数。即12321是回文数,个位与万位相同,十位与千位相同。 1.程序分析:同上-Title: A 5-digit, to determine whether it was not the number palindrome. That is, 12,321 is a palindrome number of 10,000 seats with the same 10 with the same 1000. 1. Program analysis: ibid
- 2022-08-15 03:12:15下载
- 积分:1
-
数码管显示交流稳压器,使用A48单片机编写,C言语
数码管显示交流稳压器,使用A48单片机编写,C言语-Digital display AC voltage stabilizer, the use of the preparation of A48 Singlechip, C language
- 2022-07-10 12:12:55下载
- 积分:1
-
很好的汇编代码,实现学生成绩分类系统,采用子程序调用,完成学生成绩管理...
很好的汇编代码,实现学生成绩分类系统,采用子程序调用,完成学生成绩管理-good compilation of code, to achieve the performance of their students classification system used subroutine call, students complete performance management
- 2022-01-30 18:20:40下载
- 积分:1
-
本程序实现标准浮点数除法。
入口参数:被除数在ARGBH1:ARGBL1:EXP1中,除数在ARGBH2:ARGBL2:EXP2中。
出口参数:结果在A...
本程序实现标准浮点数除法。
入口参数:被除数在ARGBH1:ARGBL1:EXP1中,除数在ARGBH2:ARGBL2:EXP2中。
出口参数:结果在ARGBH1:ARGBL1:EXP1中。-This procedure to achieve the standard floating-point division. Entrance parameters: dividend in ARGBH1: ARGBL1: EXP1, the divisor in ARGBH2: ARGBL2: EXP2 in. Export parameters: the results of ARGBH1: ARGBL1: EXP1 in.
- 2022-02-04 10:30:33下载
- 积分:1
-
用汇编编一个三角形程序
用汇编编一个三角形程序-compilation series with a triangular process
- 2023-03-17 14:40:04下载
- 积分:1
-
关于用电子时钟的编程设计,对课程设计有重要用处
关于用电子时钟的编程设计,对课程设计有重要用处-electronic clock on the program design, the design of the curriculum is important useless!
- 2023-09-07 12:05:04下载
- 积分:1