-
俄罗斯方块,经典游戏。
其中的主要逻辑有:
(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
-
32对光电管的红外寻线板,包括一些滤波算法,在AVR单片机上使用...
32对光电管的红外寻线板,包括一些滤波算法,在AVR单片机上使用-32 pairs of infrared photocell Hunt board, including some filtering algorithms used in the AVR Microcontroller
- 2022-08-08 12:57:24下载
- 积分:1
-
c语言做的课程设计,通过实现二叉树来对书籍进行操作
c语言做的课程设计,通过实现二叉树来对书籍进行操作-c language to the curriculum design, through the realization of a binary tree to operate on the books
- 2023-06-28 10:55:03下载
- 积分:1
-
学生旷课记录模拟,建立了一个学生类,记录学生旷课次数
学生旷课记录模拟,建立了一个学生类,记录学生旷课次数-Student absenteeism record simulation, students set up a category,
- 2022-02-26 20:10:45下载
- 积分:1
-
microsoft windows This is the ms05
这就是microsoft windows的ms05-047的漏洞利用代码-microsoft windows This is the ms05- 047 use code loopholes
- 2022-05-09 01:24:39下载
- 积分:1
-
* Has a debug LED, button, digital control verilog procedures, and debugging in...
*先后调试了LED,按键,数码管的verilog程序,并在实验板上面调试成功!学习FPGA是一个漫长的过程,但是我必须得坚持!前途光明,道路崎岖!
这次在垃圾堆(我工作台下面的抽屉和柜子,呵呵)里面搜索了一个以前用C8051F020作的一个单片机 最小系统,其中有一个PS2的数字小键盘,于是马上鼓捣了一下,复习了一下PS2传输数据的规则,其实还是比较简单的,所以很快就把程序搞定,并在电路板上运行正常!!!
-* Has a debug LED, button, digital control verilog procedures, and debugging in the experiment above board success! FPGA is a long learning process, but I have to insist! A bright future, roads and rugged! In the garbage (I workbench drawers and cabinets below, huh, huh) search inside a previously C8051F020 minimum for a single-chip systems, which have a small number of PS2 keyboard, then immediately鼓捣, then review the PS2 data about the rules, in fact, relatively simple procedures so they get very quickly, and in the normal operation of the circuit board! ! !
- 2022-02-13 14:46:38下载
- 积分:1
-
韦根感应IC卡读写器PCB图,成熟产品,已经用于销售,单片机采用STC89C58RD+,读写模块为RC5...
韦根感应IC卡读写器PCB图,成熟产品,已经用于销售,单片机采用STC89C58RD+,读写模块为RC5-Wiegand sensor IC card reader PCB map, mature product that has been used for sales, single-chip microcomputer used STC89C58RD+, Read and write modules for RC5
- 2022-11-26 10:35:03下载
- 积分:1
-
与成熟的传统门户不同,博客门户是基于很多新兴以及还将不断涌现的新技术,因此它的实现和表达方式仍在摸索。...
与成熟的传统门户不同,博客门户是基于很多新兴以及还将不断涌现的新技术,因此它的实现和表达方式仍在摸索。-And maturity of the traditional gateway to different blog portal is based on the many emerging and will continue to emerge of new technologies, so its realization and expression are still exploring.
- 2023-06-11 11:35:03下载
- 积分:1
-
AVR driver for laser LED
AVR driver for laser LED
- 2022-01-26 06:20:06下载
- 积分:1
-
一个高级白领的职场亲历
读懂了别人的经验,也就缩短了你积累的过程,使你迸发的更快、更精彩!...
不成熟不要紧--一个高级白领的职场亲历
读懂了别人的经验,也就缩短了你积累的过程,使你迸发的更快、更精彩!-Immaturity does not matter- a high-level white-collar job market witnessed understands the experience of others, you also reduce the accumulation process, and make you burst out of the faster, more exciting!
- 2023-04-19 15:10:03下载
- 积分:1