Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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 1606 times)
0 Members and 1 Guest are viewing this topic.
Offline gojira

Senior Newbie




Java games rock!


« Posted 2004-12-19 18: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 Member




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


« Reply #1 - Posted 2004-12-19 21: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
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline gojira

Senior Newbie




Java games rock!


« Reply #2 - Posted 2004-12-19 22: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: 1


pixels! :x


« Reply #3 - Posted 2004-12-20 00:46:30 »

>reading from standard-in

Huh?

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:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=cluebies;action=display;num=1100581905;start=6#6

弾幕 ☆ @mahonnaiseblog
Offline Malohkan

Senior Member




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


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

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

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

Senior Newbie




Java games rock!


« Reply #5 - Posted 2004-12-21 02: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 Member




586: The average IQ needed to understand a PC


« Reply #6 - Posted 2004-12-22 06: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-28 00: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 01: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-29 00: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 02: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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (15 views)
2014-07-29 18:09:19

Riven (10 views)
2014-07-29 18:08:52

Dwinin (10 views)
2014-07-29 10:59:34

E.R. Fleming (28 views)
2014-07-29 03:07:13

E.R. Fleming (10 views)
2014-07-29 03:06:25

pw (40 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (27 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!