import java.awt.*; // class StarryNightAnimation extends Animation { public StarryNightAnimation() { // add the NightBackground //System.out.println("frameWidth = " + frameWidth); NightBackground bg = new NightBackground(20); this.addSprite(bg); // add 100 stars for (int i=0; i<100; i++) { this.addSprite(new SmallStar()); } // add the moon this.addSprite(new Moon(50, 50, 40, 20, bg)); this.setNumberFrames(100); } }