登录

err

于 2022-03-21 发布 文件大小:4.51 kB
0 198
下载积分: 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路径。-err

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

发表评论

0 个回复

  • 单机版中国象棋 使用windows sdk 开发 简单 易学
    单机版中国象棋 使用windows sdk 开发 简单 易学-single version of Chinese chess development of the use of windows sdk easy
    2022-09-09 03:05:03下载
    积分:1
  • 用C++开发的中国麻将游戏(单机版),可以做为学习的范例。 ―――――――――――――――――――――――――――――― 游戏的基本运行 ―――――...
    用C++开发的中国麻将游戏(单机版),可以做为学习的范例。 ―――――――――――――――――――――――――――――― 游戏的基本运行 ――――――――――――――――――――――――――-―――― 运行前会先洒色子,根据色子与庄家给各玩家初始化手中的牌 1.初始化(根据庄家和色子数给每个人发12张牌) 2.牌墙发牌给庄家(m_nActive活动状态给庄家) 3.根据活动状态玩家是否是出牌状态(m_nState==1):如果是电脑,让其思考最差的一张牌并出牌,如果是人就让其自行选择(相应时间内没出牌就自动出刚抓的新牌(m_nNewPai)) 4.根据玩家出的牌判断各玩家的优先级,优先级最大的玩家操作并把活动状态给他,(如果是人就等待其是否操作,时间内没响应就自动弃权) 5.如果有玩家操作了就返回第3步,如果没有玩家操作就进行第6步 6.如果没有玩家对刚出的牌操作就牌墙发牌给下一玩家,再返回第3步。 7.如果有人胡牌就统计分数,如果牌墙剩余的牌不到10张就流局,分数不变,游戏也结束。-C development of the Chinese game mahjong (single version), the study could serve as an example.------------------------------ The basic operation of the game------------------------------- first before running onto Boson. According Boson dealer to the player"s hands initialize a license. Initialization (according to several bankers and Boson issued to each person 12 Licensing) 2. Wall licensing licensing Makers (m_nActive activities to the state Makers) 3. According to state player of activities whether the card is the
    2022-11-30 07:30:04下载
    积分:1
  • reversi the realization of the C#
    黑白棋问题的C#的实现-reversi the realization of the C#
    2022-01-24 14:56:59下载
    积分:1
  • 您小时候玩过的纸牌游戏抽乌龟,这是用c#编写的
    您小时候玩过的纸牌游戏抽乌龟,这是用c#编写的-your child played the game of cards pumped turtle, which is prepared by the c#
    2022-02-14 12:57:28下载
    积分:1
  • 2023-05-05 05:10:02下载
    积分:1
  • a fun game type of license the source code for students small game in the design...
    一个好玩的牌类游戏源代码 对学生小游戏的设计和实现非常有帮助-a fun game type of license the source code for students small game in the design and realization of very helpful
    2022-03-19 08:44:12下载
    积分:1
  • 一个五子棋的基础小程序,可供有兴趣者参考研究,可在此基础上进一步开发。...
    一个五子棋的基础小程序,可供有兴趣者参考研究,可在此基础上进一步开发。-Gobang the basis of a small program for those interested in a reference study on this basis can be further developed.
    2022-03-14 03:36:25下载
    积分:1
  • With VC++ Preparation, operation stability, Chinese chess, game products, with r...
    用VC++编写,运行稳定,中国象棋,小游戏精品,参考了王小春的编写-With VC++ Preparation, operation stability, Chinese chess, game products, with reference to the Xiao-Chun Wang
    2022-02-04 00:17:55下载
    积分:1
  • 用TC编的五子棋程序,初学者可以参考一下
    用TC编的五子棋程序,初学者可以参考一下-TC series of the 331 procedures, beginners can take a look
    2022-01-26 03:06:30下载
    积分:1
  • Java围棋摆谱小程序(含死活计算)
    Java围棋摆谱小程序(含死活计算)-Java Go appearances small programs (including life and death)
    2023-03-27 00:25:03下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载