package your.package.here;

import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;

public class GameState {
    private int boardSize = 30; //How many squares in the board
    private int yOffset = 400; //How high the board is off the bottom
    private ShapeRenderer shapeRenderer = new ShapeRenderer();

    public void update(float delta) { //update game logic

    }

    public void draw(int width, int height, OrthographicCamera camera) { //draw snake and board
        shapeRenderer.setProjectionMatrix(camera.combined);
        shapeRenderer.begin(ShapeRenderer.ShapeType.Filled);

        shapeRenderer.setColor(1,1,1,1);
        shapeRenderer.rect(0, yOffset, width, width);

        shapeRenderer.setColor(0,0,0,1);
        shapeRenderer.rect(0+5, yOffset+5, width-5*2, width-5*2);

        shapeRenderer.end();
    }
}