Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Construct 2

You're reading from   Learning Construct 2 Design and create your own engaging, extensible, and addictive game using Construct 2

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781784397678
Length 234 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Aryadi Subagio Aryadi Subagio
Author Profile Icon Aryadi Subagio
Aryadi Subagio
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Chapter 7. Making a Battle Tank Game

You have learned a lot up until now. The last thing we covered was how to store multiple values in an array or dictionary and how to access them. You also learned about WebStorage that will store data in the player's computer; this data can be accessed when the game is played at a later time.

However, now we will develop on what we know so far. I will show you more ways in which we can use arrays other than to store the player's score. We'll also create a new kind of enemy. Earlier, our enemies were really simple and easy to make; they just went down and shot straight down. Now, we'll give our enemies a little AI to make them cleverer, by making a battle tank game.

In this chapter, you will learn how to:

  • Combine an array with the gameplay mechanic
  • Group objects in a group
  • Create a turret that can detect nearby enemies
  • Play music and sound effects in the game
  • Make simple AI for enemies
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
Banner background image