📄 battlescenelib.java
字号:
/*
* Created on 2005-7-14
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class BattleSceneLib {
public static Scene[] scenes;
public static int currentSceneIndex;
static
{
scenes=new Scene[4];
scenes[0]=new Scene(); //村边树林
scenes[0].setMapImgFile("/map/map_wild.png");
scenes[0].setMapDataFile("/map/map_wild_battle.map");
scenes[0].setGroundWidth(320);
scenes[0].setGroundHeight(320);
scenes[0].setRoleX(105);
scenes[0].setRoleY(55);
scenes[1]=new Scene(); //山洞
scenes[1].setMapImgFile("/map/map_wild.png");
scenes[1].setMapDataFile("/map/map_cave_battle.map");
scenes[1].setGroundWidth(320);
scenes[1].setGroundHeight(320);
scenes[1].setRoleX(105);
scenes[1].setRoleY(55);
scenes[2]=new Scene(); //平原
scenes[2].setMapImgFile("/map/map_wild.png");
scenes[2].setMapDataFile("/map/map_wild_battle.map");
scenes[2].setGroundWidth(320);
scenes[2].setGroundHeight(320);
scenes[2].setRoleX(105);
scenes[2].setRoleY(55);
scenes[3]=new Scene(); //迷宫
scenes[3].setMapImgFile("/map/map_wild.png");
scenes[3].setMapDataFile("/map/map_maze_battle.map");
scenes[3].setGroundWidth(320);
scenes[3].setGroundHeight(320);
scenes[3].setRoleX(105);
scenes[3].setRoleY(55);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -