Skip to content

Commit

Permalink
lanes 1/1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaganx0 committed Sep 7, 2023
1 parent 70a7157 commit adb23c7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,17 @@ public class MainGameScreen extends ScreenAdapter {
private final Stage stage;
static int screenWidth = Gdx.graphics.getWidth();
static int screenHeight = Gdx.graphics.getHeight();
Viewport viewport = new FitViewport(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());



public static int viewportWidth = screenWidth;
public static int viewportHeight= screenHeight;
public static final int NUM_LANES = 8;
public static final float LANE_HEIGHT = viewportHeight / NUM_LANES;



private OrthographicCamera camera;
private SpriteBatch batch;

private Texture whiteTexture;
private Texture backgroundTexture;

public MainGameScreen(GdxGame game) {
Expand Down Expand Up @@ -162,7 +161,7 @@ public void dispose() {
ServiceLocator.getEntityService().dispose();
ServiceLocator.getRenderService().dispose();
ServiceLocator.getResourceService().dispose();
whiteTexture.dispose();

ServiceLocator.clear();
}

Expand Down

0 comments on commit adb23c7

Please sign in to comment.