Skip to content
Greg Westerfield, Jr. edited this page Oct 23, 2013 · 8 revisions

Here is my AirBalloon sketch. I made my balloon smaller and also added my own feature. I gave the user the ability to move the balloon to the left and the right.
Here is the link to the sketch on screencast [http://screencast.com/t/b40EMEoptr]

Classes in the sketch


### AirBalloon: This is the driver class
**Attributes**
Balloon ballon;
Background background;
Turret t1, t2, t3, t4;
Projectiles projectiles;

**Responsibilities**
setup()
draw()

### Balloon: The is the balloon
**Attributes**
PImage balloonImage;
PVector acc, vel, loc;
boolean upKey, downKey, turnUp, turnDown;

**Responsibilities**
update()
display()

### Projectile: The is the projectile
**Attributes**
PVector vel, loc;


**Responsibilities**
update()
display()

### Turret: The is the turret
**Attributes**
PVector vel, loc;


**Responsibilities**
update()
display()
Clone this wiki locally