import Myro.*; public class Ball { private MyroCanvas myCanvas; private static final double GRAVITY = 0.98; private static final double ENERGYLOSS = 0.8; //multiplier to slow down ball private static final int RADIUS = 10; //how big is the circle? private static final double DELAY = 0.05; //used in sleep private MyroCircle myCircle; //This will show where the ball is private double xPos; //Current x position of ball private double yPos; //Current y position of ball private int maxX; //Highest x-value on the canvas private int maxY; //Highest y-xalue on the canvas public Ball(MyroCanvas gamesCanvas, int canvasX, int canvasY, int r, int g, int b, int startXLocation, int startYLocation) { } public void animate(double xVelocity, double yVelocity) { boolean notDone = true; while(notDone) { //sleep MyroUtils.sleep(DELAY); } } }