>> How would I add a net play feature to my games so I can play over the
>> internet with my friends? And would it be possible to do it
>> multi-platform, so Mac and Windows can verse?
>
> If it's a real-time game (everybody plays at once), use UDPSocket. If it's a
> turn-taking game, use TCPSocket. Either can be done cross-platform; for a
> very basic cross-platform TCPSocket example, see
It would be a real-time game for two players. Sort of a 1 on 1 FPS. So that
means it would use a UPDSocket. I'm also making a turn-taking game, and
might add net play to that, using a TCPSocket.
>
> http://ljensen.com/rb
>
> and download MyFirstSocket. This will show you how to exchange bytes between
> machines, but it doesn't guarantee that messages will arrive in one chunk.
> You will need to invent or borrow a protocol -- a way to group the bytes
> together into messages and decide what they mean. (That's for TCP; I believe
> UDP works the same way but I haven't used it myself.)
I'll see if I can download that later. Sounds complicated. How do you create
a protocol?
>
> Also check out the Socket ReadMe on the above page.
>
> lj
>
>
> ---
> Unsubscribe or switch delivery mode:
> <http://support.realsoftware.com/listmanager/>
>
-Benjamin Farhner, CEO / Head Developer
benjamin at farhner dot com
©2002-2003 PPE3D?
(almost have a website)
---
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
|