More Money

Developers could earn less with new Windows revenue share

Advertising

Microsoft introduces ad mediation for Windows Phone apps

Developers developers developers!

Devs, responding to reviews boosts your ratings

Developer news!

Respond to customer reviews

Developers

New SDK and Emulators now available for developers

Apps

Windows Phone a target of more than 1/4 of app developers, despite market share

Developers

Developers: Here's how to give users the option for a Transparent Live Tile (Updated)

Developers

Xbox One games to benefit from major graphics boost with new XDK

Software

Internet Explorer Developer Channel offers bleeding edge web experience

Windows Phones

The journey of the Windows Phone platform and state of the ecosystem

Apps

Microsoft launches official #wpdev Windows Phone 8 app for developers

Developers

Low memory devices lead Windows Phone downloads, games are most popular category

Developers

Telerik makes controls free for a limited time in honor of TechEd 2014

Apps

Adobe releases PhoneGap Developer for Windows Phone

Developers

Learn to develop for Windows Phone 8.1 in one weekend with Channel 9

Developers

Windows Phone developer hooks up Cortana to control his lights

Developers

Windows Phone 8.1 and universal apps can now be submitted to the Dev Center

Developers

Microsoft to host new Publish Windows developer days with awesome prizes

Developers

Bookmark this: Microsoft's highlights from Build 2014

Developers

Microsoft releases unified Windows App Studio Beta

< >
8

Multiplayer gaming in "Mango" using sockets [Developers]

Ricky Tan has published an insightful blog post on MSDN that covers implementing multiplayer gaming on the windows Phone platform. Using UdpAnySourceMulticastClient, Ricky walks us through enabling peer-to-peer support (over WiFi in this case) in a game for Mango.

Fancy carrying this out yourself? According to Ricky, it's not as difficult as one would assume. Here's some quick points to get you interested (check out the links below for the article with full code viewing, downloads, etc.):

PlatformerGame.cs: This contains the game code and is where the sockets are initialized, and where the sends and receives are handled.

UdpAnySourceMulticastChannel.cs: This contains the UDP multicast sockets code for joining the group, sending and receiving data.

OtherPlayer.cs: This is a modification of Player.cs to add other players to the game.

Ricky has added peer-to-peer support into the platformer start kit developed by David Russet. Read more information on this (plus the full download and snippets of code) over at Ricky Tan's blog. Multiplayer gaming is most definitely in the works, we also have to keep an eye on Microsoft's progress with 'Switchboard'.

Via: Channel9; Thanks, Mark!

0
loading...
0
loading...
0
loading...
0
loading...

Reader comments

Multiplayer gaming in "Mango" using sockets [Developers]

8 Comments

Imagine how many people will be throwing their phones out of disgust when they get ganked one time to many. hahaha.

then it would break and they would have to buy a new one, and they would because they are that into the game, its a win win

I've never played WoW, so I have no idea what you are talking about, but I know that a lot of games have made me throw my phone more than once, especially Angry birds, that one has made me throw it at least 4 times. I always try to throw it lightly, but it hasn't always been the case. I've broken 2 phones like that, and I wonder how long it will be before my Optimus 7 gives out, the battery's plastic is already starting to detach from the battery.

I can't wait for Mango. It's going to be so awesome, and maybe that Full House Poker is finally going to get multiplayer support.