One of the most popular methods for a developer to make money with their apps and games is to make it a free game and include In-App Purchases (IAP). The City-Building Kit for Unity has this feature already included as a demo. The demo includes four different items that can be purchased using real money. This demo can be edited to feature everything your city building + Real Time Strategy (RTS) game(s) want to sell for real money. For examples, in Clash of Clans you can buy gems for real money. In Cityville, you can buy energy for real money. In the included demo, you can buy any resource for real money. These are just some examples as to what can be setup in your games while using the City-Building Kit.
NOTE: When you click the Buy button in the demo, this doesn’t actually spend your money. This is a DEMO. To make it fully work in your game(s), you need an asset such as Simple IAP System. Otherwise, you can make your own routine to make it reach YOUR solution. Be sure to do this before you deploy your game(s).Watch DemoPlay Demo App
*Demo app is from the Complete Kit.
Make a Game like Clash of Clans with Unity3D
Powerful City Builder Framework
- Design Your Own Buildings
- Gems and In-App Purchases (IAP)
- Gold/Liquid Generators and Storage
- Expandable with assets
PvP AI Battle Processor
- Combat/Unit AI
- PvE Battle Matching
- Gold/Liquid Stealing
- Gem Accelerated Training
Fully-prepared Server Backend
- Client/Server State Sync
- Server Software
- Create Multi-Platform Game Matches
- Add Characters / Buildings With XML
How do I setup In-App Purchases in my games?
All versions of the City-Building Kit have the files you need to setup IAP in your city building + RTS game(s). These are:
- HardPriceProc.cs. This script handles all the menu interactions. This is re-named in the Pro and Complete Kits to MainMenu/PurchaseMenu.cs. This file contains the float type variable “totalPrice”.
- HardPrice.xml. This contains the information and prices for each item. The included demo is already setup to sell four different items.
- totalPrice. This float type variable holds the information for the total price of the purchases made via IAP. It will be increased and decreased as needed when the user clicks the + or – buttons in your game during purchases.
This handles the IAP for the demo. When you want edit these, it’s already there and ready to use in your city building + RTS games.
How do I add my own items to the menu?
Just follow these instructions:
- Add the item information into HardPrice.xml.
- In HardPriceProc.cs, increase the itemsNo variable.
- Add more Onbuy() and OnMinus() functions as needed.
- Add the items’ allocation in the Purchase() function.
With the IAP included with the City-Building Kit, all that’s left is to setup a solution that the variable totalPrice can reach. Then add in whatever you like to your IAP menu. Just remember to condition the resources increase in the main interface after the online purchase has been completed and not just opening and canceling it and you’re all set.Watch the Strategy Kit
Work on all platforms: mobile apps, desktop pc games, web browser
City Building Kit Feature Highlights
Kinetic Mobile Gestures
The Complete version of the City-Building Kit for Unity comes with two types of gesture controls built in and ready for you to use. These are the Developer controls and Player controls. These are optimized for great user experiences on mobile devices but are known to work well when developing and/or playing on desktop systems. Touch controls is the basic name of it and allows for zooming in and out, moving the map, and moving buildings and units as needed as found in top games like Clash of Clans and Cityville. The aim for the City-Building Kit was to provide easy to use, friendly, and familiar controls for both players and developers.
City-Building Kit Comparisons
Each of the City-Building Kit versions has a foundation built up higher and higher with more and more capabilities for each higher version beginning at the Starter Kit. So depending on your goal for game developing, you can decide which version best suits your needs as a developer. Each version of the City-Building Kit is ready to make city building games at the minimum up to city building + Real Time Strategy(RTS) games and even tower defense games at the maximum with all the features and some unique features ready to be used right out of the box. Below is a direct comparison between each version of the City-Building Kit for Unity. Do note that the one true common across all versions is the fact that you can edit everything.
Multi-Player Battle Cheats
As a developer, testing your city building + Real Time Strategy (RTS) game(s) becomes all too important. While certain aspects of your game are being built such as the battle modes, you’d want to test them quite heavily. With the City-Building Kit for Unity, testing becomes a lot easier with the included multi-player battle cheats (developer cheats). Not only does this help you with battle testing, it can also be setup as a type of reward, for example, for players that use your In-App Purchases.
Non Playing Characters (NPCs) are the units your players interact with for various purposes such as quests, providing information, or just wandering animated decorations. When you check a game such as Cityville, the NPCs are roaming all over the place. In a game such as Clash of Clans, the NPC gives the opening (first time) tutorial. The City-Building Kit comes with a demo builder NPC for you to edit and use in your own game(s). Its main purpose is for you to learn exactly how NPCs work and can be used in your game(s).
The City-Building Kit for Unity has the ability to deploy your city building + Real Time Strategy (RTS) game(s) to many operating systems (OS)/ platforms. Since the City-Building Kit is made for Unity developers, any platform that Unity can deploy to, the City-Building Kit can deploy to it too. Going cross platform with the game(s) you develop using the City-Building Kit won’t take much of anything for extra effort. It’s all included right out of the boxes of both the City-Building Kit and Unity.
One of the most common questions among gamers is “what’s your level”? The City-Building Kit includes an XP (eXperience Points) system that can be setup to give XP depending on the players’ actions/completions. In Clash of Clans, you can gain XP for your level in various ways such as buy and place buildings/decorations, and after battles. Then at a certain point, the players level up. The included examples of the City-Building Kit can be adjusted right from the start and be mixed and match to suit your strategy game(s).
Frequently Asked Questions
Does it work with Unity 5? Why do I still need NGUI/2DTK?
Yes, we support Unity 5 however the UI/2D functions expanding the kit are far more advanced than Unity 5's UI/2D features currently provide. You'll need the NGUI and 2D Toolkit assets which are further developed.
Where can I get the latest copy?
Click the link at the top of this page to download the latest copy. As long as you have your license code, you will be able to download the latest dev build, upgrade your kit and get any bonuses included with our highest packages.
When do you release updates?
We've designed the kit to be compatible with future releases of Unity, NGUI, and 2DTK since we don't update often unless we discover a bug we missed during our extensive testing we did before this past release.
What if I have another question?
First check the documentation, otherwise contact us if you have a question and Santhosh or Dave and Richard will get back to you.