public static synchronized Camera reset( Camera newCamera ) { invW2 = 2f / Game.width; invH2 = 2f / Game.height; int length = all.size(); for (int i=0; i < length; i++) { all.get( i ).destroy(); } all.clear(); return main = add( newCamera ); }
public static synchronized Camera reset( Camera newCamera ) { invW2 = 2f / Game.width; invH2 = 2f / Game.height; int length = all.size(); for (int i=0; i < length; i++) { all.get( i ).destroy(); } all.clear(); return main = add( newCamera ); }
public static Camera reset( Camera newCamera ) { invW2 = 2f / Game.width; invH2 = 2f / Game.height; int length = all.size(); for (int i=0; i < length; i++) { all.get( i ).destroy(); } all.clear(); return main = add( newCamera ); }
public ScrollPane( Component content ) { super(); this.content = content; addToBack( content ); width = content.width(); height = content.height(); content.camera = new Camera( 0, 0, 1, 1, PixelScene.defaultZoom ); Camera.add( content.camera ); }
public ScrollPane( Component content ) { super(); this.content = content; addToBack( content ); width = content.width(); height = content.height(); content.camera = new Camera( 0, 0, 1, 1, PixelScene.defaultZoom ); Camera.add( content.camera ); }
public ScrollPane( Component content ) { super(); this.content = content; addToBack( content ); width = content.width(); height = content.height(); content.camera = new Camera( 0, 0, 1, 1, PixelScene.defaultZoom ); Camera.add( content.camera ); }
Camera.add( uiCamera );
Camera.add( uiCamera );
Camera.add( uiCamera );
camera.y -= yOffset * camera.zoom; camera.scroll.set( chrome.x, chrome.y ); Camera.add( camera );
camera.y = (int)(Game.height - camera.height * camera.zoom) / 2; camera.scroll.set( chrome.x, chrome.y ); Camera.add( camera );
camera.y -= yOffset * camera.zoom; camera.scroll.set( chrome.x, chrome.y ); Camera.add( camera );
Camera.add( viewport );
Camera.add( viewport );
Camera.add( viewport );