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.
Get Programming Video Games for the Evil Genius now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.