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  
  Socket and/or Multi-player Card Game Tutorials  (Read 1273 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!
Try the Free Demo of Titan Attacks
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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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 (114 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (215 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.091 seconds with 20 queries.