If you like this art style, the guys at Oray Studios are available for hire! Note: The art for the project comes from a free art pack by Vicki, which in turn is based on another free art pack by Oray Studios. The towers’ attack range is drawn as a white circle if an enemy is within the tower’s range, the tower will fire on the enemy until the enemy is destroyed, or they move out of range of the tower. The player can only purchase and place as many towers as they can afford, based on their gold reserves. Here’s a screenshot of how the game will look after you’re done:Īs you can see in the image, enemies appear from the top left side of the screen, and they follow the green path to the player’s base.Īlong the road, there are a number of platforms where the player can place a tower. The game ends when you survive the waves through all of the levels (victory!) or when enough enemies reach your base to destroy it (Aaaugh! You’ve been defeated!). If you’re not familiar with the genre, tower defense games are strategy games where you purchase and position armed towers at strategic points in order to stop waves of enemies that are trying to reach your base and destroy it.Įach wave of enemies is usually harder than the last, with stronger opponents who move more quickly and have greater resistance to your artillery. Without further ado, let’s start building our defense! A View from the Ivory Tower If you are completely new to Cocos2D, you should check out some of the other Cocos2D tutorials on this site first. How to visually debug the waypoints and attack ranges of towers.Īt the end of the Tower Defense Game tutorial, you’ll have a solid framework for this type of game, which you’ll be able to expand upon to add new tower types, enemies, and maps!įor this tutorial, you’ll need a basic understanding of Cocos2D.How to create towers on specific locations in the map.How to make those enemies move along custom waypoints.How to create waves of enemies with configurable spawn times.In this Tower Defense Game tutorial, you’ll get to build a tower defense game of your own from scratch, with Cocos2D!Īlong the way, you’ll learn the following: There’s something incredibly fun about building the ultimate defense and seeing it obliterate horders of invaders! The tower defense genre is one of the most popular game genres in iOS – and for good reason. Update : Fully updated for Cocos2D 2.1-rc1 (original post by Pablo Ruiz, update by Brian Broom).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |