(book image not shown)

Advanced Do-It-Yourself Java Games

An Introduction to Java Threads and Animated Video Games

by Annette Godtland

Available at Amazon.com!

Buy Now Download AdvancedDIYJava.zip The Games

Advanced Do-It-Yourself Java Games: An Introduction to Java Threads and Animated Video Games is the third book in the Do-It-Yourself Java Games series. You'll add animation and sound to computer games as you develop advanced programming skills: abstract classes and interfaces, state driven programming, and model/view/controller design. This book is available at Amazon.com. There are a few more files you need to do the lessons in the book. Download AdvancedDIYJava.zip to your computer and extract the files into your Java work folder. The Previous Book in the series is More Do-It-Yourself Java Games: An Introduction to Java Graphics and Event-Driven Programming .

The Puzzles and Games

You'll use threads and advanced programming techniques to create eight animated video games that are modeled after some of the classics:

My Timer

Learn how to create, start, and stop a thread that continually updates the display, and how to add sound to a program.

My Timer counts down the number of seconds from any start time and beeps when the timer reaches zero.

Speed Words

Learn how to move objects with the mouse and how to integrate the timer created for the previous program into this program's game.

Make as many other words as possible from the letters of a random seven-letter word, in sixty seconds.

Match Three

Learn how to use a thread to automatically move objects.

Swap balls to form chains of three or more matching balls. Completed chains will be removed and replaced by new balls. Score more points for longer chains.

Baby Bird

Learn to create continuous motion using a Swing timer and learn to detect collisions.

Flap the baby bird's wings to guide the bird through the gaps in the walls. More points are given for flying through smaller gaps.

Falling Bricks

Learn to use abstract classes.

Move, rotate, and drop falling bricks to complete rows. Earn more points by completing multiple rows with a single brick.

Gravity Well

Learn to use state-driven programming for managing game activity and to detect collisions of irregularly-shaped objects.

Softly land a spaceship without crashing into walls or using up all the fuel. The softer and the more difficult the landing pad, the more points are awarded and the more fuel is replenished.

Cat and Mouse

Learn to use an interface for more efficient state-driven code.

Guide the mouse to eat cheese without getting caught by the cat. Be careful - the cat can hear when the mouse moves and will try to hunt it down.

Blitz

Learn to separate the program logic from user interface using a model/view/controller design.

Blitz is a popular card game also known as Scat or 31. Try to get 31 points in one suit or rap if another player might have fewer points. But beware, anyone who raps with the worst hand must pay double.

The book provides complete instructions for creating each of these games youself. However, if you would rather download and install the finished games than write the programs yourself, a few of them are available for you to download for free from our Products page.

The Do-It-Yourself Java Games Series of Books

Learn more about the Do-It-Yourself Java Games series of books. Learn why these books were written, why learn computer programming, and why Java. Learn how these books are organized, why they were written as electronic books, and what's next.

The books ccurrently available in the series:

  1. Do-It-Yourself Java Games: An Introduction to Java Computer Programming - Learn More.
  2. More Do-It-Yourself Java Games: An Introduction to Java Graphics and Event-Driven Programming - Learn More.
  3. Advanced Do-It-Yourself Java Games: An Introduction to Java Threads and Animated Video Games.
Green Certified Website Hosted By
Web Hosting by PowWeb
Special offer