JAVA雷霆战机


我们几个同学一起开发的一款JAVA雷霆战机游戏,功能一般,可以作为学习参考,希望对各位有帮助。
资源截图
代码片段和文件信息
package com.ftz.ThunderPlane.Entity.Boss;

import java.awt.Graphics;
import java.awt.Rectangle;

import com.ftz.ThunderPlane.frame.GameStart;
import com.ftz.ThunderPlane.Util.ImageCommon;

public abstract class Boss {

public int boss_x;
public int boss_y;
public int boss_speed = 1;
public int boss_bullet_move;
public int boss_step = 0;
public boolean boss_live = true;
public int boss_life = 30000;
public GameStart gs;

public Boss(int bossX int bossY int bossBulletMove GameStart gs) {
boss_x = bossX;
boss_y = bossY;
boss_bullet_move = bossBulletMove;
this.gs = gs;
}

public Rectangle getRectangle(int widthint height){
return new Rectangle(boss_x boss_y width height);
}

//发子弹
public abstract void fire();

//显示自己
public abstract void showMe(Graphics g);

//boss移动
public void move() {
if (boss_step == 0) {
boss_y += boss_speed;
if (boss_y >= 50) {
boss_step = 1;
}
}
if (boss_step == 1) {
boss_x -= boss_speed;
if (boss_x <= -10) {
boss_step = 2;
}
}
if (boss_step == 2) {
boss_x += boss_speed;
if (boss_x >= 200) {
boss_step = 1;
}
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        355  2012-06-29 09:36  ThunderPlane2.0.classpath

     文件        391  2012-06-26 14:01  ThunderPlane2.0.project

     文件        629  2012-06-26 14:01  ThunderPlane2.0.settingsorg.eclipse.jdt.core.prefs

     文件        137  2012-06-27 20:59  ThunderPlane2.0.settingsorg.eclipse.ltk.core.refactoring.prefs

     文件       6067  2012-06-28 23:14  ThunderPlane2.0inonesrust01.png

     文件       5738  2012-06-28 23:14  ThunderPlane2.0inonesrust02.png

     文件       5640  2012-06-28 23:14  ThunderPlane2.0inonesrust03.png

     文件       5641  2012-06-28 23:14  ThunderPlane2.0inonesrust04.png

     文件       5665  2012-06-28 23:14  ThunderPlane2.0inonesrust05.png

     文件       5690  2012-06-28 23:14  ThunderPlane2.0inonesrust06.png

     文件       6213  2012-06-28 23:14  ThunderPlane2.0inonesrust07.png

     文件       6301  2012-06-28 23:14  ThunderPlane2.0inonesrust08.png

     文件       6241  2012-06-28 23:14  ThunderPlane2.0inonesrust09.png

     文件       4602  2012-06-28 23:14  ThunderPlane2.0inonesrust10.png

     文件       1284  2012-06-29 10:22  ThunderPlane2.0incomftzThunderPlaneEntityBossBoss.class

     文件       2916  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityBossBoss_1.class

     文件       4075  2012-06-29 09:58  ThunderPlane2.0incomftzThunderPlaneEntityBulletBullet.class

     文件       3062  2012-06-29 09:58  ThunderPlane2.0incomftzThunderPlaneEntityBulletEBullet.class

     文件       3159  2012-06-29 09:57  ThunderPlane2.0incomftzThunderPlaneEntityEPlaneEPlane.class

     文件       1037  2012-06-29 09:45  ThunderPlane2.0incomftzThunderPlaneEntityMusicMusic_Background.class

     文件       1027  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityMusicMusic_explode.class

     文件       1019  2012-06-29 09:43  ThunderPlane2.0incomftzThunderPlaneEntityMusicMusic_Shoot.class

     文件       1566  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityPlaneExplode.class

     文件       4618  2012-06-29 09:43  ThunderPlane2.0incomftzThunderPlaneEntityPlanePlane.class

     文件        274  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityPlanePlaneInterface.class

     文件        924  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityPlanePlaneMove.class

     文件       1797  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityToolTool.class

     文件        943  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityToolTool_AddBlood.class

     文件        940  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityToolTool_AddLife.class

     文件        955  2012-06-29 09:36  ThunderPlane2.0incomftzThunderPlaneEntityToolTool_AddMoney.class

............此处省略190个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)