Jump to content
  • Advertisement
Sign in to follow this  
Akela Xeroxz

[java] Question 2

This topic is 3918 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm kinda searching for a way to go beyond a standard thing, options I need: Multiplayer Database to keep the data in like quests, items ect u get the idea 3d... and i need a way to connect a php website with a java login... this should be simple enough using the applet tags I think :) feel free to give me a kick in the butt or something, I just don't really know where to start with multiplayer... and what kind of feutures would my game engine need? greetings, tim

Share this post


Link to post
Share on other sites
Advertisement
You need to be a little more specific. Mysql is probably the most
common database to back a web site. Communication between
a java applet and the database can be done several ways.

Share this post


Link to post
Share on other sites
The easiest way I've found to have PHP communicate with a java applet is by using POST variables when opening a webpage from the applet.
Posting in Java:
http://www.javaworld.com/javaworld/javatips/jw-javatip34.html

This works well for simple communications like verifying log in(I use it to give arcade rewards on a site I work on), but it is much too slow to use for java to java real-time multiplayer stuff. For that you're either going to want direct database access or use tcp or udp sockets. What you should use depends on what exactly you plan to do.

Share this post


Link to post
Share on other sites
well so far i need opengl for my 3d images, use photoshop for the pixel images like inventory ect,

Java to make my game run...

But I got no clue how I could get a database running to store something in after each login... as it needs to be online..

Share this post


Link to post
Share on other sites
I can't say much for it as I've never used it myself, but sun has some database stuff specifically for java. http://developers.sun.com/javadb/

If your set on using an online database and working with it in java that's where I'd look first. There are really a lot of ways you can do things though. Determining what is best is going to depend a lot on how your program is structured, and how you prioritize speed, space, and work efficiency, networking speed etc.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!