Chapter 6. Where Decisions Are Made
IN MULTIPLAYER GAMES and virtual worlds, logic can be found on both the client and on the server. But if game logic can exist in both places, which has the authority to make important decisions? And why? We answer these questions in this chapter. By making the best development choices of where to maintain game state and place game logic, you will save time when tracking down bugs later, and end up with a more secure game.
We’ll start this chapter discussing the concept of authority (who’s in charge). The rest of the chapter will be spent introducing the first server-side plugin used in this book, some new ElectroServer API information, and then walking through a simple ActionScript example game.