began work on debug spawning system
This commit is contained in:
@@ -4,6 +4,7 @@ import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.InputMultiplexer;
|
||||
import com.badlogic.gdx.ScreenAdapter;
|
||||
import com.badlogic.gdx.graphics.GL20;
|
||||
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
|
||||
|
||||
import zero1hd.polyjet.Polyjet;
|
||||
import zero1hd.polyjet.ui.stages.CreativeStage;
|
||||
@@ -14,10 +15,14 @@ public class CreativeDebugScreen extends ScreenAdapter {
|
||||
GamePlayArea gamePlayArea;
|
||||
InputMultiplexer inputs;
|
||||
|
||||
ShapeRenderer shapes;
|
||||
|
||||
public CreativeDebugScreen(Polyjet core, MainMenu mainMenu) {
|
||||
creative = new CreativeStage(core, mainMenu);
|
||||
gamePlayArea = new GamePlayArea(core);
|
||||
|
||||
shapes = new ShapeRenderer();
|
||||
|
||||
gamePlayArea = new GamePlayArea(core.getAssetManager(), shapes);
|
||||
inputs = new InputMultiplexer(creative, gamePlayArea);
|
||||
}
|
||||
|
||||
@@ -34,7 +39,10 @@ public class CreativeDebugScreen extends ScreenAdapter {
|
||||
|
||||
gamePlayArea.getViewport().apply();
|
||||
gamePlayArea.act();
|
||||
|
||||
shapes.begin();
|
||||
gamePlayArea.draw();
|
||||
shapes.end();
|
||||
|
||||
creative.getViewport().apply();
|
||||
creative.act();
|
||||
@@ -44,7 +52,6 @@ public class CreativeDebugScreen extends ScreenAdapter {
|
||||
|
||||
@Override
|
||||
public void resize(int width, int height) {
|
||||
// TODO Auto-generated method stub
|
||||
super.resize(width, height);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user