Results 1 to 5 of 5

Thread: LAN Games

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2001
    Location
    Lv4-26
    Posts
    19

    LAN Games

    does anyone know how to create a game which can connect to the same game on another machine over a LAN i'm not talking an advanced game just a simple 'tick' game but that is still beyond me (not creating the game the connecting and interacting with another machine), thanks in advance.
    Help!, They're Gonna Get Me

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well you'd just stick a winsock control into both sides of the app.
    The server side listens, and the client side connects.

    Once the connection has been established, you do your own little handshaking protocol, and let the games commence
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You can use the computer's name as the remotehost property.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jun 2001
    Location
    Lv4-26
    Posts
    19
    thanks, a big help
    Help!, They're Gonna Get Me

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    If you're interested in using more types of connections, you can use DIrectPlay if you're using DIrectX
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

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



Click Here to Expand Forum to Full Width