From 157a247516a62ea05a4a8402163b072701aa122c Mon Sep 17 00:00:00 2001 From: Matt Low Date: Wed, 21 Nov 2018 15:22:42 +0400 Subject: [PATCH] Calculate PIXEL_PER_METER --- core/src/com/me/brickbuster/state/PlayState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/me/brickbuster/state/PlayState.java b/core/src/com/me/brickbuster/state/PlayState.java index 92a4cd9..f1672ab 100644 --- a/core/src/com/me/brickbuster/state/PlayState.java +++ b/core/src/com/me/brickbuster/state/PlayState.java @@ -16,9 +16,9 @@ import java.util.Iterator; public class PlayState extends FieldState { - public static final float PIXEL_PER_METER = 40f; // Board dimension: 54x96 meters public static final float BOARD_WIDTH = 54f; public static final float BOARD_HEIGHT = 96f; + public static final float PIXEL_PER_METER = BrickBuster.BOARD_WIDTH / BOARD_WIDTH; public static final float EDGE_PADDING = 1.7f; public static final Vector2 lowerLeftCorner =