登录
首页 » 其他项目 » 俄罗斯方块,经典游戏。 其中的主要逻辑有:   (1)由于c的随机性函数不好,所以每次游戏开始根据bios时间设置种子。   (2)得分...

俄罗斯方块,经典游戏。 其中的主要逻辑有:   (1)由于c的随机性函数不好,所以每次游戏开始根据bios时间设置种子。   (2)得分...

于 2022-02-20 发布 文件大小:4.01 kB
0 216
下载积分: 2 下载次数: 1

代码说明:

俄罗斯方块,经典游戏。 其中的主要逻辑有:   (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.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这是一个可以画出马尔萨斯引力线图的源程序.可以在vc环境下运行....
    这是一个可以画出马尔萨斯引力线图的源程序.可以在vc环境下运行.-it to be a paint Malthus gravity map of the source. Vc can run under.
    2023-05-28 00:35:03下载
    积分:1
  • CADENCE的ALLERGO如果用过的话,相信这个东西是你所需要的,是封装生成工具,会带来很大的方便。...
    CADENCE的ALLERGO如果用过的话,相信这个东西是你所需要的,他是封装生成工具,会带来很大的方便。-magnitude of ALLERGO if used, I believe this is something you need, He is Packaging generation instruments will bring great convenience.
    2022-07-14 23:32:53下载
    积分:1
  • for using MFRC500 chip you need to communication protocol
    for using MFRC500 chip you need to communication protocol
    2022-03-09 22:05:42下载
    积分:1
  • 经典的数据结构课件,适合教学或自学用 这是我们上课时老师用的课件,感觉很好,我们也都学得不错,适合教学和自学用...
    经典的数据结构课件,适合教学或自学用 这是我们上课时老师用的课件,感觉很好,我们也都学得不错,适合教学和自学用 -经典的数据结构课件,适合教学或自学用 这是我们上课时老师用的课件^^^^^^
    2023-04-22 12:40:04下载
    积分:1
  • 本课程结束的课程设计:浏览器程序设计。注:…
    此为本人期末的课程设计VC设计:浏览器程序设计。注:本源码用Word文档存放。 简介内容:随着互联网在世界范围的广泛应用,WWW(World Wide Web,万维网)也日益成为互联网上信息交流不可缺少的工具。它是一种以HTTP(HyperText Tranfer Protocol,超文本传输协议)为基础,使用HTML(HypeText Markup Language,超文本标记语言)编写的有若干Web网页构筑而成的世界。 本课程设计要求设计类似于微软的IE浏览器,具备一个浏览器的基本功能,可以完成网上冲浪的任务。 设计 Visual C++为我们提供了一个ChtmlView类,有了它。可以很方便地设计浏览器。-this as the end of the course design VC Design : browser program design. Note : This source used Word documents stored. Introduction : As the Internet in a wide range of applications worldwide, WWW (World Wide Web, the World Wide Web) has increasingly become the exchange of information on the Internet an indispensable tool. It is a form HTTP (HyperText Tranfer Protocol, Hypertext Transfer Protocol) based on the use of HTML (HypeText Markup Language, HTML) prepared in a number of Web pages built by the world. The curriculum design requirements similar to the design of Microsoft"s Internet Explorer, a browser with the basic functions can be completed online surfing tasks. Design
    2023-05-13 14:45:03下载
    积分:1
  • 一个模拟程序,起飞和降落的机场,飞机运动的作用。
    一个模拟飞机场升降的程序,飞机的升降数目符合泊松分布-A simulation program taking off and landing airport, aircraft movements is in accordance with Poisson distribution
    2022-03-01 13:29:53下载
    积分:1
  • 学习液晶非常好的书,里面从原理到应用都有非常详细的介绍...
    学习液晶非常好的书,里面从原理到应用都有非常详细的介绍-LCD very good study, from the inside of the application of the principle, there are very detailed account of the
    2022-01-28 18:44:10下载
    积分:1
  • 离散优化问题的启发式设计与实现,…
    When designing and implementing heuristics for discrete optimization problems, there are many choices to be made. These include search paradigms, search mechanisms, search parameters, test sets, etc. Often these choices are treated as independent of each other, even though most researchers acknowledge some interdependence between the diff erent search mechanisms and associated para- meter settings. Our experience is that the search mechanisms and parameters often interact, and at times in unforeseen ways. This is a diffi cult problem to disentangle, and often even to discover.
    2022-06-20 23:25:41下载
    积分:1
  • 数据结构与算法分析:C语言描述(英文版)习题答案
    数据结构与算法分析:C语言描述第二版 的习题答案本书中含有对Addison-Wesley 著的课本第二版大多数习题的答案 .目录1. Chapter 1: 介绍  12. Chapter 2: 算法分析  43. Chapter 3: 列、栈和队列  74. Chapter 4: 树 145. Chapter 5: 哈希  256. Chapter 6: 优先队列 (堆) . 297. Chapter 7: 筛选 .. 368. Chapter 8: 分离集 ADT  429. Chapter 9: 图形算法  4510. Chapter 10: 算法设计技术 . 5411. Chapter 11: 分摊分析 6312. Chapter 12: 高级数据结构和实现 .. 66
    2022-03-01 04:41:42下载
    积分:1
  • The latest Snake game, added a certain probability of Apple' s changes into m...
    最新的贪吃蛇游戏,添加了苹果有一定概率变为地雷的改动-The latest Snake game, added a certain probability of Apple" s changes into mine
    2022-04-10 10:58:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载