Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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  
  Board Game on Intranet  (Read 2189 times)
0 Members and 1 Guest are viewing this topic.
Offline macx

Junior Newbie





« Posted 2013-10-14 03:37:24 »

Hello, java developers! Im a 4th year Computer Science Student from the Philippines, Im currently Developing a board game and i think im finished with the game proper. Now I want to extend it that it can be played in an Intranet envirom ment. The point is I dont know where to start in network programming, I need help on it. Some advice or may be codes will help.


Thank you in advance.
Offline philfrei
« Reply #1 - Posted 2013-10-14 04:29:26 »

Do you have any experience with networking via Java? If not, some good background here:
http://docs.oracle.com/javase/tutorial/networking/index.html

I'll be interested in seeing what folks post as an answer. I'm sure their answers will be more helpful. But no one else has answered yet, and you might find it interesting to poke around with the few things I do know about.

I'm reading an older game programming book by Brackeen (Developing Games in Java), and there is a chapter (chapter 6) on multiplayer. He seems to make a lot of use of JDK 1.4 NIO libraries. The book might be available used, for cheap. I found mine at a local Half-Price books.

I haven't gotten to this chapter yet. Am curious if others think that this approach is still a good one, and what might have taken its place.

I have looked over some code from a friend that made a web-based variant of "Snake"--where the backend uses Java EE Servlets technology. But I don't think Servlets are being used for games very often. The overhead for Servlets is higher than for just adding an NIO layer, both in terms of coding and in what one has to learn in support.

"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
Offline macx

Junior Newbie





« Reply #2 - Posted 2013-10-14 05:03:28 »

Thanks! uhm could you show me some examples and how it works?? I have read some about java networking but im having a problem in undrstanding it. PLEASE
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #3 - Posted 2013-10-14 10:12:02 »

I'm watching DesignsBeZephyr on YouTube and pretty much stealing his UDP client and server. theChernoProject is also doing networking. I just wrote my first chat program yesterday in about an hour after I googled networking stuff.

Offline cobolfoo

Junior Newbie





« Reply #4 - Posted 2013-10-30 21:51:39 »

A board game do not require a low-latency server, you could develop it with any technology you want.

You only need to implement a basic TCP server. I would start with this if I were you:

http://docs.oracle.com/javase/tutorial/networking/sockets/index.html

You might also want to use something already done for you like NAGA:

https://code.google.com/p/naga/
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.

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

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

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

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

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

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

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

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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!