final/src/Camera.java

12 lines
357 B
Java

import java.io.Serializable;
//This class controls the x-scrolling aspect for the player
//If you look at the players absolute position(Relative to the screen), the players y position changes, but the x position
//never actually changes.
public class Camera implements Serializable {
public int x;
public Camera(int x){
this.x = x;
}
}