package com.pqbyte.coherence;

import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.viewport.ExtendViewport;

public class TheGame2 extends ApplicationAdapter {
  private static final float VIEWPORT_WIDTH = 30;

  private Stage stage;


  @Override
  public void create() {
    Player player = new Player(new Texture(Gdx.files.internal("cube128.png")), 0, 0);
    player.addListener(new MoveListener(player));

    Map map = new Map(
        new Texture(Gdx.files.internal("wallpaper.jpg")),
        Constants.WORLD_WIDTH,
        Constants.WORLD_HEIGHT
    );

    float screenWidth = Gdx.graphics.getWidth();
    float screenHeight = Gdx.graphics.getHeight();

    stage = new Stage(new ExtendViewport(
        VIEWPORT_WIDTH, VIEWPORT_WIDTH * (screenHeight / screenWidth)));
    stage.addActor(map);
    stage.addActor(player);
    stage.setKeyboardFocus(player);

    Gdx.input.setInputProcessor(stage);
  }

  @Override
  public void dispose() {
    stage.dispose();
  }

  @Override
  public void render() {
    Gdx.gl.glClearColor(1, 0, 0, 1);
    Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

    stage.act(Gdx.graphics.getDeltaTime());
    stage.draw();
  }
}

@@ -178,16 +178,99 @@
 exture;%0A
+import com.badlogic.gdx.math.Vector2;%0Aimport com.badlogic.gdx.physics.box2d.World;%0A
 import c
@@ -488,16 +488,38 @@
  stage;%0A
+  private World world;
 %0A%0A  @Ove
@@ -557,137 +557,49 @@
     
-Player player = new Player(new Texture(Gdx.files.internal(%22cube128.png%22)), 0, 0);%0A    player.addListener(new MoveListener(player)
+world = new World(new Vector2(0, 0), true
 );%0A%0A
@@ -740,21 +740,218 @@
 D_HEIGHT
+,
 %0A    
+    world%0A    );%0A%0A    Player player = new Player(%0A        new Texture(Gdx.files.internal(%22cube128.png%22)),%0A        0,%0A        0,%0A        world%0A    );%0A    player.addListener(new MoveListener(player)
 );%0A%0A    
@@ -1352,24 +1352,45 @@
 .dispose();%0A
+    world.dispose();%0A
   %7D%0A%0A  @Over
@@ -1499,24 +1499,55 @@
 FFER_BIT);%0A%0A
+    world.step(1 / 60f, 6, 2);%0A
     stage.ac

Implement Box2D API to TheGame2