package com.spaceshooter; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; //Main class, program flow starts here. public class SpaceShooter extends Game { private MenuScreen menuScreen; private static boolean isMuted; @Override public void create() { isMuted = false; menuScreen = new MenuScreen(this); setScreen(menuScreen); } @Override public void resize(int width, int height) { } public static boolean isMuted() { return isMuted; } public static void muteSound() { isMuted = true; } public static int getLeftBound() { return -1 * (Gdx.graphics.getWidth() / 2); } public static int getRightBound() { return (Gdx.graphics.getWidth() / 2); } public static int getTopBound() { return (Gdx.graphics.getHeight() / 2); } public static int getBottomBound() { return -1 * (Gdx.graphics.getHeight() / 2); } //Normalize the speed of bullets across the game, easy to re-adjust difficulty. public static float getBulletSpeed() { return 150f; } }