Results 1 to 5 of 5
  1. #1
    emoisback
    emoisback is offline
    Full member
    Join Date
    2011 Dec
    Location
    Indonesia there i'm
    Posts
    508
    Thanks
    83
    Thanked 244 Times in 68 Posts
    Rep Power
    7

    Red face [Java] Basic MultiClient-Server Games [Explanation, and Example]

    Helo ProGamerCity.

    i'am new member here, but i wanted to share my knowledge about how to make your own Client Server Games...

    i'am not the best one, it's just basic and using console.

    here i'am using Java Code to make a client server, but if you have question about other language programming like C#,VB,and other...i'll try help..

    This is just basic, we just need a logic to creating the games..many game engines out there to provide ease of making games (MMORPG,Or Single Game) Like Unity, Unreal 3, Cry, Hero and many others.

    First i'll explan the MMO Games Logic.. it's my logic, everyone has a different logic to achieve the same goals.

    Ok for example we'll create a Online Game Rock,Paper,Scissors..not bad idea ha?..

    Basic client activity for client server game
    - Client need IP server and port to connecting to server and send the packet what user doing inside game.
    - Client will continuesly read stream input from server and the client will show the result (We need threading this activity).
    - Client will Send user ingame input to server continuesly (We need threading this activity).

    Basic server activity for client server game
    - Server need IP and port for listening to client.
    - Server'll send everything happen in server (Threading) like other user inpun, other user changed variable like position, etc.
    - Server'll Recieve everything from client (We need threading this activity).

    Ok that is what client have to do..

    ok now lets we write the game logic.

    - Frist User have to login : Client send username and password user then server check whether the account is exist if the account exists server will send back to client the result.
    - If account exists : let the console show the player list at lobby games.
    - Client waiting for user input the name of other player who'll be opponent.
    - After User input the opponent : Client will send the opponent name to server then server check if the other user is available or not. then give the result to client.
    - If not, client will show message player is in game or whatever he do.
    - If yes, opponent'll be asked to play with u or no.
    - If yes, then you play.. you must be choice Rock or Papper, or Scissors. and your opponent to. and Send your choice to server.
    - Server'll give who the winner and send to both of them.

    Ok that's just the logic. For the code I'm still making the code...

    If the code is finish... i'll put it here..and explan the code..

    Anyone Have Question ?.

    This Is unfinish code Client Server Games

    But i'll finish the code asap...

    i have thesis right now, so believe i'll be finish this code..
    I'am Sorry for my bad english...
    Last edited by emoisback; 2011-12-20 at 03:29 AM.

  2. The Following 3 Users Say Thank You to emoisback For This Useful Post:


  3. #2
    rodoxfnx
    rodoxfnx is offline
    Banned
    Join Date
    2011 Dec
    Posts
    281
    Thanks
    48
    Thanked 745 Times in 77 Posts
    Rep Power
    0
    Good one, thanx.]
    This homepage below contains good amount of java examples.
    Take an look.
    http://www.exampledepot.com/

  4. #3
    emoisback
    emoisback is offline
    Full member
    Join Date
    2011 Dec
    Location
    Indonesia there i'm
    Posts
    508
    Thanks
    83
    Thanked 244 Times in 68 Posts
    Rep Power
    7
    Thx...i'am in work area now...

    when i back from here...i'll continue the code and share...

  5. #4
    besimbicer
    besimbicer is offline
    New member
    Join Date
    2012 Jan
    Posts
    9
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    thanks and dead download link re-upload ?
    Last edited by Grooguz; 2012-01-11 at 01:45 AM.

  6. #5
    besimbicer
    besimbicer is offline
    New member
    Join Date
    2012 Jan
    Posts
    9
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    sorry link dead

Similar Threads

  1. [Release] Minecraft 1.7.3 Full Portable with Java
    By Grooguz in forum MineCraft
    Replies: 1
    Last Post: 2017-04-06, 04:20 AM
  2. [VB] Basic hack and trainer with CE and Visual Basic
    By Dwar in forum Programming Tutorials
    Replies: 2
    Last Post: 2013-05-01, 03:57 AM
  3. [Release] Minecraft 1.8.1 Full Portable with Java
    By Grooguz in forum MineCraft
    Replies: 0
    Last Post: 2011-09-21, 07:15 AM
  4. [Info] Requiem Menento Mori: Server vs Server Times:
    By gloran in forum Requiem Guides, Tutorials
    Replies: 0
    Last Post: 2010-12-19, 04:58 AM
  5. [C++] Basic memory-scanning in DLL
    By Dwar in forum C/C++
    Replies: 4
    Last Post: 2010-12-08, 10:35 AM
Visitors found this page by searching for:

java client server game example

java client server game programming

powered by vBulletin client server

java multiclient game

powered by vBulletin online java games

Rock-paper-scissors java code Multi Threaded Client Server

java client server game application example

powered by vBulletin java client server

simple client server game of rock paper scissors in java

multi-client game

java multi client game example

java multi client simple game example

example basic server multi client games java

serverclient rock paper scissors c

powered by vBulletin server client

powered by vBulletin client server example

client server rock paper scissors java

java multiple client game server example

java game programming server client

client server programming in java for game

powered by vBulletin client server java

server client game java

java client server game

game multiclient java

java client server game engine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •