Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Game Programming By Example

You're reading from   Python Game Programming By Example A pragmatic guide for developing your own games with Python

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785281532
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

The tower defense gameplay


The genre of tower defense challenges the player to stop enemy characters from reaching a certain position by placing strategically different towers so that they can defeat the enemies before they arrive at that point. The towers shoot autonomously towards the enemies that are within their firing range. The game is over when a concrete number of enemies reach the end point.

In our version, the scenario will be a meandering road in the desert, and we have to protect a bunker that is placed at the end of this road, as shown in the following screenshot. At the far end, enemy tanks will be spawning randomly, and we must place turrets that destroy them before they reach our bunker. The turrets can be placed in specific slots, and each turret spends part of our limited resources.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime