(book image not shown)

More Do-It-Yourself Java Games

An Introduction to Java Graphics and Event-Driven Programming

by Annette Godtland

Quantity discounts available!

Buy Now Download MoreDIYJava.zip Download JDK and Eclipse Guide The Games PressKit

More Do-It-Yourself Java Games: An Introduction to Java Java Graphics and Event-Driven Programming is the second book in the Do-It-Yourself Java Games series. It teaches the basics of working with color, graphics, and many forms of user interface as you create card games, dice games, mazes, word games and many more puzzles and games. There are a few more files you need to do the lessons in the book. Download MoreDIYJava.zip to your computer and extract the files into your Java work folder.Buy More Do-It-Yourself Java Games now!

The Previous Book in the series is Do-It-Yourself Java Games: An Introduction to Java Computer Programming. The Next Book in the series is Advanced Do-It-Yourself Java Games: An Introduction to Java Threads and Animated Video Games.

The Puzzles and Games

You'll create ten computer programs using graphics and event-driven programming:

Wizard of Yes/No

Learn how to create a window, add text, change fonts(font), and add scroll bars.

The Wizard of Yes/No can help you make yes or no decisions.

Guess My Color

Learn the basics of Java color, window layout, and clickable buttons as you build this game.

The goal of Guess My Color is to match the target color by adjusting the red, green, and blue hue of the sample color.

Framed

Learn to customize buttons that change appearance when clicked.

Clicking tiles in Framed will turn groups of lights on or off. The goal is to form a frame of lights.

Watch Your Step

Learn to customize buttons that display color or text based on the state of the button.

The goal in Watch Your Step is to reveal all the safe terrain without stepping on a black hole. The numbers show how many squares of neighboring terrain have holes.

Sliding Tiles

Learn to create a menu bar and work with images as you build this game of sliding tiles.

The object of Sliding Tiles is to slide the image tiles back to their positions in the original picture.

Maze Generator: Maze and Anti-Maze

Learn to paint circles, lines, and rectangles as you draw the parts of a maze. You'll also learn to add keystroke input to a program and to create a custom options dialog.

Maze Generator can generate a random maze of any size. It will generate either a maze or an anti-maze. In an anti-maze, you can only cross lines and cannot move through open areas.

The object of the game is to move the green ball to the red ball by pressing cursor movement keys.

Greedy

Learn to use clickable, changeable drawings as you draw the dice for this game. You'll also learn to arrange many kinds of content in one window.

The object of Greedy is to achieve the highest score you can in ten rounds. Increase your score by rolling the dice as many times as you want. But don't be too greedy; if you have a bad roll, you could lose all your points!

Word Builder

Learn to combine color, images, and text in clickable drawings, and to resize window contents.

The object of Word Builder is to build words using all the tiles on the board. You receive points for each letter used. The longer the word, the more each letter is worth.

This game comes complete with a dictionary of more than 168,000 words.

Image Resizer

Learn to add a tool bar, draw with the mouse, and save image files.

Image Resizer can be used to resize and crop a JPEG file to any size while maintaining its original proportions.

Baker's Dozen Solitaire

Learn to create a new image file drawn entirely with Java and to drag items with the mouse.

The object of Baker's Dozen Solitaire is to move four rows of thirteen cards to the four top foundation stacks. You may move only one card at a time. Each foundation stack must be started with an ace. Cards may be moved to the foundation stacks in increasing numerical order and must be of the same suit. Each foundation stack ends with a king. Cards of any suit may be moved to other columns, but they must be placed in decreasing numerical order.

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, you may download these free games from our Products page.

Other Books by Annette Godtland

Do-It-Yourself Java Games Series of Books

Would you like to improve your Java programming skills while having fun doing it? 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.
  3. Advanced Do-It-Yourself Java Games: An Introduction to Java Threads and Animated Video Games - Learn More.
  4. Do-It-Yourself Multiplayer Java Games: An Introduction to Java Sockets and Internet-Based Games - Learn More.

More Books by Annette Godtland

Create Market-Ready Java Programs: Easy Installer, Trial Version, Secure Online Sales and More

Do you have a program that you would like to share with others, maybe even sell? You have much more to consider if you want to make it easy for others to use, to protect it, and to sell it safely and securely online. It's time to make your program market-ready. Learn More.