登录
首页 » 其他项目 » 贪吃蛇游戏代码

贪吃蛇游戏代码

于 2023-02-15 发布 文件大小:1.14 kB
0 202
下载积分: 2 下载次数: 1

代码说明:

应用背景还记得玩不厌的贪吃蛇吧,这一游戏虽操作简单,但是具有绝佳的可玩性,对于这一款经典游戏,使用C++编译完成了,感兴趣的朋友可以试试,效果还不错。关键技术其中用到的都是较使用的技术处理手段,墙的建立与运动函数处理,键盘识别,分数累计,运动块添加等,对于程序的编写并不难,但是其中的几种处理手段比较经典,适合初学者使用

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

发表评论

0 个回复

  • 很好的英语学习资源,对词汇量的提高十分有益。
    很好的英语学习资源,对词汇量的提高十分有益。-Very good English learning resources, improve vocabulary and useful.
    2022-08-24 04:00:27下载
    积分:1
  • 这是一种很方便的小程序,可在桌面上写字,这样您就可以很容易看到,你今天获近一段时间内的工作安排!...
    这是一种很方便的小程序,可在桌面上写字,这样您就可以很容易看到,你今天获近一段时间内的工作安排!-this is a very convenient small procedure can write on the table, so you can easily see, Recently you today, the organization of work!
    2023-06-27 03:20:03下载
    积分:1
  • CoStream 无缓存 Pipe Stream
    翻译 maninwest@Codeforge 作者:Sergey Nozhenko@CodeProject介绍:CoStream 是的 PipeStream 无缓存替代选择。背景在生产者/消费者模式下,如果我们知道一个消费者确定要读取stream 读到结束或者如果不能读到结束就处理,那么同步stream 就不需要维护自己的内部缓存,完全依赖于 Read 方法调用者的缓存。在Read 方法中,CoStream 保存到目标缓存的引用并等待,直至完成。而 write 方法从源缓存中复制数据到目标缓存,会给读取者发送信号缓存已准备就绪或者需要等待期 Read 调用(如果来源缓存中有未消耗的数据剩下或者返回到Writer 调用者)。使用代码CoStream 不能在单个话题中使用。应该至少有两个,读取和写入话题。两者都需要关闭(或处理)stream,一边对方可以继续到结束。测试程序在  XmlDocument 中加载了一些 xml 文件。然后将其写入到 CoStream 的实例Static CoStream costream = new TestCoStream(); static string outpath; static void Main(string[] args) { // ... XmlDocument doc = new XmlDocument(); doc.Load(args[0]); outpath = args[1]; var reading_thread = new Thread(ReaderBody); reading_thread.Start(); using (var pipe = XmlWriter.Create(costream, new XmlWriterSettings { CloseOutput = true })) doc.Save(pipe); reading_thre
    2022-03-17 17:34:17下载
    积分:1
  • This procedure implements a few simple procedures for the solution time, but als...
    本程序实现了一个简单的数读程序的解决方法,还不错的。-This procedure implements a few simple procedures for the solution time, but also good.
    2023-03-18 00:15:03下载
    积分:1
  • 一个用DirectX开发的简单而强大的游戏引擎
    一个用DirectX开发的简单而强大的游戏引擎-Using DirectX to develop a simple and powerful game engine
    2022-08-14 10:44:40下载
    积分:1
  • 飞思卡尔试跑程序
    飞思卡尔电磁试跑程序,六个传感器,很牛的底文件库,让电磁车飞起来,不一样的感觉,不一样的代码
    2022-03-18 20:14:43下载
    积分:1
  • 这是一个客户订单提交系统的HTML文件,在旅行社中专用.
    这是一个客户订单提交系统的HTML文件,在旅行社中专用.-This is a customer orders for submission of HTML documents in the travel agencies dedicated.
    2022-10-23 19:50:02下载
    积分:1
  • Euler公式与改进Euler比较。
    Euler公式与改进Euler比较。-Euler formula and improve Euler comparison.
    2022-07-02 18:34:40下载
    积分:1
  • 2022-01-31 05:39:41下载
    积分:1
  • (1) 设计一个程序,用于根据用户输入的命令行参数数量来计算长方形、正方形、三角形的面积。如果输入的参数为一个、二个、三个则它们应分别对应正方形、长方形、三角形...
    (1) 设计一个程序,用于根据用户输入的命令行参数数量来计算长方形、正方形、三角形的面积。如果输入的参数为一个、二个、三个则它们应分别对应正方形、长方形、三角形,如果没有参数,则通过异常处理方法现实错误消息。(用于计算面积的方法是一个重载的方法。提示:定义一个抽象的父类,并提供一个抽象的方法area(). 再派生出三个子类,重写area()方法,然后在main方法中用多态来实现具体的面积函数的调用)。-(1) design a program based on user input for the command line parameters to calculate the number of rectangular, square, triangle area. If the input parameter is one, two, three then they should correspond to a square, rectangle, triangle, without parameters, exception handling through the real error message. (Used to calculate the area is an overloaded method. Note: the definition of an abstract parent class, and provides an abstract method area (). To send birth to three sub-classes override area () method, and then in main method using multi-state to achieve a specific area of a function call).
    2022-07-11 07:56:19下载
    积分:1
  • 696516资源总数
  • 106450会员总数
  • 5今日下载