import processing.core.PApplet;


public class MainGame extends Game {
   
  int x=0, y=0;
  
  Player p;
    
  public void initialize() {
    a.size(150,150);
    p = new Player(this);
    p.x = 75;
    p.y = 75;
  }
  public void calc() {
    x = a.mouseX;
    y = a.mouseY;
    p.update(this);
  }
  
  public void draw() {
    a.background(255);
    a.stroke(0);
    a.line(x,y-10,x,y+10);
    a.line(x-10,y,x+10,y);
    p.draw(a.g);
  }
}
