Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (670)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
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  
  Couple quick questions from a newb to java.  (Read 2037 times)
0 Members and 1 Guest are viewing this topic.
Offline wizecoder

Junior Newbie

« Posted 2008-11-26 18:16:21 »

Me and my brother are wanting to make a trading card style game with networking that runs on the web browser. I am responsible for the programming so i decided our best bet is java applets. My questions are: 1. What would be best between java2d and lwjgl for a 2d applet game? 2. Would accelerated graphics like in the tutorial be possible in applets? And if so how?  I may have more questions later so please bare with me.

Thanks in advance.

P.S. MY FIRST POST!!!!!!!!!!!
Offline princec

« JGO Spiffy Duke »

Medals: 743
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #1 - Posted 2008-11-26 20:13:50 »

Java2D will be fine, and much easier to begin with. As trading card games are turnbased and not reliant on repeated fast graphics updates you won't be needing any accelerated graphics at all I shouldn't think.

Cas Smiley

Offline SimonH
« Reply #2 - Posted 2008-11-26 20:25:42 »

Very true - and java2D is also likely to work on more machines, so you'd get a wider audience.
If you do your networking via HTTP you wouldn't get any off-putting browser security dialogs that way either.

People make games and games make people
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline wizecoder

Junior Newbie

« Reply #3 - Posted 2008-11-26 21:00:28 »

Ok thanks for the replies. I think i will go through the tutorials here: and the networking articles at
Offline wizecoder

Junior Newbie

« Reply #4 - Posted 2008-11-26 22:01:21 »

Just thought of three questions about the networking: 1. What would be the best way to handle things like user accounts? It would need to be accessed from within the applet and from the website. 2. What would i need to learn for making a card database type setup. 3. What hosting service would you recommend? I have looked at slicehost and it seems fairly good but i would like other opinions.

Offline DzzD
« Reply #5 - Posted 2008-11-27 00:43:09 »

1. What would be the best way to handle things like user accounts? It would need to be accessed from within the applet and from the website
an easy way would be php/mysql wich seems sufficient for a card game and will be pretty simple to setup.

to access your user session from both applet and web page you can add a parameter to your applet tag with the php session id (or other if not php) than use it in your applet HTTP call exemple :

 <PARAM NAME=SESSION VALUE="<?php echo session_id(); ?>">

then in the java applet code you read your parameter :
String session;
public void init()

and you set it as a GET parameter in the url to use the right session server side
URL u=new URL(""+this.session);

and finally in something.php you should have

this is the idea...

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

IanParcs (35 views)
2016-04-18 14:18:53

KaiHH (35 views)
2016-04-18 08:35:41

KaiHH (66 views)
2016-04-15 12:43:58

theagentd (66 views)
2016-04-14 02:16:17

theagentd (72 views)
2016-04-14 02:15:43

IanParcs (66 views)
2016-04-12 03:51:16

IanParcs (36 views)
2016-04-12 03:50:03

IanParcs (32 views)
2016-04-12 03:49:54

IanParcs (29 views)
2016-04-12 03:49:52

IanParcs (36 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 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!