public static int CAMERA_WIDTH;
public static int CAMERA_HEIGHT;
public BoundCamera camera;
public Scene scene;
@Override
public Engine onLoadEngine() {
WindowManager w = getWindowManager();
Display d = w.getDefaultDisplay();
int width = d.getWidth();
int height = d.getHeight();
GameAct.CAMERA_WIDTH=width;
GameAct.CAMERA_HEIGHT=height;
this.camera = new BoundCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
}
And then scale any sprite with setSize(w,h) or setScale(%)
Friday, February 25, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment