Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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 1411 times)
0 Members and 1 Guest are viewing this topic.
Offline Toby

Senior Newbie





« Posted 2007-12-30 20: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 15: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 02: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 15: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

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #4 - Posted 2008-01-06 19: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (134 views)
2013-05-17 21:29:12

alaslipknot (143 views)
2013-05-16 21:24:48

gouessej (173 views)
2013-05-16 00:53:38

gouessej (167 views)
2013-05-16 00:17:58

theagentd (177 views)
2013-05-15 15:01:13

theagentd (161 views)
2013-05-15 15:00:54

StreetDoggy (206 views)
2013-05-14 15:56:26

kutucuk (230 views)
2013-05-12 17:10:36

kutucuk (229 views)
2013-05-12 15:36:09

UnluckyDevil (233 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.086 seconds with 20 queries.