class GuiltProj { float x, y; float dx, dy; float rotation; PImage sprite; GuiltProj(float X, float Y) { x = X; y = Y; } void render() { pushMatrix(); translate(x, y); rotate(rotation); translate(-x, -y); //ellipse(x, y, 20, 40); image(sprite, x, y); popMatrix(); } }