Chapter 14. Sample Game: Tower Defense for PC/Mac

The tower defense genre has been around for many years, but its popularity really took off in custom maps for games such as StarCraft and Warcraft III. It’s such a popular genre that today there are many tower defense games on nearly every gaming platform.

This chapter takes a look at a sample implementation of a futuristic tower defense game called __Defense. It is fully rendered in 3D, though the gameplay occurs on a 2D plane. The code for this game was written in C# using the XNA/MonoGame frameworks.

Overview

Before you read this chapter, you should visit the book’s website and download the source code for this game. The link to the source code, along with instructions on how to build it, ...

Get Game Programming Algorithms and Techniques: A Platform-Agnostic Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.