登录
首页 » Java » 小游戏源码

小游戏源码

于 2020-10-02 发布
0 209
下载积分: 1 下载次数: 0

代码说明:

说明:  飞机大战 首先对这个游戏分析,在屏幕上的物体都是飞行物,我们可以把建一个类,让其他飞行物继承这个类.游戏中应有英雄机(也就是自己控制的飞机)、敌人。而敌人应该分为打死给分的飞机(就是普通飞机),另一种就是打死有奖励的敌人。他们都应该是飞行物的子类,我们也可以为普通飞机和给奖励的敌人设一个接口让他们去实现接口,这样有利于以后的扩展,我在这里给的简化版的飞机大战,主要是为了让大家了解面向对象。(First of all, analyze the game. The objects on the screen are flying objects. We can build a class and let other flying objects inherit this class. There should be hero planes (i.e., planes controlled by ourselves) and enemies in the game. And the enemy should be divided into killing the aircraft (that is, ordinary aircraft), the other is to kill the enemy with reward. They should be subclasses of flying objects. We can also set an interface for ordinary aircraft and reward enemies to implement the interface, which is conducive to future expansion. The simplified version of aircraft War I gave here is mainly to let you understand object-oriented.)

文件列表:

Shoot\.classpath, 301 , 2019-11-25
Shoot\.project, 381 , 2019-11-25
Shoot\.settings\org.eclipse.core.resources.prefs, 57 , 2019-11-25
Shoot\.settings\org.eclipse.jdt.core.prefs, 598 , 2019-11-25
Shoot\bin\cn\tedu\shoot\Airplane.class, 1049 , 2019-11-28
Shoot\bin\cn\tedu\shoot\airplane.png, 3575 , 2019-11-25
Shoot\bin\cn\tedu\shoot\Aoo.class, 357 , 2019-11-28
Shoot\bin\cn\tedu\shoot\Award.class, 212 , 2019-11-28
Shoot\bin\cn\tedu\shoot\background.png, 26709 , 2019-11-25
Shoot\bin\cn\tedu\shoot\Bee.class, 1186 , 2019-11-28
Shoot\bin\cn\tedu\shoot\bee.png, 6405 , 2019-11-25
Shoot\bin\cn\tedu\shoot\Boo.class, 268 , 2019-11-28
Shoot\bin\cn\tedu\shoot\Bullet.class, 856 , 2019-11-28
Shoot\bin\cn\tedu\shoot\bullet.png, 408 , 2019-11-25
Shoot\bin\cn\tedu\shoot\Enemy.class, 130 , 2019-11-28
Shoot\bin\cn\tedu\shoot\FlyingObject.class, 882 , 2019-11-28
Shoot\bin\cn\tedu\shoot\gameover.png, 20220 , 2019-11-25
Shoot\bin\cn\tedu\shoot\Hero.class, 2302 , 2019-11-28
Shoot\bin\cn\tedu\shoot\hero0.png, 12280 , 2019-11-25
Shoot\bin\cn\tedu\shoot\hero1.png, 16243 , 2019-11-25
Shoot\bin\cn\tedu\shoot\pause.png, 14902 , 2019-11-25
Shoot\bin\cn\tedu\shoot\ShootGame$1.class, 1811 , 2019-11-28
Shoot\bin\cn\tedu\shoot\ShootGame$2.class, 925 , 2019-11-28
Shoot\bin\cn\tedu\shoot\ShootGame.class, 8482 , 2019-11-28
Shoot\bin\cn\tedu\shoot\start.png, 43132 , 2019-11-25
Shoot\bin\cn\tedu\shoot\Test.class, 448 , 2019-11-28
Shoot\src\cn\tedu\shoot\Airplane.java, 896 , 2019-11-25
Shoot\src\cn\tedu\shoot\airplane.png, 3575 , 2019-11-25
Shoot\src\cn\tedu\shoot\Award.java, 204 , 2019-11-25
Shoot\src\cn\tedu\shoot\background.png, 26709 , 2019-11-25
Shoot\src\cn\tedu\shoot\Bee.java, 1324 , 2019-11-25
Shoot\src\cn\tedu\shoot\bee.png, 6405 , 2019-11-25
Shoot\src\cn\tedu\shoot\Bullet.java, 642 , 2019-11-25
Shoot\src\cn\tedu\shoot\bullet.png, 408 , 2019-11-25
Shoot\src\cn\tedu\shoot\Enemy.java, 112 , 2019-11-25
Shoot\src\cn\tedu\shoot\FlyingObject.java, 915 , 2019-11-25
Shoot\src\cn\tedu\shoot\gameover.png, 20220 , 2019-11-25
Shoot\src\cn\tedu\shoot\Hero.java, 3252 , 2019-11-25
Shoot\src\cn\tedu\shoot\hero0.png, 12280 , 2019-11-25
Shoot\src\cn\tedu\shoot\hero1.png, 16243 , 2019-11-25
Shoot\src\cn\tedu\shoot\pause.png, 14902 , 2019-11-25
Shoot\src\cn\tedu\shoot\ShootGame.java, 12272 , 2019-11-25
Shoot\src\cn\tedu\shoot\start.png, 43132 , 2019-11-25
Shoot\src\cn\tedu\shoot\Test.java, 1082 , 2019-11-25
Shoot\bin\cn\tedu\shoot, 0 , 2019-11-28
Shoot\src\cn\tedu\shoot, 0 , 2019-11-25
Shoot\bin\cn\tedu, 0 , 2019-11-28
Shoot\src\cn\tedu, 0 , 2019-11-25
Shoot\bin\cn, 0 , 2019-11-28
Shoot\src\cn, 0 , 2019-11-25
Shoot\.settings, 0 , 2019-11-25
Shoot\bin, 0 , 2019-11-28
Shoot\src, 0 , 2019-11-27
Shoot, 0 , 2019-11-25

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

发表评论

0 个回复

  • snmp4j-agent-2.3.2-distribution
    用snmp4j实现的agent,代码比较多,但是很值得一看,尤其是对于要用SNMP监控信息的编程者,可以仔细研究一下里面的代码.-Achieved with snmp4j agent, code more,(Snmp4j achieved by agent, code more, but is worth a visit, especially for programmers to use SNMP to monitor the information, you can take a closer look inside the code.-Achieved with snmp4j agent, code more,)
    2020-12-29 22:39:02下载
    积分:1
  • JNAChina
    这是一个介绍jna的pdf,对初学者可能会有帮助(This is a description jna the pdf, may be helpful for beginners)
    2010-08-13 10:21:45下载
    积分:1
  • p2_9
    局域网Socket用于传输文件,如果是图片,则要求显示出来。Java技术,包括服务器端和客户端编程。(Java socket programming. File transport and display if it is a picture.)
    2009-12-04 23:54:17下载
    积分:1
  • man
    编写一个接口ICaculatable 接口中有一个doCaculte()方法 要求三个类BlackMan WhiteMan YellowMan实现这个方法 BlackMan 实现从控制台输入5个数 排序(正排)输出 WhiteMan 实现从控制台输入5个数 排序(倒排) YellowMan 实现从控制台输入5个数 计算总和 输出 写出一个测试类来测试以上类的功能。 测试类中要有void solveProblem(ICaculatable obj)方法进行测试 要求以上类在不同的包当中。(The preparation of an interface, there is a ICaculatable interface doCaculte () method requires three types of BlackMan WhiteMan YellowMan method to achieve this BlackMan input from the console 5, the number of sort (being ranked) output from the console WhiteMan enter the number 5 ranking (inverted ) YellowMan input from the console 5, the number of calculation of the sum of the output type to write a test to test the functions of the above categories. Test category must be void solveProblem (ICaculatable obj) method of the above testing requirements in different types of packages were.)
    2009-05-16 22:17:27下载
    积分:1
  • IDW_JAVA
    反距离加权插值(IDW),Gis二维等值线网格化中常用的,采用java语言实现,内有实例,测试代码,很实用的(Inverse distance weighted interpolation (IDW), Gis-dimensional contour grid commonly used, using java language, there are examples, test code, very useful)
    2021-05-08 09:58:35下载
    积分:1
  • XenServerDemo
    连接xenserver 开关虚拟机demo(a demo about connect xecserver power on/off the vm)
    2013-10-18 15:06:05下载
    积分:1
  • Exe8_3
    3.设计一个幻灯片播放窗口,在窗口中点击鼠标时,在红、绿、蓝三种颜色的面板之间切换。程序文件命名为Exe8_3.java。(3. Design a slideshow window, click the mouse, in between red, green, and blue switch panel in the window. Program file named Exe8_3.java.)
    2015-06-14 18:29:47下载
    积分:1
  • MySalesAftManager
    采用java写的销售管理系统,实现对货物的登记,查找,修改和删除,具有图形化界面,Swing界面编程,数据保存在sql server数据库中(Written by Java sales management system, to achieve the registration of goods, search, modify and delete, with a graphical interface, Swing programming interface, data stored in the server SQL )
    2016-04-19 16:10:26下载
    积分:1
  • 20121216100444473
    为JAVA开发的UML语言手册,为大型应用开发者提供参考。(UML language manual developed for JAVA, for large application developers to provide reference.)
    2017-08-23 10:27:12下载
    积分:1
  • ICFFCM
    APPLICATION OF ICFFCM segmentation image
    2019-03-17 20:11:49下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载