Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (488)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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  
  Multiplayer game hosted on a Web Server?  (Read 1564 times)
0 Members and 1 Guest are viewing this topic.
Offline Bakabaka

Innocent Bystander





« Posted 2005-09-07 12:46:43 »

So originally, I was going to make a multiplayer (client/server based) Atari Combat clone.  However, for portability and easier distribution, I was thinking of making it into an applet client with the server being on the web server.  Is there a way to do this?  What API's should I consider?

Here's a basic description of the game:
Simple 2D map (no scrolling)
Overhead view
Tank moves in only 4 directions (unlike original that rotates and moves forward and backword)
Tank can only shoot 5 bullets at a time (no bounce, straight shot)
Maximum of 10 players
Random respawn (with variable delay)
Scoreboard

Would I just use applets for the clients and then a servlet for the server?  Would there be performance issues?
Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2005-09-12 21:38:07 »

So originally, I was going to make a multiplayer (client/server based) Atari Combat clone.  However, for portability and easier distribution, I was thinking of making it into an applet client with the server being on the web server.  Is there a way to do this?

Probably a servlet.

Quote
Would there be performance issues?

Almost certainly if you try to pass game traffic through it.

If you went peer to peer for game traffic and only used the servlet for matchmaking it woudl likely work.

In  order to do peer to peer from a downloaded Java program (applet or webstart) though you will need to sign the code.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #2 - Posted 2005-09-19 07:07:11 »

Quote
Would there be performance issues?

Almost certainly if you try to pass game traffic through it.

Disagree entirely. Even the godawful Tomcat can do > 100,000 requests / minute for servlets on normal server hardware (2.4Ghz p4). For the game described, it should work fine (although it's obviously not the easiest way of doing things if you had a shell account and could run arbitrary java server, getting a J2EE account is much easier)

malloc will be first against the wall when the revolution comes...
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.

TehJavaDev (17 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

atombrot (39 views)
2014-08-19 09:29:53

Tekkerue (36 views)
2014-08-16 06:45:27

Tekkerue (33 views)
2014-08-16 06:22:17

Tekkerue (22 views)
2014-08-16 06:20:21

Tekkerue (33 views)
2014-08-16 06:12:11

Rayexar (68 views)
2014-08-11 02:49:23

BurntPizza (45 views)
2014-08-09 21:09:32

BurntPizza (36 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!