[java] Question 2

Started by
3 comments, last by Alrecenk 16 years, 5 months ago
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
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.

---visit my game site http://www.boardspace.net - free online strategy games

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.
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..
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.

This topic is closed to new replies.

Advertisement