This is a demo I made to get my class started on their own Greenfoot games. I've just updated it with source code. An interesting thing in this project was a general-purpose StatusBar class that can be attached to other Actors, or independently placed in the world. The computer-controlled car moves completely randomly -- there's no AI in there.
Right now the left/right arrow keys (or a/d for the second car) simply rotate the car as it's moving... what would you suggest for more realistic turning?
Recent Comments
2009/3/27
bumpercars-v2