Section Three
Board Games
Project 18: Whack-an Evil Genius—The Lab
Whack-an Evil Genius
An Evil Genius is hiding in his lab waiting to unleash havoc upon the world. Because he fears sunshine and fresh air, he only comes out briefly. When he does, your job is to whack him with a click of the mouse so he goes back to his underground lab. The problem? He keeps cloning himself.
Project
Begin by creating the laboratory.
New building blocks
Components, JButtons, JLabels
Components
A component is a device that can be added to any Java program to increase functionality. Some common components include buttons, textfields, and labels. Before you add components, however, you need a place to put them. That place is called a Container. To create a ...
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.