Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
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  
  Socket and/or Multi-player Card Game Tutorials  (Read 1593 times)
0 Members and 1 Guest are viewing this topic.
Offline unco

Junior Newbie




Java games rock!


« Posted 2004-07-11 20:31:06 »

Hello All,

I am currently trying to write a multi-player card game, but havn't found any instructions on how to do this task.  I know I will need to use sockets, but not sure what else I would have to do.  I was wondering if anyone knew where I can find good tutorials on how to build multi-player card games and tutorials explaning sockets.  This project is due for class by mid August, but the Teacher mentioned Friday that he doesn't teach threads, application communication, multi-player functions, sockets, which I am stuck now with this project that I would really like to do, but with no guidance.  Any suggestions or ideas would be greatly appreciated.  Thanks in advance.
Offline unco

Junior Newbie




Java games rock!


« Reply #1 - Posted 2004-07-17 14:29:18 »

Update on my previous post.  

The reason I was asking for information on sockets or multiplayer card game is because I am having no luck finding information on how to get my card game applet to communicate with the server and upto 8 total users.  I would like to use an applet if possible, but don't know where to look to find my answers on how to get multiple connections within an applet.  I have several tutorials on applicaitons, but nothing on applet.  Any guidance would be greatly appreciated.

Thanks,
Offline K.I.L.E.R

Senior Member




Java games rock!


« Reply #2 - Posted 2004-07-20 03:37:45 »

I think you should be able to apply your knowledge on applications onto applets in the case of multiplayer games.

Vorax:
Is there a name for a "redneck" programmer?

Jeff:
Unemployed. Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DanK

Junior Member




Javver games rock yawel!


« Reply #3 - Posted 2004-07-20 20:41:41 »

If you use an applet you won't be communicating with anything but the server, since the security restrictions keep you from connecting to anywhere but the server that the applet is downloaded from. Applets aren't useful for peer to peer.

The Java Tutorial has plenty of information on how to setup sockets as a server. The Java Tutorial

There is also information about threads contained in the tutorial.

Typically if you are going to be using a socket to communicate with a server for a game you will want to create your socket and use a thread to send/receive the information for that socket. The Observer and Observable classes are useful for this, you can find a tutorial on how to use observer and observable online at javaworld.

Offline Elomis

Junior Newbie




Don't run with scissors?


« Reply #4 - Posted 2004-07-28 04:37:14 »

The socket tutorial at java.sun.com is the bomb, but try doing a google search on java socket programming or chat server java for more supporting detail.  The sun tutorial goes from the very simple one client one server to getting involved with some knock knock game garbage without paying much attention to what people probably want to know inbetween.

Good luck :-)
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.

xsi3rr4x (51 views)
2014-04-15 18:08:23

BurntPizza (48 views)
2014-04-15 03:46:01

UprightPath (63 views)
2014-04-14 17:39:50

UprightPath (45 views)
2014-04-14 17:35:47

Porlus (62 views)
2014-04-14 15:48:38

tom_mai78101 (86 views)
2014-04-10 04:04:31

BurntPizza (146 views)
2014-04-08 23:06:04

tom_mai78101 (243 views)
2014-04-05 13:34:39

trollwarrior1 (202 views)
2014-04-04 12:06:45

CJLetsGame (209 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!