Tuesday, June 30, 2009

ActionScript for Multiplayer Games and Virtual Worlds

I recently finished writing ActionScript for Multiplayer Games and Virtual Worlds, my first book since Flash 8! With the help of some amazing contributors I think this is the most useful and geeky-fun book I've ever been a part of. According to Amazon (shameless link) it hits shelves in 8/3/2009.


So what's it about? If the title of the book doesn't give it away, it is a book that focuses on multiplayer concepts and applies them to games and virtual worlds via ActionScript. Some of the coolest topics are those on dead reckoning, real-time movement and time synchronization, loads of information on avatar rendering, and other useful topics like thorough coverage of isometric concepts.
While there are many examples throughout the book, there are 3 major examples. In one chapter we build a real-time multiplayer tank game (top down). In another chapter a cooperative multiplayer games is created, and its a fun one! Then over the course of several chapters we dig into various major topics on virtual worlds to build a complete world.

Here are some screenshots, and I hope some of you check it out and find it useful :)

Virtual world

Real-time tank game
Cooperative multiplayer game

27 comments:

Beatrix said...

Flash MX game design is still the best book ever about flash and games. Now i cant wait to read this new book, as it is again exactly what i do/need for work.

Mike Bowen said...

This looks great. I can't wait to read the chapter on Cooperative Multiplayer Games.

Matt Bolt said...

I just crapped my pants.... That tank game looks awesome!

Iain said...

This looks like being the first Flash book I've bought in about 2 years. Hope it explains all the voodoo it promises!

Ickydime said...

sounds/looks amazing. can't wait

Jobe Makar said...

Thanks for the kind words everyone!

Iain,

It does!

Kz said...

Is it AS2 or AS3?

I'm really exited, When it will be released???

:)

Anonymous said...

my next book indeed!

Gek Hua said...

I will be working on a multiplayer flash game project soon. According to Amazon, the book will only be released on Aug 3 .... a bit late for me .... May I know which socket server would u recommend for a multiplayer car race game in Flash?

Jobe Makar said...

Gek Hua,

Definitely I'd recommend ElectroServer (http://www.electro-server.com)

Good luck with your game!

Jokum said...

Is the book based on electro-server or some other framework, or is everything basic AS3 ?

Jobe Makar said...

Jokum,

The book focuses on multiplayer concepts which are independent of any socket server or ActionScript version. It then walks through examples that illustrate the concepts. Those examples are written in AS3 and use ElectroServer as the socket server.

Hope that helps.

Felix said...

Hi Jobe, I already pre-order the book and cant wait to read it!

Does the book talk about how to make a virtual world game? I really want to try to make one by myself.

Jobe Makar said...

Felix,

There is a full virtual world in the book. It is not assembled in a tutorial form. More like, it exists and then over the course of several chapters we look into key areas of it.

Hope that helps.

Felix said...

Thanks, but before I read the book I have another question about the virtual world.

Do you use any isometric editor or engine to build the virtual world? or you can create by using flash?

sorry that I am new to this field

Jobe Makar said...

There is a Adobe AIR isometric map editor.

I do want to stress though that the book isn't intended to provide examples that are ready to be skinned and put live on a site. They are designed to back up the concepts put forth in the book. I'd recommend using them as learning examples, and maybe leverage portions of the code if you wish.

Chris Wright said...

Hi Jobe!

I just ordered your book today and I'm excited about reading it. Thanks so much for your hard work and dedication.

Chriw

Anonymous said...

Got the following error message in the console:
----------------------------------
...
12:59:49,850 [main] WARN Extensions.GameBook.Plugins.GMSInitializer - TankGame
game registered with GameManager.
12:59:49,870 [main] ERROR com.electrotank.electroserver4.entities.BaseBridge -
Error occured calling extension code - Extension: GameBook - Name: TankGame - Ha
ndle: TankGame
java.lang.NullPointerException
at com.gamebook.tank.TankGame.init(TankGame.java:43)
at com.electrotank.electroserver4.entities.PluginBridge$1.call(PluginBri
dge.java:104)
...
-----------------------------------

Looks like the getApi() call returns null in the following line
EsObject gameDetails = getApi().getGameDetails();

Ant777 said...

Hi everyone!
This book must be wonderful as all the previous book edited by Jobe Makar! But I still can't buy it as nobody sends this book to my country. If anyone could help me with buying this book in the USA and sending it to me please e-mail at flyingant777@gmail.com. I REALLY need it!!!
HELP!!! :)

CodeJustin said...

Jobe I'm an editor for DZone and I was trying to find an email for you buy I don't see one off hand so I'm leaving a comment to tell you to email me (info@codejustin.com) becuase I would like to give you some press coverage.

Martin said...

Hiya, Just finished your book. First of all I have to say that I am really impressed, the chapters on isometrics were alone worth the price of admission.

However you also arouse my curiosity by a few things that were left unexplored:
Such as the 'advanced scrolling techniques' for rendering bitmaps. You mentioned it a couple of times, and I must say you made me very curious.

Would you care to elaborate on this subject, or perhaps treat us with an example? Or if its just too much bother, then at least with a reference to a book/article somewhere else where we could learn more about it?

Thanks
Martin

Fireburst said...

Hi,

How do I get the projects to run in Flash CS3?

I would prefer to stick to the Adobe Flash authoring environment if possible whilst I am still learning.

Niran said...

Where do i get this book?Download link???peraphs?

buy wow accounts said...

First of all I am really impressed, on isometrics .

World of Warcraft said...

This is some thing great i ever cam across

paul said...

Hi Jobe,

I'm ripping through your book right now - totally intriguing and really interesting. Certainly one of the most interesting actionscript books to come out in a while - thanks!

Jade said...

It was the first book I picked up and bought at the store. Can't wait to read it :)