// Path: 1.8.04-Exercise-AddDifficultySelectScreen/core/src/com/udacity/gamedev/icicles/Constants.java
// public enum Difficulty {
//     EASY(EASY_SPAWNS_PER_SECOND, EASY_LABEL),
//     MEDIUM(MEDIUM_SPAWNS_PER_SECOND, MEDIUM_LABEL),
//     HARD(HARD_SPAWNS_PER_SECOND, HARD_LABEL);
// 
//     float spawnRate;
//     String label;
// 
//     Difficulty(float spawnRate, String label) {
//         this.spawnRate = spawnRate;
//         this.label = label;
//     }
// }


import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.Align;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.udacity.gamedev.icicles.Constants.Difficulty;
        viewport.update(width, height, true);
    }

    @Override
    public void pause() {

    }

    @Override
    public void resume() {

    }

    @Override
    public void hide() {
        batch.dispose();
        font.dispose();
        renderer.dispose();
    }

    @Override
    public void dispose() {

    }

    @Override
    public boolean touchDown(int screenX, int screenY, int pointer, int button) {
        Vector2 worldTouch = viewport.unproject(new Vector2(screenX, screenY));

        if (worldTouch.dst(Constants.EASY_CENTER) < Constants.DIFFICULTY_BUBBLE_RADIUS) {
// Path: 1.8.04-Exercise-AddDifficultySelectScreen/core/src/com/udacity/gamedev/icicles/Constants.java
// public enum Difficulty {
//     EASY(EASY_SPAWNS_PER_SECOND, EASY_LABEL),
//     MEDIUM(MEDIUM_SPAWNS_PER_SECOND, MEDIUM_LABEL),
//     HARD(HARD_SPAWNS_PER_SECOND, HARD_LABEL);
// 
//     float spawnRate;
//     String label;
// 
//     Difficulty(float spawnRate, String label) {
//         this.spawnRate = spawnRate;
//         this.label = label;
//     }
// }


// Path: IciclesComplete/core/src/com/udacity/gamedev/icicles/DifficultyScreen.java
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.Align;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.udacity.gamedev.icicles.Constants.Difficulty;

        viewport.update(width, height, true);
    }

    @Override
    public void pause() {

    }

    @Override
    public void resume() {

    }

    @Override
    public void hide() {
        batch.dispose();
        font.dispose();
        renderer.dispose();
    }

    @Override
    public void dispose() {

    }

    @Override
    public boolean touchDown(int screenX, int screenY, int pointer, int button) {
        Vector2 worldTouch = viewport.unproject(new Vector2(screenX, screenY));

        if (worldTouch.dst(Constants.EASY_CENTER) < Constants.DIFFICULTY_BUBBLE_RADIUS) {
            game.showIciclesScreen(Difficulty.EASY);