It's not a secret anymore!
The moose likes Applets and the fly likes games in applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "games in applets" Watch "games in applets" New topic

games in applets

Amit Sethi
Ranch Hand

Joined: May 30, 2006
Posts: 45
can any one please show me the way for making games in applets.
which book to read , how to start ? etc
Any guide lines for a newbie.

Thanks in advance.
Amit Sethi.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I'm sure you can find books on that topic on Amazon. Google has tons of links to game source code you can analyze.
colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 750
I'm pretty new to applets, but I've got my chess Applet running
chess applet
I'm assuming you are familiar with swing, and mouse listeners, and action listeners.

I tend to favour the JApplet as oppose the Applet.
JApplet extends Applet, so you don't lose any functionality.
But JApple is kind of like a JFrame, you can add components through the JApplets content pane, like with JFrame.

Applets have there own paint() method I think its called, and you just paint directly into applet. You can probably think of it as a kind of JPanel.

I think you should start with making games as java applications first,
then use JApplets/Applets to turn them into applets.

Thats what I did with my chess, and its worked out well.
Did require a few changes though to the JFrame, and it was more awquard
to load in the images because of this security problem.
I agree. Here's the link:
subject: games in applets
It's not a secret anymore!