Book Image

SFML Blueprints

Book Image

SFML Blueprints

Overview of this book

Table of Contents (15 chapters)
SFML Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Build a Real-time Tower Defense Game from Scratch – Part 2, Networking

In the previous chapter, we built a complete game from scratch. The only limitation we encountered was that we didn't have real enemies to defeat. We will solve this limitation in the present chapter by adding networking to our game to allow it to interact with players other than you. At the end of this chapter, you will be able to play this game with some friends. This chapter will cover the following topics:

  • Network architectures

  • Network communication using sockets

  • Creating a communication protocol

  • Modifying our game by applying the client-server concept

  • Saving and loading our game

Now let's dive into this pretty complicated chapter.