All pastes #193176 Raw Edit

Entity

public java v1 · immutable
·published 2006-10-06 17:06 UTC
rendered paste body
	public void paint(Graphics2D g) {		int xp = (int) (Map.TILE_SIZE * x);		int yp = (int) (Map.TILE_SIZE * y);				if (Game.down == true){			g.drawImage(image1, (int) (xp - 16), (int) (yp - 16), null);		}		if (Game.up == true){			g.drawImage(image2, (int) (xp - 16), (int) (yp - 16), null);		}		if (Game.left == true){			g.drawImage(image3, (int) (xp - 16), (int) (yp - 16), null);		}		if (Game.right == true){			g.drawImage(image4, (int) (xp - 16), (int) (yp - 16), null);		}				//g.drawImage(image1, (int) (xp - 16), (int) (yp - 16), null);	}