package ie.dit;

import processing.core.PApplet;
import processing.core.PImage;
import processing.core.PVector;

public class Map extends GameObject{
	
	PImage img;
	
	Map(PApplet applet){
		super(applet);
		location = new PVector(0, 0);
		w = this.applet.width;
		h= this.applet.height;
		img = this.applet.loadImage("data/map.jpg");
	} // End constructor.
	
	public void display() {
		this.applet.image(img, location.x, location.y, w, h);
	} // End display.
	
} // End Map.
package ie.dit;

import processing.core.PApplet;
import processing.core.PImage;
import processing.core.PVector;

public class Map extends GameObject{
	
	PImage img;
	
	Map(PApplet applet){
		super(applet);
		location = new PVector(0, 0);
		w = this.applet.width;
		h= this.applet.height;
		img = this.applet.loadImage("data/map.jpg");
	} // End constructor.
	
	public void display() {
		this.applet.image(img, location.x, location.y, w, h);
	} // End display.
	//Update
} // End Map.
Update Test