User Tools

Site Tools


balloons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
balloons [2018/08/17 08:37] frchrisballoons [2018/08/17 08:43] frchris
Line 1: Line 1:
 +[[https://archive.org/details/Balloons1.screenflow|Watch the tutorial]]
 +
 CheckList: CheckList:
   - Add a method in the ''Balloon'' class called ''rise()'' which is the reverse of ''drop()''   - Add a method in the ''Balloon'' class called ''rise()'' which is the reverse of ''drop()''
Line 51: Line 53:
  
 <code java BalloonDrop.java> <code java BalloonDrop.java>
 +import java.awt.Color;
 import java.awt.Font; import java.awt.Font;
 import java.awt.Graphics; import java.awt.Graphics;
Line 68: Line 71:
  public static int HEIGHT=600;  public static int HEIGHT=600;
     private Font titleFont, regularFont;     private Font titleFont, regularFont;
-    private ArrayList&lt;Balloon&gt; balloons;+    private ArrayList<Balloonballoons;
     private Timer timer;     private Timer timer;
  /**  /**
Line 82: Line 85:
     titleFont = new Font("Roman", Font.BOLD, 18);     titleFont = new Font("Roman", Font.BOLD, 18);
     regularFont = new Font("Helvetica", Font.PLAIN, 12);     regularFont = new Font("Helvetica", Font.PLAIN, 12);
-    balloons = new ArrayList&lt;Balloon&gt;();+    balloons = new ArrayList<Balloon>();
     timer = new Timer(10, this);     timer = new Timer(10, this);
         timer.start();         timer.start();
balloons.txt · Last modified: 2018/08/18 20:14 by cthiel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki