began work on debug spawning system

This commit is contained in:
2017-05-30 23:17:45 -05:00
parent 4894d6eea8
commit 5776586458
6 changed files with 101 additions and 16 deletions

View File

@@ -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);
}
}