首页>代码>java swing版本打飞机源码>/air/src/com/beancore/config/Config.java
package com.beancore.config;

public class Config {
	// non-changeable configuration
	public final static String LOGO_IMG = "images/logo.png";
	public final static String SHOOT_BACKGROUND_IMG = "images/shoot_background.png";
	public final static String SHOOT_IMG = "images/shoot.png";
	public final static String FONT_IMG = "images/font.png";
	public final static String BUTTON_BG_IMG = "images/button_bg.png";
	public final static String BUTTON_HOVER_BG_IMG = "images/button_hover_bg.png";
	public final static String ACHIEVEMENT_AUDIO = "sound/achievement.wav";

	public final static String SMALL_PLANE_KILLED_AUDIO = "sound/small_plane_killed.wav";
	public final static String BIG_PLANE_KILLED_AUDIO = "sound/big_plane_killed.wav";
	public final static String BOSS_PLANE_KILLED_AUDIO = "sound/boss_plane_killed.wav";

	public final static String BOSS_PLANE_FLYING_AUDIO = "sound/boss_plane_flying.wav";
	public final static String POP_WEAPON_AUDIO = "sound/pop_weapon.wav";

	public final static String USER_BOMB_AUDIO = "sound/use_bomb.wav";
	public final static String FIRE_BULLET_AUDIO = "sound/fire_bullet.wav";

	public final static String GAME_MUSIC_AUDIO = "sound/game_music.wav";
	public final static String GAME_OVER_AUDIO = "sound/game_over.wav";

	public final static String GET_BOMB_AUDIO = "sound/get_bomb.wav";
	public final static String GET_DOUBLE_LASER_AUDIO = "sound/get_double_laser.wav";

	public final static String BUTTON_ACTION_AUDIO = "sound/button.wav";

	public static final String HELP_FILE_PATH = "help.html";
	public static final String SCORE_FILE = "score.dat";

	public final static int MAIN_FRAME_WIDTH = 480;
	public final static int MAIN_FRAME_HEIGHT = 700;

	public final static int POP_UP_MENU_PANEL_WIDTH = 160;
	public final static int POP_UP_MENU_PANEL_HEIGHT = 248;

	public final static int POP_UP_SCORE_PANEL_WIDTH = 160;
	public final static int POP_UP_SCORE_PANEL_HEIGHT = 634;

	public final static int HELP_DIALOG_WIDTH = 800;
	public final static int HELP_DIALOG_HEIGHT = 600;

	public final static int SCORE_IMG_POS_X = 5;
	public final static int SCORE_IMG_POS_Y = 5;

	public final static int CAUGHT_BOMB_IMG_POS_X = 5;
	public final static int CAUGHT_BOMB_IMG_POS_Y = 770;

	public final static int KILL_SMALL_PLANE_SCORE = 1000;
	// public final static int KILL_SMALL_PLANE_SCORE = 100000;
	public final static int KILL_BIG_PLANE_SCORE = 6000;
	public final static int KILL_BOSS_PLANE_SCORE = 30000;

	public final static int BULLET_COUNT_TO_KILL_SMALL_PLANE = 1;
	public final static int BULLET_COUNT_TO_KILL_BIG_PLANE = 10;
	public final static int BULLET_COUNT_TO_KILL_BOSS_PLANE = 20;

	public final static int SMALL_PLANE_STATUS_CHANGE_INTERVAL = 90;
	public final static int BIG_PLANE_STATUS_CHANGE_INTERVAL = 90;
	public final static int BOSS_PLANE_STATUS_CHANGE_INTERVAL = 170;

	public final static int GAME_LOADING_INTERVAL = 600;
	public final static int MAX_SCORE_COUNT = 10;

	public final static int NUMBER_0 = 0;
	public final static int NUMBER_1 = 1;
	public final static int NUMBER_2 = 2;
	public final static int NUMBER_3 = 3;
	public final static int NUMBER_4 = 4;
	public final static int NUMBER_5 = 5;
	public final static int NUMBER_6 = 6;
	public final static int NUMBER_7 = 7;
	public final static int NUMBER_8 = 8;
	public final static int NUMBER_9 = 9;

	public final static int BOMB_MAX_HOLD_COUNT = 3;
	public final static int ONE_BOMB = 1;
	public final static int TWO_BOMB = 2;
	public final static int THREE_BOMB = 3;

	// changeable configuration
	public static int DOUBLE_LASER_LAST_TIME = 28000;// 28 seconds

	public static int BULLET_FIRE_INTERVAL = 120;

	public static int GAME_PANEL_REPAINT_INTERVAL = 80;

	public static int YELLOW_BULLET_MOVE_SPEED = 50;
	public static int BLUE_BULLET_MOVE_SPEED = 50;

	public static int ENEMY_PLANE_MOVE_SPEED_MIN = 30;
	public static int ENEMY_PLANE_MOVE_SPEED_MAX = 40;

	public static int POP_WEAPON_ANIMATION_MOVE_FORWARD_SPEED = 60;
	public static int POP_WEAPON_ANIMATION_MOV_BACK_SPEED = 200;

	public static int POP_WEAPON_MOVE_SPEED = 30;

	public static int POP_DOUBLE_LASER_INTERVAL = 30000;
	public static int POP_BOMBO_INTERVAL = 58000;

	public static int POP_SMALL_ENEMY_PLANE_INTERVAL = 300;
	public static int POP_BIG_ENEMY_PLANE_INTERVAL = 6000;
	public static int POP_BOSS_ENEMY_PLANE_INTERVAL = 12000;

}
最近下载更多
zuoyefengyv  LV5 11月6日
2313321  LV1 2023年6月5日
520131485  LV1 2021年7月18日
15084895035  LV1 2021年7月1日
2379150960  LV1 2021年6月23日
dengge123  LV13 2021年6月3日
ldx1234  LV4 2021年5月24日
养乐多  LV3 2021年4月27日
风继续吹.  LV1 2021年4月17日
liyaoa  LV1 2020年12月24日
最近浏览更多
zuoyefengyv  LV5 11月6日
luoyanglin  LV2 9月14日
qqqww11  LV2 6月26日
azzzz1  LV2 6月26日
鬼屋报道  LV3 6月1日
860421  LV3 4月18日
yx666666  LV1 1月5日
jiemomo  LV12 2023年10月19日
942395729  LV1 2023年6月30日
2313321  LV1 2023年6月5日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友