refactor
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
package wtf.beatrice.retrorender;
|
||||
|
||||
import com.badlogic.gdx.ApplicationAdapter;
|
||||
import com.badlogic.gdx.Game;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.graphics.*;
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
||||
import com.badlogic.gdx.graphics.g3d.*;
|
||||
import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
|
||||
import com.badlogic.gdx.graphics.g3d.environment.DirectionalLight;
|
||||
import com.badlogic.gdx.graphics.g3d.utils.ModelBuilder;
|
||||
import com.badlogic.gdx.math.Vector3;
|
||||
import com.badlogic.gdx.utils.ScreenUtils;
|
||||
import wtf.beatrice.retrorender.engine.render.GameScreen;
|
||||
|
||||
/** {@link com.badlogic.gdx.ApplicationListener} implementation shared by all platforms. */
|
||||
public class Main extends Game
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.config;
|
||||
|
||||
public class GameSettings {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.render;
|
||||
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.render;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.Input;
|
||||
@@ -6,6 +6,8 @@ import com.badlogic.gdx.graphics.Cursor;
|
||||
import com.badlogic.gdx.graphics.Pixmap;
|
||||
import com.badlogic.gdx.graphics.PerspectiveCamera;
|
||||
import com.badlogic.gdx.math.Vector3;
|
||||
import wtf.beatrice.retrorender.engine.config.GameSettings;
|
||||
import wtf.beatrice.retrorender.engine.world.World3D;
|
||||
|
||||
public class FpsCameraController {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender;
|
||||
package wtf.beatrice.retrorender.engine.render;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.Input;
|
||||
@@ -16,7 +16,13 @@ import com.badlogic.gdx.graphics.g3d.environment.DirectionalShadowLight;
|
||||
import com.badlogic.gdx.graphics.g3d.utils.DepthShaderProvider;
|
||||
import com.badlogic.gdx.graphics.glutils.FrameBuffer;
|
||||
import com.badlogic.gdx.math.Vector3;
|
||||
import wtf.beatrice.retrorender.engine.*;
|
||||
import wtf.beatrice.retrorender.Main;
|
||||
import wtf.beatrice.retrorender.engine.config.GameSettings;
|
||||
import wtf.beatrice.retrorender.engine.world.ModelLibrary;
|
||||
import wtf.beatrice.retrorender.engine.ui.DebugHud;
|
||||
import wtf.beatrice.retrorender.engine.ui.GameUi;
|
||||
import wtf.beatrice.retrorender.engine.ui.UiMode;
|
||||
import wtf.beatrice.retrorender.engine.world.World3D;
|
||||
|
||||
public class GameScreen implements Screen {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.render;
|
||||
|
||||
public class RetroViewportHelper {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.ui;
|
||||
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
import com.badlogic.gdx.graphics.PerspectiveCamera;
|
||||
@@ -8,6 +8,7 @@ import com.badlogic.gdx.graphics.g2d.BitmapFont;
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;
|
||||
import wtf.beatrice.retrorender.engine.render.DayNightCycle;
|
||||
|
||||
public class DebugHud {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.ui;
|
||||
|
||||
import wtf.beatrice.retrorender.engine.config.GameSettings;
|
||||
|
||||
public class GameUi {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.ui;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.ui;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
@@ -9,6 +9,7 @@ import com.badlogic.gdx.graphics.g2d.GlyphLayout;
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
||||
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;
|
||||
import com.badlogic.gdx.math.MathUtils;
|
||||
import wtf.beatrice.retrorender.engine.config.GameSettings;
|
||||
|
||||
public class SettingsMenu {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.ui;
|
||||
|
||||
public enum UiMode {
|
||||
GAMEPLAY,
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.world;
|
||||
|
||||
import com.badlogic.gdx.math.Vector3;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.world;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.graphics.GL20;
|
||||
@@ -1,6 +1,7 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.world;
|
||||
|
||||
import com.badlogic.gdx.graphics.g3d.ModelInstance;
|
||||
|
||||
public class TownFactory {
|
||||
|
||||
private final ModelLibrary models;
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.world;
|
||||
|
||||
import com.badlogic.gdx.graphics.g3d.Environment;
|
||||
import com.badlogic.gdx.graphics.g3d.ModelBatch;
|
||||
@@ -1,4 +1,4 @@
|
||||
package wtf.beatrice.retrorender.engine;
|
||||
package wtf.beatrice.retrorender.engine.world;
|
||||
|
||||
import com.badlogic.gdx.graphics.g3d.ModelInstance;
|
||||
import com.badlogic.gdx.math.Vector3;
|
||||
Reference in New Issue
Block a user