O'Reilly logo

ActionScript for Multiplayer Games and Virtual Worlds by Jobe Makar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Real-time Tank Game

WE’VE COME A long way in this book. We’ve learned the basics of communicating over a socket using the ElectroServer API, explored client-server authority in games, and looked at real-time movement concepts in detail. This is the chapter where it all comes together in the form of a real-time multiplayer tank game!

This chapter is partly devoted to discussing how things learned up to this point have been applied in this game. After that, we look at line of sight in detail as it is used for path validation and predicting some bullet collisions. In addition, we will briefly discuss the level editor as well as introduce the concept of spatial audio.

Game Overview

In this game, you control a tank using your mouse and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required