首页 开发技术 C#     /    C#小游戏贪吃蛇源代码

C#小游戏贪吃蛇源代码

上传者: huang1hao3 | 上传时间:2019/2/6 20:14:20 | 文件大小:129KB | 文件类型:rar
C#小游戏贪吃蛇源代码
C#——小游戏:贪吃蛇源代码作者:jailuMSN:jailusd@hotmail.com开发初衷:其实早在两年前就想写一个网络版的贪食蛇游戏,无赖当时琐事颇多,耽搁了,一放就是两年。
今天吃晚饭时,鬼使神差地想到了早已夭折的贪食蛇游戏,于是决定编写这款游戏。
网络版的?算了吧,先开发单机版滴,呵呵。
开发工具/语言的选择:VistualStuido2005+C#。
虽说用C#开发游戏有点不可思议,但小弟不才,接触语言不多,就会点C#,所以没得选择,只能用C#来开发了。
架构/框架:这个,这个。


这么个小东东还用的着框架吗?放弃!游戏功能简述:开发日志:2007-5-29:  18:00-18:30:对GUI+不了解,花了半个小时学习GUI+;
PS:不知道程序中用来画图的东东是不是GUI+?反正这里指的就是如何用C#画图就对了。
18:30-19:00:花半个小时设计游戏界面;
PS:那个难看啊,怎一个土字了得!自我安慰:我注重的是功能,又不是界面,呵呵。
19:00-20:30:又花了一个半小时,初步实现以下功能:1.Snake终于跑起来了;
2.用键盘操作Snake的运动方向:上,下,左,右;
3.判断游戏结束23:45-次日00:30:SayGoodnighttothesnake!1.在游戏界面上增加一些游戏信息,如:Snake长度,捕食目标数,数度等级,当前方向等;
2.修正之前留下的Bug,加强游戏结束的判断;
3.把原本夹杂在窗体上的游戏控制代码分离到独立的类Controller中;
PS:难道受N-Tier架构侵蚀太深,比较注意业务逻辑-表现层的分离?4.到此为止,貌似这款贪食蛇游戏就算开发完成了!算算时间,不到4个小时,偷笑一下,睡觉!2007-5-30:18:00-20:30:闲着无聊,打开昨天写的Snake源代码,看看有什么东东好改的1.从类Controller分离出类Snake:Controller类主要担任控制Snake和绘制Snake,Snake主要担任Snake信息;
PS:分离这两个类,搞得头大,应该还可以进一步分类2.添加游戏得分功能及Snake移动速度的自增功能,看起来更像一款小游戏了2007-5-31: 23:30-次日1:00:六一儿童节到啦,我的第一个小游戏也完工啦,就当是送给小朋友、送给自己的六一节礼物吧! 1.增加游戏设置功能:游戏的一些基本设置可以设置面板中设置,并保存 本软件ID:1800214

文件下载

资源详情

[{"title":"(46个子文件129KB)C#小游戏贪吃蛇源代码","children":[{"title":"MySnake","children":[{"title":"MySnake","children":[{"title":"frmAbout.resx <span style='color:#111;'>5.68KB</span>","children":null,"spread":false},{"title":"frmSettings.resx <span style='color:#111;'>5.87KB</span>","children":null,"spread":false},{"title":"MySnake.csproj <span style='color:#111;'>4.09KB</span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"MySnake.pdb <span style='color:#111;'>67.50KB</span>","children":null,"spread":false},{"title":"Settings.xml <span style='color:#111;'>388B</span>","children":null,"spread":false},{"title":"MySnake.exe <span style='color:#111;'>40.00KB</span>","children":null,"spread":false},{"title":"MySnake.vshost.exe <span style='color:#111;'>5.50KB</span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"MySnake.pdb <span style='color:#111;'>63.50KB</span>","children":null,"spread":false},{"title":"Settings.xml <span style='color:#111;'>388B</span>","children":null,"spread":false},{"title":"MySnake.exe <span style='color:#111;'>40.00KB</span>","children":null,"spread":false},{"title":"MySnake.vshost.exe <span style='color:#111;'>5.50KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"frmSettings.cs <span style='color:#111;'>4.33KB</span>","children":null,"spread":false},{"title":"frmAbout.Designer.cs <span style='color:#111;'>5.24KB</span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"MySnake.pdb <span style='color:#111;'>67.50KB</span>","children":null,"spread":false},{"title":"MySnake.frmGame.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"MySnake.frmAbout.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"MySnake.frmSettings.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"MySnake.Properties.Resources.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"MySnake.exe <span style='color:#111;'>40.00KB</span>","children":null,"spread":false},{"title":"MySnake.csproj.GenerateResource.Cache <span style='color:#111;'>1.00KB</span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"MySnake.pdb <span style='color:#111;'>63.50KB</span>","children":null,"spread":false},{"title":"MySnake.frmGame.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"MySnake.frmAbout.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"MySnake.frmSettings.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"MySnake.Properties.Resources.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"MySnake.exe <span style='color:#111;'>40.00KB</span>","children":null,"spread":false},{"title":"MySnake.csproj.GenerateResource.Cache <span style='color:#111;'>969B</span>","children":null,"spread":false}],"spread":true},{"title":"MySnake.csproj.FileList.txt <span style='color:#111;'>718B</span>","children":null,"spread":false}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'>2.77KB</span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'>5.48KB</span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'>1.06KB</span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'>1.26KB</span>","children":null,"spread":false}],"spread":true},{"title":"Controller.cs <span style='color:#111;'>5.91KB</span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'>476B</span>","children":null,"spread":false},{"title":"frmAbout.cs <span style='color:#111;'>579B</span>","children":null,"spread":false},{"title":"Config.cs <span style='color:#111;'>1.86KB</span>","children":null,"spread":false},{"title":"frmGame.cs <span style='color:#111;'>5.59KB</span>","children":null,"spread":false},{"title":"frmSettings.Designer.cs <span style='color:#111;'>11.21KB</span>","children":null,"spread":false},{"title":"Snake.cs <span style='color:#111;'>6.10KB</span>","children":null,"spread":false},{"title":"Settings.xml <span style='color:#111;'>388B</span>","children":null,"spread":false},{"title":"frmGame.Designer.cs <span style='color:#111;'>21.99KB</span>","children":null,"spread":false},{"title":"Snake开发日志.txt <span style='color:#111;'>1.84KB</span>","children":null,"spread":false},{"title":"frmGame.resx <span style='color:#111;'>6.06KB</span>","children":null,"spread":false}],"spread":false},{"title":"MySnake.sln <span style='color:#111;'>910B</span>","children":null,"spread":false},{"title":"MySnake.suo <span style='color:#111;'>22.00KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 我怀念的:
    不错,对于新手很合适!2016-11-29
  • u010313741:
    不错,对于新手很合适!2016-10-07
  • 家在水草丰茂的地方:
    有不少例子可以参考,目前正需要2015-06-13
  • q346412428:
    不错,对于新手很合适!2015-05-20
  • 小小小qqq:
    不错,对于新手很合适!2015-04-11

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明