Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Help a networking noob  (Read 1639 times)
0 Members and 1 Guest are viewing this topic.
Offline Toby

Senior Newbie





« Posted 2007-12-30 19:48:27 »

Okay, I want to make a 2 player 2d side scroller, kind of like metal slug, with 2 people playing over a network.  I just want to know the simplest way to do this, with good tuts and documentation so I can get something good down without all of the hassle of a complex networking engine.  I don't care about speed either.

thanks 
Offline sunsett

Senior Member




ribbit!


« Reply #1 - Posted 2007-12-31 14:09:37 »

Well, it looks as though they are having some site issues at the moment, but I've heard a lot of good things about GTGE:

http://www.goldenstudios.or.id

I can also recommend JGN (Java Game Networking), a networking library meant specifically to simplify the process of game development with networking and it even has a module for use with GTGE.  However, if you decide to use JGN but end up with a different 2D library that JGN doesn't provide let me know and as long as it's even modestly popular I'd be happy to make a connector module for it.  However, it does also support Swing if you decide to use it.

You can get more information about JGN here: http://javagn.org/
Offline Toby

Senior Newbie





« Reply #2 - Posted 2008-01-01 01:50:40 »

It looks cool, but it doesn't look like JGN has a lot of documentation.  How is java.net for games? I saw a tutorial here: http://gpwiki.org/index.php/Java:Tutorials:Simple_TCP_Networking and it seems really simple to me.  Is it suitable for games, like fast enough and stuff?  And what other options are there?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline sunsett

Senior Member




ribbit!


« Reply #3 - Posted 2008-01-01 14:08:00 »

It is best not to use standard networking for games as it is blocking.  JGN uses non-blocking IO. Here are some examples of how to use the NIO features in Java:

http://java.sun.com/javase/6/docs/technotes/guides/io/example/index.html

The problem with NIO is it's overly complicated, although it is extremely powerful.

JGN does lack good documentation, but makes up for it with examples in the code.  You can see dozens of examples of usage here:

http://svn.javagn.org/core/trunk/src/com/captiveimagination/jgn/test/
Offline gouessej
« Reply #4 - Posted 2008-01-06 18:06:42 »

Okay, I want to make a 2 player 2d side scroller, kind of like metal slug, with 2 people playing over a network.  I just want to know the simplest way to do this, with good tuts and documentation so I can get something good down without all of the hassle of a complex networking engine.  I don't care about speed either.

thanks 
If you want, I wrote a small 2D scroller fighting game using RMI for network (under GPL) :
http://membres.lycos.fr/javalution/download/fighting.zip

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.

BurntPizza (10 views)
2014-09-19 03:14:18

Dwinin (29 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (79 views)
2014-09-10 06:39:09

Tekkerue (40 views)
2014-09-09 02:24:56

mitcheeb (60 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (30 views)
2014-09-07 01:12:14

Longarmx (36 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
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!