Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bubble[] bubbles;
- void setup(){
- size(640,480);
- bubbles = new Bubble[100];
- for(int i = 0; i < 100; i++){
- bubbles[i] = new Bubble();
- }
- }
- void draw(){
- background(0);
- for(int i = 0; i < 100; i++){
- bubbles[i].ascend();
- bubbles[i].display();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement