To share some Unity iPhone experience of [Fight Desert] here
My game was finally ready for sale, after 10+ days waiting for Apple’s approval.
Fight Desert – A game with the subject of protecting our environment.
Website: http://app.108km.com
iTunes Link :http://bit.ly/KoAld
I am actually an indie game developer, at least on this game.
Many thanks to Unity 3D Unity community, I will not make out the game in only half a month without you.
I’d like to share some experience here, tips of development, code snippets, etc. If there’s something mistake, please don’t be hesitate to point me out.
1. POC period
POC is short for proof of concept.
We have to do some exercises before our development. Imagine about the technology issues you’ll face to, and make sure you can manage it.
At POC of Fight Desert, I walked through these tech specs:
- Tap screen to select the GameObject. Use Physics.Raycast. Also refer to the layerMask.
- Texture animation. Using AnimatedTextureExtendedUV.
- Press Hold Release functionality. I use GUI.RepeatButton.
- Dynamic GUI Texture.
- Drawing GUI.
- Main menu, inner menu(while you pause the game) system.
After testing these problems above, I made sure that I can handle the development.
2. Make out a simple version.
This game idea is so simple, it was in my mind for several weeks. So I didn’t need to make any verbose schemes. Just do it!
It’s only a simple version, we can put everything in one scene, and implement the basic functions.
- Display a board of lands.
- Show a button on GUI. If pressed, then display the rainfall.
Then I go on to create some global variables, and some private properties for each piece of land.
I realized the rainfall animation is too simple, so I split it into 3 parts. It seems like the cloud will grow bigger if you hold on the button for long.
3. Coding, coding, coding
(To be continue)
4. Testing the game
(To be continue)
5. Some Tips Snippets
(To be continue)
- How to pause the game:
Time.timeScale = 0.0F;
-
Loading Screen
-
Menu System
-
Export to XCode
(To be continue)