@@ -0,0 +1,786 @@
+package net.starbs.antipleurdawn;%0A%0Aimport javafx.scene.canvas.Canvas;%0Aimport javafx.scene.image.Image;%0A%0Aimport java.awt.image.BufferedImage;%0A%0A/**%0A * Created by sharr_000 on 6/2/2016.%0A */%0Apublic class Spritesheet %7B%0A%0A    Image sheet;%0A    int spr_width;%0A    int spr_height;%0A%0A    public Spritesheet(String path, int sprite_width, int sprite_height) %7B%0A        sheet = new Image(path);%0A        spr_width = sprite_width;%0A        spr_height = sprite_height;%0A    %7D%0A%0A    public Canvas getSubImageCanvas(int x, int y) %7B%0A        Canvas result = new Canvas(spr_width, spr_height);%0A        result.getGraphicsContext2D().drawImage(%0A                sheet,%0A                x*spr_width,%0A                y*spr_height,%0A                spr_width,%0A                spr_height);%0A        return result;%0A    %7D%0A%7D%0A

Add Spritesheet class