Forum Multiplayer Advanced example game using the API

Discussion and help relating to the PlayerIO Multiplayer API.

Advanced example game using the API

Postby Benjaminsen » January 18th, 2010, 9:42 pm

Here is, without any warranties, a much more complex example game than those you find in the Flash Combo Package.

The game is a multiplayer asteroids game and can be tried here [Broken]
The code can be downloaded at [Broken]

Edit:
Just realized that maintaining this game via a zip file on my website will get tiresome fast.
Therefore there is now a google code repository for just this game.

Get it here: https://code.google.com/p/multiplayer-asteroids/
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Advanced example game using the API

Postby Cyclone103 » January 18th, 2010, 9:43 pm

Hehehe, nice work!
Cyclone103
 
Posts: 155
Joined: January 18th, 2010, 6:47 pm

Re: Advanced example game using the API

Postby Benjaminsen » January 22nd, 2010, 2:44 pm

Updated, see edit!
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Advanced example game using the API

Postby Cyclone103 » January 23rd, 2010, 6:22 pm

Its a good game, and should provide a great example for how to make your own.
Cyclone103
 
Posts: 155
Joined: January 18th, 2010, 6:47 pm

Re: Advanced example game using the API

Postby vivogd » January 28th, 2010, 9:33 am

THANKS, its AWESOME!
vivogd
 
Posts: 8
Joined: January 28th, 2010, 8:42 am

Re: Advanced example game using the API

Postby Tsuken » January 28th, 2010, 2:24 pm

Awesome example, but for those who are going to use it as a base for their game, you better move the hit/death detection to the server from the client, because clients get "hacked" by their users.

Or there will be users that won't tell the other users when they died :)
Tsuken
 
Posts: 41
Joined: January 26th, 2010, 7:54 pm

Re: Advanced example game using the API

Postby Benjaminsen » January 28th, 2010, 5:23 pm

I wrote the game as an example of how to use synchronized time-stamps and interpolation to created synchronized realtime worlds. I had no plans of actually turning into a real game, but got caught in the development processes so I decided to just implement shooting quick and dirty.

This also explains why the game is open source. I expect to implement the shooting on the server using time slicing quite soon but I would be more than happy to share the development load with more people.

And yes the code is not pretty and mostly uncommented, I will ensure that this gets better for each release.

Glad you like the example however!
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to Multiplayer



cron