学年论文C语言贪吃蛇游戏.docVIP

  • 23
  • 0
  • 约5.67千字
  • 约 10页
  • 2016-12-19 发布于重庆
  • 举报
基于C语言的贪吃蛇游戏 摘要:贪吃蛇游戏是受广大人群喜爱的一款游戏,由传统模式,迷宫模式,和各种障碍模式。本游戏是要求为:一条蛇在封密的围墙内,在围墙内随机出现一个食物。通过按键盘上的四个光标控键控制蛇向上下左右四个方向移动,蛇头撞到食物,则表示食物被蛇吃掉,这时蛇的身体长一节,同时计10分,接着又出现食物,等待被蛇吃掉。如果蛇在移动过程中,撞到墙壁或蛇头撞到自己身体游戏结束。 关键词: 循环,分支,子函数的调用,链表,接口,子函数调用 C-based?Snake?games Abstract :Snake game is popular with the crowd favorite game from the traditional model, the maze pattern, and a variety of obstacles mode. The game is called for: a snake sealed in the walls, the walls appear randomly in a food. On the keyboard by pressing four cursor control keys to control the snake to move up and down four, smugglers hit the

文档评论(0)

1亿VIP精品文档

相关文档