• 大小: 5.75M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-27
  • 语言: Java
  • 标签: 飞机大战  飞机  

资源简介


资源截图

代码片段和文件信息

package com.plane.client;

import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import com.plane.core.Plane;
import com.plane.utils.frameUtil;
import com.plane.utils.MusicUtil;
import com.plane.utils.MyCanvas;

public class PlaneClient extends frameUtil {

MyCanvas canvas;

@Override
public void initframe() {
canvas = new MyCanvas();
//把面板添加到窗口里
this.add(canvas);
//初始化窗口
super.initframe();
//添加键盘监听
this.addKeyListener(new KeyListener() {

@Override
public void keyTyped(KeyEvent e) {}

@Override
public void keyReleased(KeyEvent e) {
canvas.plane.keyReleased(e);
canvas.keyReleased(e);
}

@Override
public void keyPressed(KeyEvent e) {
canvas.plane.keyPressed

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

     文件        355  2019-01-15 16:16  plane\.classpath

     文件        381  2019-01-14 11:22  plane\.project

     文件        598  2019-01-14 11:22  plane\.settings\org.eclipse.jdt.core.prefs

     文件       1086  2019-01-17 09:12  plane\bin\com\plane\client\PlaneClient$1.class

     文件        865  2019-01-17 09:12  plane\bin\com\plane\client\PlaneClient$Timer.class

     文件        982  2019-01-17 09:12  plane\bin\com\plane\client\PlaneClient$Timer_fire.class

     文件       1200  2019-01-17 09:12  plane\bin\com\plane\client\PlaneClient.class

     文件       1446  2019-01-17 09:12  plane\bin\com\plane\core\Background.class

     文件       4037  2019-01-17 09:12  plane\bin\com\plane\core\Boss.class

     文件       1800  2019-01-17 09:12  plane\bin\com\plane\core\BossBlood.class

     文件       1884  2019-01-17 09:12  plane\bin\com\plane\core\BossBullet.class

     文件       1626  2019-01-17 09:12  plane\bin\com\plane\core\Bullet.class

     文件       1847  2019-01-17 09:12  plane\bin\com\plane\core\DoubleBullet.class

     文件       1635  2019-01-17 09:12  plane\bin\com\plane\core\EnemyBullet.class

     文件       3937  2019-01-17 09:12  plane\bin\com\plane\core\EnemyPlane.class

     文件       1503  2019-01-17 09:12  plane\bin\com\plane\core\Explode.class

     文件       1260  2019-01-17 09:12  plane\bin\com\plane\core\GameLevel.class

     文件        954  2019-01-17 09:12  plane\bin\com\plane\core\GameOverGround.class

     文件       3240  2019-01-17 09:12  plane\bin\com\plane\core\Gift.class

     文件       3288  2019-01-17 09:12  plane\bin\com\plane\core\Gift_Bullet.class

     文件       5921  2019-01-17 09:12  plane\bin\com\plane\core\Plane.class

     文件        654  2019-01-17 09:12  plane\bin\com\plane\core\Planeobject.class

     文件       1006  2019-01-17 09:12  plane\bin\com\plane\core\start_background.class

     文件       1842  2019-01-17 09:12  plane\bin\com\plane\core\ThreeButtle.class

     文件        165  2019-01-17 00:32  plane\bin\com\plane\imgs\blood\blood1.png

     文件        224  2019-01-17 00:32  plane\bin\com\plane\imgs\blood\blood10.png

     文件        226  2019-01-17 00:32  plane\bin\com\plane\imgs\blood\blood2.png

     文件        227  2019-01-17 00:32  plane\bin\com\plane\imgs\blood\blood3.png

     文件        228  2019-01-17 00:32  plane\bin\com\plane\imgs\blood\blood4.png

     文件        224  2019-01-17 00:32  plane\bin\com\plane\imgs\blood\blood5.png

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

评论

共有 条评论