MCPcopy Create free account
hub / github.com/Var3D/var3dframe / create

Method create

core/src/core/java/var3d/net/center/VGame.java:210–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 13

getProjectNameMethod · 0.95
extColorsMethod · 0.95
getDefaultFontSizeMethod · 0.95
appendTextMethod · 0.95
getHeapMethod · 0.95
setStageLoadMethod · 0.95
initMethod · 0.95
setOffMethod · 0.80
createMethod · 0.65
getAppScreenSizeMethod · 0.65
getIphoneXPixmapMethod · 0.65
getBooleanMethod · 0.45

Tested by

no test coverage detected