On this page:
Intro
1 Lab Skeleton
2 Many Falling Ball
6.12

Lab 7: 99 Red Falling Balls

Intro

You’ll work in this lab with your assigned partner. Help each other get up and running with IntelliJ and Java (Lab 4: Same Story, More Syntax). The two of you will work as a team to solve problems. At any time, one of you will be the Head and the other will be the Hands. The Head does the thinking and the Hands does the typing. Hands type only what the Head tells them to, but you’re free to discuss any issues that pop up. We’ll have you switch off during the lab to make sure each of you get practice problem solving, dealing with syntax, and getting finger exercises on the keyboard.

1 Lab Skeleton

You must start this lab with this project skeleton. Unzip the file into your IdeaProjects directory and open it with IntelliJ to get started.

We’ll be using the JavaLib image and world library again in this lab; it’s all set up in the project skeleton. See the documentation for details about available classes/methods.

2 Many Falling Ball

Our goal in this lab is to create a simple world with an arbitrary number of falling balls. Each ball should be initialized with a random X and Y velocity and should fall at a rate of 9.8 pixels per second. The lab skeleton gives you an outline of the tasks you need to complete to get this program up and running, so go get started!