Version: 5.2.1.6

9 6/7: A Whole New World

The goal of this lab is to practice designing world programs in an object-oriented setting.

New Partners

Be sure to check the Blog for the revised partner list for the second part of this course.

Fun New Worlds

Just as we used the World library for designing interactive video games in Fundamentals I, there is a Java library that is quite similar for designing interactive games written in Java.

The library, developed by Prof. Proulx, is avalable here:

http://www.ccs.neu.edu/javalib/FunWorld/

Have a look at the JavaDocs for the library here, in particular, look at the World class:

http://www.ccs.neu.edu/javalib/FunWorld/funworld-docs/

Download the necessary jar files for the library and make sure Eclipse knows where to find them. Ian and Jason can help you with this.

Exercise 1. Design the simplest world program you can; it may simply tick along and do nothing.

Exercise 2. Design a world program that involves a single circular image dropping from off the top of the screen to off the bottom of the screen.

Exercise 3. Design a world program that involves multiple circular images dropping from off the top of the screen to off the bottom of the screen.

Exercise 4. Design a world program that involves multiple circular images dropping from off the top of the screen to off the bottom of the screen. Whenever the player hits the "c" key, a new circle should fall from the top.

Exercise 5. Revise the above program so that circles bounce on the bottom edge of the screen and the move up until they’re off the top of the screen.