Fácil escalado de pantalla en LibGdx

@Overridepublic void resize(int width, int height) { stage.setViewport(PREFFERED_WIDTH, PREFFERED_HEIGHT, true); stage.getCamera().translate(-stage.getGutterWidth(), -stage.getGutterHeight(), 0); if (table != null){ table.setSize(PREFFERED_WIDTH, PREFFERED_HEIGHT); }} No olvide establecer Table # setFillParent en falso.

Leer más

Obtener el entorno del jugador

// Create an environment object;var environment:Object = new Object();// Get player type// Non-IE: “PlugIn”// IE: “ActiveX”environment.playerType = Capabilities.playerType;// Get’s the current domainvar lc:LocalConnection = new LocalConnection();environment.domain = lc.domain;// Get the …

Leer más