Yesterday I presented a longer version of my seminar Game development for iPhone, iPad and Android devices that I held at the Scandinavian Developer Conference, three weeks ago. I did not film it since I already have the Scandinavian Developer Conference version up, but if you are interested you can now download the individual steps to create a game with Unity below.
Download the updated presentation as a PDF document here
You can view and download the individual videos below:
Game Development with Unity 1/9
In this video I will show you how to create a menu background and buttons with Photoshop:
- Create a new document 1024 x 768 for iPad
- Draw a gradient background
- Create normal and touch down buttons
- Save background as PNG
- Save each button as PNG
Note: each button is saved as a 1024×768 image
- Save image as PSD
Game Development with Unity 2/9
In this video I will show how to create a game level with colliders in Modo:
- Zoom to right unit scale
Unity uses 1 unit = 1 meter
- Create game level objects
- Set materials
- Create colliders
Prefix with Cn (CX = Box Collider, etc)
- Save as Modo object
- Use Modo2Unity script to save FBX
Script removes camera, light, etc
Game Development with Unity 3/9
In the video I will show how to import menu graphics and level data, and set up colliders, lightning, lightmaps and dynamics:
- Create new Unity project
- Create some standard folders
Materials, Scripts, Textures
- Import Level1.FBX, Menu graphics, Helper scripts
AssignMaterial.js, BuildColliders.js
- Drag Level1.FBX to a new Scene
- Save Scene as Level1.unity
- Change Camera near / far distance
- Add a Directional Light
- Create Colliders from meshes prefixed with CX
- Create Lightmaps
- Add Rigidbody + Sphere Collider to our Ball
- Change Project Physics settings (precision)
Game Development with Unity 4/9
In this video I will create a script to control the ball by tilting the device:
- Create BallController.cs script
- # Get device Tilt values
- # Normalize Tilt values
- # Add Tilt force to the Ball
- Drag BallController script to the Ball in Unity
Game Development with Unity 5/9
In this video I will add script logic to detect if the ball falls down:
- Open BallController.cs script
- # Store original Ball position
- # Store original Ball rotation
- # If Ball Y position < 1.0 then reset values
Game Development with Unity 6/9
In this video I will create the menu system with EZ GUI and Sprite Manager 2:
- Create a new Scene: MainMenu1024
- Set camera to Orthographic
Size = 384 (half height of 1024 x 768)
- Add EZ GUI: UI Manager
- Add EZ GUI: Simple Sprite for background
- Add EZ GUI: Load Scene Button for Play button
Set it to load Level1.unity
- Add a material for the background
Shader = Unlit / Texture
- Add a material for all buttons
Material will be created by EZ GUI Build Atlases
Shader = Unlit / Transparent
- Size and position the Play Button
Using EZ GUI Size Sprites
- Add Level1.unity to the Build settings
So it can be loaded by the Play button
Game Development with Unity 7/9
In this video I will create the end game menu screen with EZ GUI and Sprite Manager 2. The steps in the video are the same as video 6/9.
Game Development with Unity 8/9
In this video I will show how to disable PVRT texture compression on menu textures in Unity.
Game Development with Unity 9/9
In this last video I will show how to add a trigger to our goal object to load the end game menu. I will also switch target platform to iOS:
- Add a Trigger collider to our Goal object
- Add OnTriggerEnter() to BallController.cs
Load the level “GameEnd1024” once the ball enter
- Add the scene GameEnd1024 to Build settings
- Switch target platform to iOS
- Play the game!