O'Reilly logo

Programming Video Games for the Evil Genius by Ian Cinnamon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Section Five
 
Strategy Games
 
Project 34: Bomb Diffuser—Bomb Squad Noob
Bomb Diffuser
As the newest member of the Bomb Squad, your job is to go out into the field and risk your life defusing live explosive devices. Eye-hand coordination, quick thinking … and a bit of luck is required.
 
Project
Learn the inner workings of a bomb by creating an inert one.
Making the game
First, create the JFrame. Set it to 500 by 550 pixels and set the background color to gray. Next, you will need to draw the image of the bomb and detonator. To do this, open Microsoft Paint, specify the precise size of your image by clicking “Image” and then click “Attributes,” as illustrated in Figure 34-1.
Figure 34-1   Image size.
Figure 34-2   Bomb design.
Figure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required