Free Sample
+ Collection

Unity 4 Game Development HOTSHOT

Jate Wittayabundit

Develop spectacular gaming content by exploring and utilizing Unity 4
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849695589
Paperback466 pages

About This Book

  • Understand the new 2D Sprite and Immediate Mode GUI system (OnGUI()/GUI class) in Unity 4, and the difference between 2D and 3D worlds, with clear instruction and examples.
  • Learn about Mecanim System, AI programming, editor script, and Character Controller programming including scripting and how to adapt it to your needs.
  • Create a Menu for an RPG Game – Add Powerups, Weapons, and Armor.

Who This Book Is For

If you are an experienced user who has a basic knowledge of how to use the Unity game engine, or are an intermediate user who wants to learn more tips and tricks in using the Unity game engine, this book is ideal for you.

Table of Contents

Chapter 1: Develop a Sprite and Platform Game
Mission briefing
Setting up a 2D level and collider
Creating a 2D character and animation
Controlling the character with the PlayerController_2D class
Creating a key, door, and replay button
Mission accomplished
Hotshot challenges
Chapter 2: Create a Menu for an RPG – Add Powerups, Weapons, and Armors
Mission briefing
Customizing skin with GUISkin
Creating a menu object
Creating the STATUS tab
Creating the INVENTORY tab
Creating the EQUIPMENT tab
Mission accomplished
Hotshot challenges
Chapter 3: Shade Your Hero/Heroine
Mission briefing
Shader programming – Diffuse and Bump (normal) maps
Shader programming – Ambient and Specular light
Shader programming – Half Lambert, Rim Light, and Toon Ramp
Mission accomplished
Hotshot challenges
Chapter 4: Add Character Control and Animation to Our Hero/Heroine
Mission briefing
Setting up character animation and level
Creating an animator controller
Creating a character control script
Creating a third-person camera to follow our character
Mission accomplished
Hotshot challenges
Chapter 5: Build a Rocket Launcher!
Mission briefing
Setting up a character animation and animator controller
Adding new features to the CharacterControl and CameraControl scripts
Creating a MouseLook script and laser target scope
Creating a rocket prefab and particle effects
Creating a rocket launcher and RocketUI
Mission accomplished
Hotshot challenges
Chapter 6: Make AI Appear Smart
Mission briefing
Creating the Waypoint and WaypointsContainer scripts
Creating a custom editor for the WaypointsContainer script
Creating the enemy movement with the AI script
Creating a hit-point UI
Mission accomplished
Hotshot challenges
Chapter 7: Forge a Destructible and Interactive Virtual World
Mission briefing
Creating a ragdoll object
Creating a destructible wall
Creating a rockslide and trigger area
Creating the RocksTrigger and Rocks scripts
Mission accomplished
Hotshot challenges
Chapter 8: Let the World See the Carnage – Saving and Loading High Scores
Mission briefing
Creating the UserData and Hiscore scripts
Saving and loading the local high score
Creating an XMLParser script
Saving and loading server high score
Mission accomplished
Hotshot challenges

What You Will Learn

  • Explore 2D Sprite character animation, rigid body, physics raycast, and camera type
  • Create custom UI graphics, scripts, a draggable window, and dynamic UI using the Unity GUI system
  • Code using surface shader programming and learn the basics of shaders
  • Create a rocket launcher, built-in fire particle effect, and custom particle effect
  • Load and save with PlayerPrefs and post the hi-score to the database using PHP and MySQL.

In Detail

Immerse yourself in the world of high-end game design by partaking in challenging missions. Start off by working with the Sprite Mode, then learn the basics of creating a UI system for an RPG, and work your way through the game virtually embodying your greatest hero or heroine.

Every project is designed to push your Unity skills to the limit and beyond. You will start by creating a 2D platform game with the new 2D sprite feature and move on to the Unity GUI system. Then, you will create a 3D character and make it move. By the end of this book, you will know how to post the player's score to the hi-score board.


Read More