Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Applets vs. Applications  (Read 2049 times)
0 Members and 1 Guest are viewing this topic.
Offline gojira

Senior Newbie

Java games rock!

« Posted 2004-12-19 17:19:46 »

Hi all!  I r a newless clubie!

So I thought I'd ask a few basic questions.  I could try these out on my own, but it would jump start me if I could just get expert opinions (ie, I'm lazy).

Applet games: I assume Java3D is available.  Is OpenGL available to applets?

How hard is it to maintain the same game as both an applet and a stand alone app?  Are there any pitfalls I should pay attention to?

How about writing applet games in general.  Is the response to input good? Or laggy?  Any advice here?

What about security?  An applet can contact it's host sever, but can I log-in an individucal user securely?  What object can I use (I can't make my own datagrams, can I)?

Ok, that's all for now.  I'm off to cruise the boards and see what other info I can find.  Thanks for the help!!
Offline Malohkan

Senior Devvie

while (true) System.out.println("WOO!!!!");

« Reply #1 - Posted 2004-12-19 20:36:33 »

check out my site listed in my signature.  I've never noticed any lag.  The only difference I've ever seen is that graphics can be drawn faster in standalone apps than they can be in Applets.

Admin and Game Developer at
Play Rimscape!    |    Play Conquer!
Offline gojira

Senior Newbie

Java games rock!

« Reply #2 - Posted 2004-12-19 21:06:47 »

Hey nice site!  Yes those games seem pretty responsive, no worries there.  Did you have to do anything special or are just basically reading from standard-in?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder

Medals: 2

pixels! :x

« Reply #3 - Posted 2004-12-19 23:46:30 »

>reading from standard-in


Nah... you use things like the KeyListener for turning flags on and off (eg set a boolean to true if you get a pressed event and set it to false if you get an released event). In your main loop you just react to the values of those switches.

See here:;action=display;num=1100581905;start=6#6

弾幕 ☆ @mahonnaiseblog
Offline Malohkan

Senior Devvie

while (true) System.out.println("WOO!!!!");

« Reply #4 - Posted 2004-12-20 03:09:08 »

yup.  KeyListeners and MouseListeners are how I do it, just as oNyx described

Admin and Game Developer at
Play Rimscape!    |    Play Conquer!
Offline gojira

Senior Newbie

Java games rock!

« Reply #5 - Posted 2004-12-21 01:06:11 »

Good point about the keyboard listener.  I'm a C programmer, mostly. Smiley I remember mouse listeners from the Java book I have, but I'll have to go back and look up keyboard listeners.

Hey,  no  one knows if OpenGL (JOGL?) is available to an applet?  It's a native method right? so I assume not, but I'm still resisting writing code just to see if it 'splodes.
Offline Backmask

Junior Devvie

586: The average IQ needed to understand a PC

« Reply #6 - Posted 2004-12-22 05:10:17 »

I think the basic question is why do you need an applet? Why not a Java Webstart application? Such an application is easy to maintain both as an stand alone application and a webstart application. If you don't know the differens between an applet and a webstart app you should search the forums.

Offline gojira

Senior Newbie

Java games rock!

« Reply #7 - Posted 2004-12-27 23:55:22 »

I have a java web start app that I use and love (Bill Shubert pwns u!!).  

Basically, Bill's app allows you to use it as an applet, or as a webstart app.  The applet is very convienent.  There's nothing to install, no worries about "wtf is this JRE thing" for the user.  Just click and go and the applet runs.  THAT'S what I want, because I found the user experience to be excellent when I used Bill's app.

Now of course I've installed the full JRE and webstart apps are no worries for me, but not all users have webstart installed.  Thus I'd like to support applets too.
Offline tom
« Reply #8 - Posted 2004-12-28 00:34:25 »

Java3d and OpenGL are not available to applets. That is unless you make the user install it manually. This involves copying files into one of the jre sub directories.

An applet and a stand alone app is pretty much the same. Abstract away the differences. Instead of painting on the applet, you point on a canvas that is added to the applet. The same canvas can be added to a frame in a stand alone app. Be aware that applets have security restrictions. So you can't read files on the disk or sending udp to any odd address.

Also note that many people still only got java 1.1 installed.

Offline gojira

Senior Newbie

Java games rock!

« Reply #9 - Posted 2004-12-28 23:18:16 »

Yeah, I think the bnok on Java I have right now may not be the best.  I'm finding it does not cover many things. I've seen Dietel & Dietel rated as excellent, if a bit more of a reference manual and less of a tutorial.  Amazon has used copies cheap.  

Amazon also rates highly a couple of books: Java 2 A Beginner's Guide -- by Herbert Schildt, and Java 2 The Complete Reference, Fifth Edition -- by Herbert Schildt.

Any suggestions?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tom
« Reply #10 - Posted 2004-12-29 01:50:10 »

We used the Dietel & Dietel book in college. I liked it. Easy to understand with plenty of examples.

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Riven (26 views)
2015-07-27 16:38:00

Riven (15 views)
2015-07-27 15:35:20

Riven (20 views)
2015-07-27 12:26:13

Riven (10 views)
2015-07-27 12:23:39

BurntPizza (26 views)
2015-07-25 00:14:37

BurntPizza (39 views)
2015-07-24 22:06:39

BurntPizza (22 views)
2015-07-24 06:06:53

NoxInc (25 views)
2015-07-22 22:16:53

NoxInc (17 views)
2015-07-22 22:13:39

Jesse (39 views)
2015-07-22 03:10:36
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!