This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
So, how would i make a basic game like this: a 100x100 pixel square with a black dot in the center, that can be moved left/right/up/down with the arrow keys? I think I know one way to do it but I would like to get your guys's feedback! Thanks!
Please take a look at your private messages for an important administrative issue.
Why don't you tell us about the one way that you already know?
Joined: Nov 21, 2011
Well I know a very limited amount about making a class that extends JComponent, and then inserting a paint method and painting individual shapes to the JComponent, and then adding the JComponent to a JFrame, and just adding keylisteners to get user input, but I would really like to see a simple example, because I just feel like my way is more tedious than it should be. And I think the other issue is all cleared up now, thanks