登录
首页 » 其他项目 » This program is in a room where a cat

This program is in a room where a cat

于 2022-12-27 发布 文件大小:2.68 MB
0 51
下载积分: 2 下载次数: 1

代码说明:

本程序是在一个房间里猫捉老鼠的游戏。通过键盘上的上、下、左、右方向键控制一只猫,十只老鼠在窗口中自由活动,可随时改变行走方向,遇窗口边界则改变方向。猫碰到老鼠后就吃掉它(该鼠不再显示)。若猫吃掉所有老鼠,游戏结束并显示游戏所剩时间;若时间用完,猫没有吃掉所有老鼠, 游戏结束并显示所剩老鼠数目。-This program is in a room where a cat-and-mouse game. Through the keyboard up, down, left and right arrow keys to control a cat, 10 mice in the window to freely travel at any time to change the direction of the window border, however, to change the direction of the event. Encountered after the cat mouse eat it (the mouse is no longer displayed). If the cats eat all the rats, the game is over and displays the time remaining for the game if time runs out, the cat did not eat all the rats, the game is over and displays the number of the remaining mice.

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

发表评论

0 个回复

  • 696524资源总数
  • 103945会员总数
  • 46今日下载