()
| 208 | } |
| 209 | |
| 210 | public void create() { |
| 211 | save = Gdx.app.getPreferences(getProjectName());// 数据存储实例化 |
| 212 | Gdx.input.setCatchBackKey(true);// 劫持系统返回键 |
| 213 | multiplexer = new InputMultiplexer();// 触控实例化 |
| 214 | Gdx.input.setInputProcessor(multiplexer);// |
| 215 | extColors();//扩展中文颜色 |
| 216 | stageTop = new StageTop(this); |
| 217 | stageTop.setOff(); |
| 218 | isMusic = save.getBoolean("isMusic", true); |
| 219 | isSound = save.getBoolean("isSound", true); |
| 220 | // 全球化字体方案 |
| 221 | if (bundle == null) bundle = new VBundle(var3dListener); |
| 222 | // 创建一个默认动态文本 |
| 223 | FreeBitmapFont font = new FreeBitmapFont(this, paint == null ? new FreePaint(getDefaultFontSize()) : paint); |
| 224 | font.appendText("01234567890LoadingC" + getHeap()); |
| 225 | fonts.put("font", font); |
| 226 | setStageLoad(StageLoad.class); |
| 227 | init(); |
| 228 | var3dListener.create(); |
| 229 | if (Gdx.app.getType() == Application.ApplicationType.Desktop) { |
| 230 | Vector2 size = var3dListener.getAppScreenSize(); |
| 231 | int width = (int) size.x; |
| 232 | int height = (int) size.y; |
| 233 | if ((width == 1242 && height == 2688) || (width == 2688 && height == 1242)) { |
| 234 | iphoneX = new TextureRegion(new Texture(var3dListener.getIphoneXPixmap(""))); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | } |
| 239 | |
| 240 | //设置R文件 |
| 241 | private Class resource; |
nothing calls this directly
no test coverage detected