/*
 * Description: Handles creating the current world/map
 */

package com.manic.game;

public class Stage {
  
   /* public Stage (Viewport viewport)
  
   draw()

   public void resize(int width, int height) {
      viewport.update(width, height);
   }

   public void create() {
    stage = new Stage(new StretchViewport(width, height));
   }  

*/

}

@@ -85,85 +85,644 @@
 e;%0A%0A
-public class Stage %7B%0A  %0A   /* public Stage (Viewport viewport)%0A  %0A   draw()
+import com.badlogic.gdx.graphics.OrthographicCamera;%0Aimport com.badlogic.gdx.physics.box2d.Body;%0Aimport com.badlogic.gdx.physics.box2d.Box2DDebugRenderer;%0Aimport com.badlogic.gdx.physics.box2d.World;%0Aimport com.badlogic.gdx.scenes.scene2d.Stage;%0A%0Aimport Utils.BodyGenerator;%0A%0A%0Apublic class GameStages extends Stage %7B%0A%0A    private static final int VIEWPORT_WIDTH = 20;%0A    private static final int VIEWPORT_HEIGHT = 13;%0A%0A    private World world;%0A    private Body ground;%0A%0A    private final float TIME_STEP = 1 / 300f;%0A    private float accumulator = 0f;%0A%0A    private OrthographicCamera camera;%0A    private Box2DDebugRenderer renderer;
 %0A%0A
+ 
    p
@@ -731,119 +731,473 @@
 lic 
-void resize(int width, int height) %7B%0A      viewport.update(width, height);%0A   %7D%0A%0A   public void create(
+GameStages() %7B%0A        world = BodyGenerator.createWorld();%0A        ground = BodyGenerator.createGround(world);%0A        renderer = new Box2DDebugRenderer();%0A        setupCamera();%0A    %7D%0A%0A    private void setupCamera() %7B%0A        camera = new OrthographicCamera(VIEWPORT_WIDTH, VIEWPORT_HEIGHT);%0A        camera.position.set(camera.viewportWidth / 2, camera.viewportHeight / 2, 0f);%0A        camera.update();%0A    %7D%0A%0A    @Override%0A    public void act(float delta
 ) %7B%0A    
 stag
@@ -1196,73 +1196,347 @@
     
+  
-stage = new Stage(new StretchViewport(width, height)
+  super.act(delta);%0A%0A        // Fixed timestep%0A        accumulator += delta;%0A%0A        while (accumulator %3E= delta) %7B%0A            world.step(TIME_STEP, 6, 2);%0A            accumulator -= TIME_STEP;%0A        %7D%0A%0A       %0A    %7D%0A%0A    @Override%0A    public void draw() %7B%0A        super.draw(
 );%0A   
+ 
-%7D  %0A%0A*/
+    renderer.render(world, camera.combined);%0A    %7D
 %0A%0A%7D%0A

Update Stage.java