首页 课程资源 Java     /    动物交换游戏java代码及注释

动物交换游戏java代码及注释

上传者: qq_25183823 | 上传时间:2024/12/7 3:29:14 | 文件大小:7.09MB | 文件类型:rar
动物交换游戏java代码及注释
设计GUI(GraphicalUserInterface)界面的动物换位游戏,游戏的结果是让左右两组动物交换位置。
具体要求如下:1.程序分为3个级别,用户通过菜单来选择初级、中级和高级。
对于初级,在水平排列的7块石头上的左右各有3个类型相同的动物,中间的石头上没有动物;
对于中级,在水平排列的块石头上的左右各有4个类型相同的动物,中间的石头上没有动物;
对于高级,在水平排列的11块石头上左右各有5个类型相同的动物,中间的石头上没有动物。
2.用鼠标单击一个动物,如果该动物前方的石头上没有动物,该动物跳跃到该石头上,如果该动物前方的石头上有其他动物,但隔位上的石头没有动物,该动物就越过自己前面的动物跳跃到石头上,其他情形时,该动物不跳跃(跳跃时不能越过2块石头)。
3.左面的动物只能向右方跳跃,右面的动物只能向左方跳跃。
4.用户可以通过界面提供的按钮,让程序自动完成动物换位。
5.可以随时重新开始不同的级别。
6.用户通过菜单选项,可以选择左、右动物的图像。
本软件ID:8343831

文件下载

资源详情

[{"title":"(61个子文件7.09MB)动物交换游戏java代码及注释","children":[{"title":"AnimalChange","children":[{"title":"高级英雄排行榜.txt <span style='color:#111;'>12B</span>","children":null,"spread":false},{"title":".project <span style='color:#111;'>371B</span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Record.class <span style='color:#111;'>2.90KB</span>","children":null,"spread":false},{"title":"ShowRecordDialog.class <span style='color:#111;'>3.82KB</span>","children":null,"spread":false},{"title":"Stone.class <span style='color:#111;'>454B</span>","children":null,"spread":false},{"title":"ChangeAnimalWindow.class <span style='color:#111;'>12.71KB</span>","children":null,"spread":false},{"title":"AutoMoveAnimal$1.class <span style='color:#111;'>987B</span>","children":null,"spread":false},{"title":"Customdlg.class <span style='color:#111;'>2.02KB</span>","children":null,"spread":false},{"title":"HandleMouse.class <span style='color:#111;'>5.72KB</span>","children":null,"spread":false},{"title":"ShowRecordDialog$1.class <span style='color:#111;'>645B</span>","children":null,"spread":false},{"title":"Point.class <span style='color:#111;'>1.31KB</span>","children":null,"spread":false},{"title":"AutoMoveAnimal.class <span style='color:#111;'>6.77KB</span>","children":null,"spread":false},{"title":"Customdlg$1.class <span style='color:#111;'>649B</span>","children":null,"spread":false},{"title":".DS_Store <span style='color:#111;'>6.00KB</span>","children":null,"spread":false},{"title":"People.class <span style='color:#111;'>846B</span>","children":null,"spread":false},{"title":"ChangeAnimalWindow$1.class <span style='color:#111;'>789B</span>","children":null,"spread":false},{"title":"Animal.class <span style='color:#111;'>1.85KB</span>","children":null,"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'>76B</span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>587B</span>","children":null,"spread":false}],"spread":true},{"title":"music","children":[{"title":"bgmusic.mp3 <span style='color:#111;'>6.99MB</span>","children":null,"spread":false}],"spread":true},{"title":"初级英雄排行榜.txt <span style='color:#111;'>91B</span>","children":null,"spread":false},{"title":"中级英雄排行榜.txt <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"src","children":[{"title":"ShowRecordDialog.java <span style='color:#111;'>4.25KB</span>","children":null,"spread":false},{"title":"People.java <span style='color:#111;'>8.50KB</span>","children":null,"spread":false},{"title":"HandleMouse.java <span style='color:#111;'>7.36KB</span>","children":null,"spread":false},{"title":"Record.java <span style='color:#111;'>3.09KB</span>","children":null,"spread":false},{"title":"Point.java <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"ChangeAnimalWindow.java <span style='color:#111;'>20.72KB</span>","children":null,"spread":false},{"title":"Animal.java <span style='color:#111;'>8.78KB</span>","children":null,"spread":false},{"title":"AutoMoveAnimal.java <span style='color:#111;'>14.00KB</span>","children":null,"spread":false},{"title":".DS_Store <span style='color:#111;'>6.00KB</span>","children":null,"spread":false},{"title":"Stone.java <span style='color:#111;'>1.11KB</span>","children":null,"spread":false},{"title":"Customdlg.java <span style='color:#111;'>4.01KB</span>","children":null,"spread":false}],"spread":false},{"title":"images","children":[{"title":"dog4.jpg <span style='color:#111;'>5.14KB</span>","children":null,"spread":false},{"title":"cat3.jpg <span style='color:#111;'>4.42KB</span>","children":null,"spread":false},{"title":"dog3.jpg <span style='color:#111;'>4.35KB</span>","children":null,"spread":false},{"title":"pig2.jpg <span style='color:#111;'>4.47KB</span>","children":null,"spread":false},{"title":"stone.JPG <span style='color:#111;'>12.24KB</span>","children":null,"spread":false},{"title":"dog5.jpg <span style='color:#111;'>7.24KB</span>","children":null,"spread":false},{"title":"dog7.jpg <span style='color:#111;'>5.70KB</span>","children":null,"spread":false},{"title":"dog6.jpg <span style='color:#111;'>3.48KB</span>","children":null,"spread":false},{"title":"pig1.jpg <span style='color:#111;'>3.39KB</span>","children":null,"spread":false},{"title":"cat.JPG <span style='color:#111;'>11.12KB</span>","children":null,"spread":false},{"title":"dog8.jpg <span style='color:#111;'>8.87KB</span>","children":null,"spread":false},{"title":"cat8.jpg <span style='color:#111;'>7.21KB</span>","children":null,"spread":false},{"title":"dog1.jpg <span style='color:#111;'>3.99KB</span>","children":null,"spread":false},{"title":"cat4.jpg <span style='color:#111;'>4.88KB</span>","children":null,"spread":false},{"title":"cat6.jpg <span style='color:#111;'>8.37KB</span>","children":null,"spread":false},{"title":"cat2.jpg <span style='color:#111;'>4.20KB</span>","children":null,"spread":false},{"title":"cat10.jpg <span style='color:#111;'>4.68KB</span>","children":null,"spread":false},{"title":"dog9.jpg <span style='color:#111;'>7.73KB</span>","children":null,"spread":false},{"title":"dog10.jpg <span style='color:#111;'>7.03KB</span>","children":null,"spread":false},{"title":"cat5.jpg <span style='color:#111;'>4.30KB</span>","children":null,"spread":false},{"title":"cat9.jpg <span style='color:#111;'>5.52KB</span>","children":null,"spread":false},{"title":"cat7.jpg <span style='color:#111;'>4.96KB</span>","children":null,"spread":false},{"title":".DS_Store <span style='color:#111;'>6.00KB</span>","children":null,"spread":false},{"title":"dog.JPG <span style='color:#111;'>10.68KB</span>","children":null,"spread":false},{"title":"dog2.jpg <span style='color:#111;'>4.69KB</span>","children":null,"spread":false}],"spread":false},{"title":".classpath <span style='color:#111;'>295B</span>","children":null,"spread":false},{"title":".DS_Store <span style='color:#111;'>8.00KB</span>","children":null,"spread":false},{"title":"自定义英雄排行榜.txt <span style='color:#111;'>12B</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • a1433210288:
    资源是不错的,注释也较为详细。2015-06-15

免责申明

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