Homework 5


Here is a few screen shots of this weeks assingment



This week we were given some basic code that consisted of a simple "game" where you could click anywhere in the screen and it would generate boxes. We had to take that basic game and improve it.

We decided to created a box that would be able to accelerate the rest of the boxes as they went by, we call this box the "magnet" since it was originally suppose to atract boxes to it's self when they went by. The only thing is that we ran out of time and we couldn't fix so that it would behave the way that we want it to. Right now all it does is that it makes the other boxes move faster but only from side to side. We also need to make the radius of the force a lot bigger, because right now it only works if the other box goes exactly thru the middle point of the magnet. Otherwise it just goes by like a normal box would.

Here is the source code:

  1. Lab5.zip