How To Build a Networked Zune Game with XNA Series - Introduction
Well hello there! I wanted to share with you the latest installment in my Zune series: Building a networked Zune game.
The potential is huge - imagine a group of six people playing Monopoly wirelessly on their Zunes, or some other board or card game. (That's next for me!) But for right now, the goal is to understand the fundamentals. That means going over peer-to-peer architecture and sending network packets.
Important Things to Jumpstart You
DOWNLOAD ZE SOURCE! (164KB) [updated June 17 to include ZuneScreenManager]
- Zune games are perfect for peer-to-peer because of their relatively low processing power and the lack of a central server (unless it's a Zune).
- Peer-to-peer means everyone is running an instance of the same program - there is no client or server.
- Thusly, to implement a lobby, you need to have Create and Join Session functionality in the same program.
- Make ample use of the available NetworkSession events (GamerJoined, GameStarted, SessionEnded) etc.
- This sample shows how to send a network packet between peers with a Vector2 in it. More complex thinking will be necessary to implement a message handling system.
So, let's jump right in.
Video 1: Introduction (download .wmv, 26MB)
Stay tuned for the "how to" bits - subscribe to the blog, more will be available in the next couple of days.
Comments
Anonymous
June 13, 2008
PingBack from http://blog.a-foton.ru/2008/06/13/how-to-build-a-networked-zune-game-with-xna-series-introduction/Anonymous
June 13, 2008
You've been kicked (a good thing) - Trackback from GameDevKicks.comAnonymous
June 16, 2008
I wish I had Dan Waters’ creativity. Recently Dan posted a how to video to introduce the peer to peerAnonymous
June 16, 2008
Dan Waters has a great video series as well as code download showing how to build a networked Zune game.Anonymous
June 16, 2008
Dan, GREAT article!! One piece of criticism however: Your source doesn't build because the ZuneScreenManager project is not included in the solution. Was this intentional? I'd very much love to test out your network game. Thanks, JasonAnonymous
June 16, 2008
Thanks Jason, this has been fixed!Anonymous
July 22, 2008
The comment has been removedAnonymous
August 21, 2009
Where can we get the source code (link is gone)?