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

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

于 2022-02-20 发布 文件大小:4.01 kB
0 263
下载积分: 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 个回复

  • ADV7171是目前功能最全面的视频编码芯片,本程序完成对其的初始化设置功能。...
    ADV7171是目前功能最全面的视频编码芯片,本程序完成对其的初始化设置功能。-ADV7171 is currently the most comprehensive video encoder chip, the process has completed its initialization settings.
    2022-03-29 10:26:24下载
    积分:1
  • 一个简单的类图编辑器
    A simple class diagram editor
    2022-11-07 22:00:04下载
    积分:1
  • 摄影测量过程中,进行相片坐标的内定向程序,由框标坐标系转换为像平面坐标系...
    摄影测量过程中,进行相片坐标的内定向程序,由框标坐标系转换为像平面坐标系-photogrammetry and remote sensing ,inverse the coordinate
    2023-05-22 23:55:04下载
    积分:1
  • Circular Buffer Example
    Circular Buffer Example
    2022-06-01 03:51:36下载
    积分:1
  • 计算机系统结构实现记分牌算法模拟器
    计算机系统结构中实现记分牌算法的一个模拟器-computer system architecture to achieve Scoreboard an algorithm simulator
    2022-02-05 14:49:14下载
    积分:1
  • 这是C #使车辆管理系统的底层开发,…
    这个是用C#做底层开发车辆管理系统,代码运行效率高-This is the C# Make the bottom of the development of vehicle management system, code running efficient
    2022-03-18 04:19:15下载
    积分:1
  • CSharp的MDI窗口事例
    CSharp的MDI窗口事例-CSharp examples of the MDI window
    2022-06-16 16:19:54下载
    积分:1
  • procedures purpose : to bring in a maze of arbitrary size, with a stack get out...
    程序目的: 输入一个任意大小的迷宫,用栈求出一条走出迷宫的路径,并 显示在屏幕上。 程序实现: 可以实现载入迷宫和保存迷宫,附带文件中有4个测试迷宫路径的 文件test1~4.dd。请将这些文件拷贝到TC当前目录下,或者在载 入时写明完全路径。由于屏幕大小的限制,当用户自己输入迷宫 时一定要注意:迷宫大小是有限制的,不小于4*3,不大于30*20。 否则会出现错误信息。输入开始时全是墙,用上下左右键移动, 用Del键删除墙,形成通路,用Enter键添加墙。输入结束时可以 将迷宫保存下来,以dd为扩展名。输入完毕时用F9键来得到结果, 找到路径时,屏幕下方会出现Path found,否则出现Path not found。 程序经Turbo C 2.0编译调试成功。运行时不用添加任何运行库。 不可以在VC上编译。-procedures purpose : to bring in a maze of arbitrary size, with a stack get out of the maze of trails and on the screen. Program : can achieve and preserve the printed maze maze, the accompanying documents were four test maze of trails to document test1 4.dd. I would be grateful if those files are copied to the TC current directory, or in the state when fully contained path. Due to restrictions on the size of the screen when the user input labyrinth must pay attention to : the size of the maze is a restriction, not less than 4* 3, not more than 30* 20. Otherwise there will be a wrong message. At the beginning of the importation of a
    2022-07-05 03:20:50下载
    积分:1
  • 通过,可以绑定DZ,UC,等一系列产品。
    通行证,可绑定dz,uc,等一系列产品。-Passes, can be bound dz, uc, and a series of products.
    2022-08-19 05:23:51下载
    积分:1
  • 计算N!的程序(可计算到1000)
    计算N!的程序(可计算到1000)-calculated N! Procedure (CGE to 1000)
    2022-06-15 07:28:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载