Fix camera bounds calculation
This commit is contained in:
@@ -8,8 +8,8 @@ static Rectangle getCameraBounds(Camera2D camera) {
|
|||||||
Rectangle bounds = {
|
Rectangle bounds = {
|
||||||
.x = camera.target.x,
|
.x = camera.target.x,
|
||||||
.y = camera.target.y,
|
.y = camera.target.y,
|
||||||
.width = GetScreenWidth() / camera.zoom,
|
.width = GetScreenWidth() * camera.zoom,
|
||||||
.height = GetScreenHeight() / camera.zoom,
|
.height = GetScreenHeight() * camera.zoom,
|
||||||
};
|
};
|
||||||
//bounds.width *= 0.8f;
|
//bounds.width *= 0.8f;
|
||||||
//bounds.height *= 0.8f;
|
//bounds.height *= 0.8f;
|
||||||
|
|||||||
Reference in New Issue
Block a user