@@ -0,0 +1,1770 @@
+package com.pqbyte.coherence;%0A%0Aimport com.badlogic.gdx.graphics.Texture;%0Aimport com.badlogic.gdx.graphics.g2d.Batch;%0Aimport com.badlogic.gdx.graphics.g2d.Sprite;%0Aimport com.badlogic.gdx.scenes.scene2d.Actor;%0A%0A/**%0A * The player being controlled.%0A */%0Apublic class Player extends Actor %7B%0A  private static final int PLAYER_SIZE = 2;%0A  private static final float STEP_SIZE = 0.5f;%0A%0A  private boolean goingLeft = false;%0A  private boolean goingRight = false;%0A  private boolean goingUp = false;%0A  private boolean goingDown = false;%0A%0A  private Sprite sprite;%0A%0A  public Player(Texture texture, float startX, float startY) %7B%0A    sprite = new Sprite(texture);%0A    setBounds(startX, startY, PLAYER_SIZE, PLAYER_SIZE);%0A  %7D%0A%0A  @Override%0A  public void act(float delta) %7B%0A    float horizontal = 0;%0A    float vertical = 0;%0A%0A    if (goingLeft && getX() %3E 0) %7B%0A      horizontal -= STEP_SIZE;%0A    %7D%0A    if (goingRight && getX() + getWidth() %3C Constants.WORLD_WIDTH) %7B%0A      horizontal += STEP_SIZE;%0A    %7D%0A    if (goingUp && getY() + getHeight() %3C Constants.WORLD_HEIGHT) %7B%0A      vertical += STEP_SIZE;%0A    %7D%0A    if (goingDown && getY() %3E 0) %7B%0A      vertical -= STEP_SIZE;%0A    %7D%0A%0A    setPosition(getX() + horizontal, getY() + vertical);%0A%0A    getStage().getCamera().position.set(%0A        getX() + getWidth() / 2f,%0A        getY() + getHeight() / 2f,%0A        0%0A    );%0A  %7D%0A%0A  @Override%0A  public void draw(Batch batch, float parentAlpha) %7B%0A    batch.draw(sprite, getX(), getY(), getWidth(), getHeight());%0A  %7D%0A%0A  public void setGoingLeft(boolean going) %7B%0A    goingLeft = going;%0A  %7D%0A%0A  public void setGoingRight(boolean going) %7B%0A    goingRight = going;%0A  %7D%0A%0A  public void setGoingUp(boolean going) %7B%0A    goingUp = going;%0A  %7D%0A%0A  public void setGoingDown(boolean going) %7B%0A    goingDown = going;%0A  %7D%0A%7D%0A

Add Player actor