1
Fork 0

Move screen classes into their own package

This commit is contained in:
Joshua Goins 2022-04-30 18:57:04 -04:00
parent ecf601fa68
commit f9e432b0f9
3 changed files with 8 additions and 8 deletions

View file

@ -1,15 +1,13 @@
package com.redstrate.watersymbol;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.ScreenUtils;
import com.redstrate.watersymbol.screens.MainMenuScreen;
public class WaterSymbol extends Game {
SpriteBatch batch;
BitmapFont font;
public SpriteBatch batch;
public BitmapFont font;
@Override
public void create () {
batch = new SpriteBatch();

View file

@ -1,4 +1,4 @@
package com.redstrate.watersymbol;
package com.redstrate.watersymbol.screens;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.OrthographicCamera;
@ -7,6 +7,7 @@ import com.badlogic.gdx.maps.tiled.TiledMapRenderer;
import com.badlogic.gdx.maps.tiled.TmxMapLoader;
import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer;
import com.badlogic.gdx.utils.ScreenUtils;
import com.redstrate.watersymbol.WaterSymbol;
public class GameScreen implements Screen {
private final WaterSymbol game;

View file

@ -1,4 +1,4 @@
package com.redstrate.watersymbol;
package com.redstrate.watersymbol.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
@ -6,13 +6,14 @@ import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.badlogic.gdx.utils.ScreenUtils;
import com.redstrate.watersymbol.WaterSymbol;
public class MainMenuScreen implements Screen {
OrthographicCamera camera;
GlyphLayout titleLayout;
MainMenuScreen(WaterSymbol game) {
public MainMenuScreen(WaterSymbol game) {
this.game = game;
camera = new OrthographicCamera();