Bugfixes
This commit is contained in:
@@ -288,7 +288,7 @@ public class Renderer implements ApplicationListener{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void scaleCamera(float amount){
|
public void scaleCamera(float amount){
|
||||||
targetscale += amount;
|
targetscale *= (amount / 4) + 1;
|
||||||
clampScale();
|
clampScale();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ public class Pixelator implements Disposable{
|
|||||||
camera.width = (int)camera.width;
|
camera.width = (int)camera.width;
|
||||||
camera.height = (int)camera.height;
|
camera.height = (int)camera.height;
|
||||||
|
|
||||||
graphics.clear(0f, 0f, 0f, 1f);
|
|
||||||
|
|
||||||
px = Core.camera.position.x;
|
px = Core.camera.position.x;
|
||||||
py = Core.camera.position.y;
|
py = Core.camera.position.y;
|
||||||
Core.camera.position.set((int)px + ((int)(camera.width) % 2 == 0 ? 0 : 0.5f), (int)py + ((int)(camera.height) % 2 == 0 ? 0 : 0.5f));
|
Core.camera.position.set((int)px + ((int)(camera.width) % 2 == 0 ? 0 : 0.5f), (int)py + ((int)(camera.height) % 2 == 0 ? 0 : 0.5f));
|
||||||
@@ -37,7 +35,7 @@ public class Pixelator implements Disposable{
|
|||||||
|
|
||||||
buffer.resize(w, h);
|
buffer.resize(w, h);
|
||||||
|
|
||||||
buffer.begin();
|
buffer.begin(Color.clear);
|
||||||
renderer.draw();
|
renderer.draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user