@@ -0,0 +1,1076 @@
+package com.leapmotionsi;%0A%0Aimport java.awt.Image;%0A%0Apublic abstract class Sprite %7B%0A%0A%09protected int x;%0A%09protected int y;%0A%09private int height;%0A%09private int width;%0A%09private Image image;%0A%09private boolean visible;%0A%0A%09public int getX() %7B%0A%09%09return x;%0A%09%7D%0A%0A%09public void setX(int x) %7B%0A%09%09this.x = x;%0A%09%7D%0A%0A%09public int getY() %7B%0A%09%09return y;%0A%09%7D%0A%0A%09public void setY(int y) %7B%0A%09%09this.y = y;%0A%09%7D%09%0A%0A%09public Image getImage() %7B%0A%09%09return image;%0A%09%7D%0A%0A%09public void setImage(Image image) %7B%0A%09%09this.image = image;%0A%09%09this.height = image.getHeight(null);%0A%09%09this.width = image.getWidth(null);%0A%09%7D%0A%09%0A%09public boolean isVisible() %7B%0A%09%09return visible;%0A%09%7D%0A%09%0A%09public void setVisibility(boolean visible) %7B%0A%09%09this.visible = visible;%0A%09%7D%0A%09%0A%09public boolean collidesWith(Sprite s) %7B%0A%09%09if (((s.x %3E= this.x && s.x %3C= this.x + this.width) %7C%7C (this.x %3E= s.x && this.x %3C= s.x + s.width)) %0A%09%09%09%09&& ((s.y %3E= this.y && s.y %3C= this.y + this.height) %7C%7C (this.y %3E= s.y && this.y %3C= s.y + s.height)))%0A%09%09%09return true;%0A%09%09else%0A%09%09%09return false;%0A%09%7D%0A%09%0A%09public int getWidth() %7B%0A%09%09return width;%0A%09%7D%0A%09%0A%09public int getHeight() %7B%0A%09%09return height;%0A%09%7D%0A%7D%0A

Create Sprite.java