function MarioChangeDirectionSprite(x, y, canvas) {
    Sprite.call(this, x, y, canvas);
	this.setSpriteMap(MarioChangeDirectionSprite.SPRITEMAP);
	this.setColorMap(MarioChangeDirectionSprite.COLORMAP);
	return this;
}

MarioChangeDirectionSprite.SPRITEMAP = 
    [[0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0],
	 [0, 0, 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0],
	 [0, 0, 2, 2, 2, 2, 2, 2, 3, 2, 3, 3, 0, 0, 0, 0],
	 [0, 3, 3, 2, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 0, 0],
	 [0, 3, 3, 2, 3, 3, 2, 2, 3, 3, 2, 2, 3, 3, 3, 0],
	 [0, 0, 3, 3, 2, 3, 3, 3, 3, 3, 3, 2, 2, 2, 0, 0],
	 [0, 0, 0, 1, 1, 1, 2, 2, 2, 1, 3, 3, 3, 0, 0, 0],
	 [0, 0, 1, 1, 3, 3, 3, 2, 1, 1, 2, 2, 2, 2, 0, 0],
	 [0, 0, 1, 2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 0, 0],
	 [0, 0, 1, 1, 1, 3, 3, 2, 2, 2, 2, 2, 2, 2, 0, 0],
	 [0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 0, 0, 0],
	 [0, 0, 0, 1, 2, 2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0],
	 [0, 0, 0, 0, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0],
	 [0, 2, 2, 2, 1, 1, 2, 2, 2, 1, 1, 0, 0, 0, 0, 0],
	 [0, 2, 2, 2, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
 	 [0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0]];

MarioChangeDirectionSprite.COLORMAP = { 0: null, 1: [248, 56, 0, 255], 2: [172, 124, 0, 255], 3: [255, 160, 68, 255] }

// Need to fix this method of inheritance!
MarioChangeDirectionSprite.prototype = Sprite.prototype;
