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

小游戏源码

于 2020-10-02 发布
0 74
下载积分: 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 个回复

  • 8339006777StudentCourse
    新闻发布系统,基于J2EE架构。推荐使用MyEclipse+MySQL+apache开发(Press Release System, based on the J2EE architecture. Recommended MyEclipse+ MySQL+ Apache development.)
    2010-06-07 17:56:31下载
    积分:1
  • memory-test
    说明:  该软件为记忆测试系统,通过回忆法测试记忆,分为初级,中级,高级三个级别,并通过记忆榜存储每个级别的成绩(The software for the memory test system, test the memory by recall method, divided into primary, intermediate, advanced three levels, and through memory to store each level of results list)
    2011-03-22 20:43:02下载
    积分:1
  • 实现摄像机抓拍 获取车牌分析数据 iceDemo 64
    java调用巨龙dll 实现摄像机抓拍 获取车牌分析数据(java demo contains java sdk dll jna and so on)
    2018-06-14 09:00:07下载
    积分:1
  • ADBServerNeedRestartException
    Convert integer format IP into xxx.xxx.xxx.xxx format for Andriod.
    2013-10-06 00:42:43下载
    积分:1
  • Garage
    由Java Swing提供GUI的车库程序(01背包问题的实例化)(Provided by the Java Swing GUI garage program (instantiated 01 knapsack problem))
    2014-06-29 23:08:30下载
    积分:1
  • sort-xiancheng
    java写的一个多线程排序实验,文件小,效果高。(java write a multithreaded scheduling experiment, the paper, and got high.)
    2007-06-15 13:48:57下载
    积分:1
  • NFA-DFA
    NFA转换为DFAjava版,功能齐全,求闭包,子集法(NFA converted DFAjava version, fully functional, seeking closure, a subset of the law)
    2016-04-25 12:27:44下载
    积分:1
  • .metadata
    设计优良学风班集体评选辅助决策软件,使用数据库存放各参评班级的各项表现信息,使得系统可以按照每个班级的各项表现(数据)每年提供优良学风班集体的候选名单。(Style class collective good design decision support software selection, use a database to store the performance of each participating class information, so that the system can provide a list of candidates for the collective good style of study classes each year according to the performance of each class (data).)
    2014-01-21 20:49:19下载
    积分:1
  • java
    编写一个Java程序,设计一个运输工具类Transport,包含的成员属性有:速度pace、载重量load;汽车类Vehicle是Transport的子类,其中包含的属性有:车轮的个数wheels和车重weight;飞机Airplane类是Transport的子类其中包含的属性有:机型enginertype和发动机数量enginers。每个类都有相关所有数据的输出方法。(Write a Java program, designing a means of transport category Transport, including members of the attributes: speed pace, load load Automotive Transport Vehicle is a subclass, which contains the attributes: the number of wheels and wheel weight weight Transport Aircraft Airplane class is a subclass of which contains the attributes: the number of aircraft and engine enginertype enginers. Each class has all data related to the output method.)
    2010-06-01 09:57:54下载
    积分:1
  • JavaXQgame
    说明:  自学Java写的象棋游戏源码(简单),希望高人不要笑话,这是我自学写的,基本上是用Java调用图片显示的原理制成,适合和我一样菜的Java新手,希望大家与我一起交流。 (Learning chess game written in Java source code (simple), I hope skilled are not a joke, this is my self-written with Java call is basically the principle of image display is made of the same dish for my Java novice, and I hope with the exchange.)
    2010-04-09 20:23:50下载
    积分:1
  • 696524资源总数
  • 103920会员总数
  • 65今日下载