Move screen classes into their own package
This commit is contained in:
parent
ecf601fa68
commit
f9e432b0f9
3 changed files with 8 additions and 8 deletions
|
@ -1,15 +1,13 @@
|
||||||
package com.redstrate.watersymbol;
|
package com.redstrate.watersymbol;
|
||||||
|
|
||||||
import com.badlogic.gdx.ApplicationAdapter;
|
|
||||||
import com.badlogic.gdx.Game;
|
import com.badlogic.gdx.Game;
|
||||||
import com.badlogic.gdx.graphics.Texture;
|
|
||||||
import com.badlogic.gdx.graphics.g2d.BitmapFont;
|
import com.badlogic.gdx.graphics.g2d.BitmapFont;
|
||||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
||||||
import com.badlogic.gdx.utils.ScreenUtils;
|
import com.redstrate.watersymbol.screens.MainMenuScreen;
|
||||||
|
|
||||||
public class WaterSymbol extends Game {
|
public class WaterSymbol extends Game {
|
||||||
SpriteBatch batch;
|
public SpriteBatch batch;
|
||||||
BitmapFont font;
|
public BitmapFont font;
|
||||||
@Override
|
@Override
|
||||||
public void create () {
|
public void create () {
|
||||||
batch = new SpriteBatch();
|
batch = new SpriteBatch();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.redstrate.watersymbol;
|
package com.redstrate.watersymbol.screens;
|
||||||
|
|
||||||
import com.badlogic.gdx.Screen;
|
import com.badlogic.gdx.Screen;
|
||||||
import com.badlogic.gdx.graphics.OrthographicCamera;
|
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.TmxMapLoader;
|
||||||
import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer;
|
import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer;
|
||||||
import com.badlogic.gdx.utils.ScreenUtils;
|
import com.badlogic.gdx.utils.ScreenUtils;
|
||||||
|
import com.redstrate.watersymbol.WaterSymbol;
|
||||||
|
|
||||||
public class GameScreen implements Screen {
|
public class GameScreen implements Screen {
|
||||||
private final WaterSymbol game;
|
private final WaterSymbol game;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.redstrate.watersymbol;
|
package com.redstrate.watersymbol.screens;
|
||||||
|
|
||||||
import com.badlogic.gdx.Gdx;
|
import com.badlogic.gdx.Gdx;
|
||||||
import com.badlogic.gdx.Input;
|
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.OrthographicCamera;
|
||||||
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
|
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
|
||||||
import com.badlogic.gdx.utils.ScreenUtils;
|
import com.badlogic.gdx.utils.ScreenUtils;
|
||||||
|
import com.redstrate.watersymbol.WaterSymbol;
|
||||||
|
|
||||||
public class MainMenuScreen implements Screen {
|
public class MainMenuScreen implements Screen {
|
||||||
OrthographicCamera camera;
|
OrthographicCamera camera;
|
||||||
|
|
||||||
GlyphLayout titleLayout;
|
GlyphLayout titleLayout;
|
||||||
|
|
||||||
MainMenuScreen(WaterSymbol game) {
|
public MainMenuScreen(WaterSymbol game) {
|
||||||
this.game = game;
|
this.game = game;
|
||||||
|
|
||||||
camera = new OrthographicCamera();
|
camera = new OrthographicCamera();
|
Reference in a new issue