aspose file tools
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
Author

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.
regards
Amit Sethi.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
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
Hi,
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: games in applets