我使用AndEngine框架进行测试,但是我在(0,0)中绘制了我的精灵,但它在右下角绘制:为什么呢?
这是我的代码:
@Override
public EngineOptions onCreateEngineOptions() {
camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
EngineOptions options = new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED,
new FillResolutionPolicy(), camera);
options.getAudioOptions().setNeedsMusic(true).setNeedsSound(true);
options.setWakeLockOptions(WakeLockOptions.SCREEN_ON);
return options;
}
@Override
protected Scene onCreateScene() {
....
head = new Sprite(0, 0, head_region, getVertexBufferObjectManager());