top of page
Writer's pictureJenny Wang

Week 6 & 7: Burst balloons game

Updated: Oct 21, 2020



While I'm learning arrays and objects, I immediately thought about the movie, up. I wanted to make an array of balloons with random colors and sizes while they jitters, then release to the sky once I click on them. I tried to use random() to achieve colors, and class() to create the jitter effect (see Video 1). However, the colors keep on changing. When I add noLoop(); all the balloons stopped jittering.

Video 1


Then, I started playing around with all the different interactions with the balloons. I made them rise and could delete them one by one. After all the changes, I still didn't make random colors. Halloween is coming up, and I'm playing around with interactions with balloon. I thought about the movie, "It". The main character was holding a red balloon.


From there, I wanted to create something spooky, and make fun interactions with the red balloons. That's how the burst balloons game came out (check out the code link). The goal of this game is to try to make all the balloons disappear before they go out of frames.


One of the things I struggle the most when I make array of objects is to figure out the logics and orders, which is probably more of a general struggle for coding. However, I always can figure it out after rewatching class recordings and Shiffman's videos, which is the satisfying part coding.


Questions:

  • I'm confused by when to change/add things in class(), setup() and draw(). Is there a good way to remember or categorize?

  • Is there a resource that I can find a list of frequent used functions for arrays, like _.push()?

Improvements:

  • Make all the balloons appear in a loop after they disappear

  • Set a timer and make it look more like a game

12 views0 comments

Recent Posts

See All

Comments


bottom of page