wood burning stoves 2.0*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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
Marshal

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


Ping & DNS - my free Android networking tools app
colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 744
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: games in applets