Unity 3D Game Development by Example Beginner’s Guide: Game #2

A few months ago, I wrote a blog post on #AltDevBlogADay reviewing a Unity3D book written by Ryan Henson Creighton, Unity 3D Game Development by Example Beginner’s Guide (buy the book, it’s pretty good, so far), but I only gotten around to Chapter 4.

Unity 3D Game Development by Example Beginner's Guide

So for this blog post, I will go through some of the other chapters, particularly Chapter 5 and 6, which is about making a game called “Robot Repair”.

Chapter 5 will talk about GUI (graphical user interface, pronounced as “gooey”, like marshmallows). And we’ll be making an entire working 2D flip n’ match memory game in the GUI system.

So let’s get started!

First we open Unity and create a new project called “Robot Repair”, we don’t need to import Standard Assets, according to the boss (Mr. Author, Ryan Henson Creighton).

So we have an empty slate (este project).

A Unity scene is a big 3D world, but we would be ignoring that for now. We will be using the GUI layer, which is like “a sheet of glass” in front of our 3D world.

We will be making 2 scenes for this game. A scene is like a level or a screen in our game. So two scenes, one for the title and one for the game game.

(how organized are we)

So we are making the title screen first.


Of course, so far the TitleGUI script is still empty.

And we type some code (este copy paste from the book):

And we get this:

And if you clicked the button, you get a lil message:


The book came with some code files and assets for each chapter, packed as Unity packages, just double click on the file and it’ll import it to your project.

For the title screen, the author has prepared a cute image that we will add as a GUITexture, and so we get this:

(oh, we also changed the position of the button, so it’s front and well, not really center)

And then hook the button to some code that will bring us to the game:


(yes, this short little code will bring us to the next scene, if we have our scenes added to our build settings)

Lalala… okay, time to make the actual game game.

We go to the game scene (just double click on the scene in the Project panel).

And we’ll make a GameScreen game object and a GameScript script (like what we did with the title screen).

Ooh… what codes will we fill this new script with? *copy paste some codes from the book* Okay, and read up on the explanations too.

And we get this!


And then we are done with one chapter. Look at us, pretty good, huh.


Review: iPhone JavaScript Cookbook

iPhone JavaScript Cookbook


This book is written by Arturo Fernandez Montoro.

This book is written for web dev guys, I guess, who wants to write native looking web applications for the iPhone. The book introduces a lot of frameworks to make life easier. the frameworks include native looking assets for user interface building, which you can call with just a line of code. This book also teaches the readers how to work with data using from SQL and AJAX.

Since this is a cookbook, it includes a lot of recipes that readers can copy and paste and revise.

If you want to make applications for the iPhone that look like applications for the iPhone, without having to learn Objective C, the iPhone SDK and all, then this book is a great guide for you. 🙂  

Link: http://www.packtpub.com/iphone-javascript-cookbook/book/mid/170811hge054

New iOS and Android Books from Packt

iPhone JavaScript Cookbook

iPhone JavaScript Cookbook

Written by Arturo Fernandez Montoro

Overview of iPhone JavaScript Cookbook

  • Build web applications for iPhone with a native look feel using only JavaScript, CSS, and XHTML
  • Develop applications faster using frameworks
  • Integrate videos, sound, and images into your iPhone applications
  • Work with data using SQL and AJAX
  • Write code to integrate your own applications with famous websites such as Facebook, Twitter, and Flickr
  • These practical recipes include code and screenshots offering a clear step-by-step guide using different frameworks

Link: http://www.packtpub.com/iphone-javascript-cookbook/book/mid/170811hge054

Cocoa and Objective-C Cookbook

Cocoa and Objective-C Cookbook

Written by Jeff Hawkins

Overview of Cocoa and Objective-C Cookbook

  • Develop Cocoa applications using advanced UI concepts
  • Implement the latest Objective-C features and incorporate them into your applications
  • Debug Cocoa applications using advanced tools and techniques
  • Add advanced animation and multimedia to your Cocoa applications

Link: http://www.packtpub.com/cocoa-and-objective-c-cookbook/book/mid/170811c2v5x9

Core Data iOS Essentials

Core Data iOS Essentials

Written by B.M.Harwani

Overview of Core Data iOS Essentials

  • Covers the essential skills you need for working with Core Data in your applications.
  • Particularly focused on developing fast, light weight data-driven iOS applications.
  • Builds a complete example application. Every technique is shown in context.
  • Completely practical with clear, step-by-step instructions.

Link: http://www.packtpub.com/core-data-ios-essentials/book/mid/170811chs5cu

Flash Development for Android Cookbook

Flash Development for Android Cookbook

Written by Joseph Labrecque

Overview of Flash Development for Android Cookbook

  • The quickest way to solve your problems with building Flash applications for Android
  • Contains a variety of recipes to demonstrate mobile Android concepts and provide a solid foundation for your ideas to grow
  • Learn from a practical set of examples how to take advantage of multitouch, geolocation, the accelerometer, and more
  • Optimize and configure your application for worldwide distribution through the Android Market

Link: http://www.packtpub.com/flash-development-for-android-cookbook/book/mid/170811i8nwzh

Android Application Testing Guide

Android Application Testing Guide

Written by Diego Torres Milano

Overview of Android Application Testing Guide

  • The first and only book that focuses on testing Android applications
  • Step-by-step approach clearly explaining the most efficient testing methodologies
  • Real world examples with practical test cases that you can reuse

Link: http://www.packtpub.com/android-application-testing-guide/book/mid/170811fja1lj

Anyone interested in obtaining a free review copy in order to review the book in preferably under 2 weeks time can contact Packt’s online marketing representative Shaveer at shaveeri@packtpub.com with the subject line “book name- review request”. It can be for more than 1 book as well.

iPhone and iOS books Giveway!

So Packt Publishing recently released a couple of iPhone and iOS books:

iPhone JavaScript Cookbook

iPhone JavaScript Cookbook

Link: http://www.packtpub.com/iphone-javascript-cookbook/book

Core Data iOS Essentials

Core Data iOS Essentials

Link: http://www.packtpub.com/core-data-ios-essentials/book

Cocoa and Objective-C Cookbook


Link: http://www.packtpub.com/cocoa-and-objective-c-cookbook/book

And the wonderful people that had been giving me free books, asked me to hold a giveaway contest, so that well, you guys can get them too.

How to join? All you have to do is visit the 3 book pages and mention one feature about a particular book that makes you want to own it.

You can leave a reply here on Tumblr (using reply or Disqus comments) or tweet me (@purplelilgirl).

So um yeah, that’s it. I will be giving away one of each book. 🙂

Packt Celebrates its 50th Oracle Book

Throughout July Packt Publishing will be celebrating the release of its 50th Oracle book – cementing its reputation as one of the leading publishers in Oracle books.

To mark this milestone Packt is offering the following discounts:

·         20% off all Oracle print books

·         30% off all Oracle eBooks

Packt first started publishing Oracle books in 2006, and has since published best-sellers such as Getting Started With Oracle SOA Suite 11g R1 – A Hands-On Tutorial, Oracle Coherence 3.5 and Oracle Fusion Middleware Patterns.  And with more than 20 exciting new Oracle titles scheduled for 2011 this current success is only set to increase.

Packt owes much of its success to its print-on-demand mantra which not only allows it to produce books on specialist areas, but enables a quick response to new developments in technology – which was recently demonstrated with Packt publishing the first ever book on GoldenGate, the Oracle GoldenGate 11g Implementer’s guide.

Packt’s entire range of Oracle books is also available via PacktLib, Packt’s Online Library, and as part of Packt’s celebrations it’s offering you the chance to win a year’s subscription to PacktLib worth $220 click here for details: http://www.packtpub.com/article/50th-oracle-book-offer

For further information on this, and other books published by Packt Publishing, please visit www.PacktPub.com

Packt Open Source announce exclusive discount offers on best-selling books

Packt Open Source has this week announced a series of discounts on its selection of best selling Open Source books. Readers will be offered exclusive discounts off the cover price of selected print books and eBooks for a limited period only. 

So far in 2011, Packt Open Source announced in March that its donations to Open Source projects has surpassed the $300,000 mark, while in April insight into various projects was offered during the ‘Believe in Open Source’ campaign and July’s series of discounts continue this trend of Packt showing its commitment to the Open Source community.

The Packt Open Source books included in this exclusive discount offer include well known books such as JBoss AS 5 Performance Tuning, PHP jQuery Cookbook, Drupal 7 Module Development and Blender Lighting and Rendering, amongst others.

“This special discount showcases a host of Packt Open Source topics and allows readers to purchase some of our most well renowned books at an exclusive price” said Packt Open Source Marketing Executive Julian Copes. “

To ensure you do not miss this fantastic offer, visit the special discount page now, where you can view the extensive list of books included in the offer and access an array of related articles that were written by the authors.

The exclusive discounts are available from 4th July 2011. To find out more, please visit the Packt website.

Review: Unity 3D Game Development by Example Beginner’s Guide

Unity 3D Game Development by Example Beginner's Guide

This is an excerpt of my previous blog post.

This book is written by Ryan Henson Creighton aka Cassie the 5 yr old game developer’s dad. This book is about 380 something pages, and it takes you through Unity from the basics (as in what Unity is, what you can and cannot do *hint* MMOs unless you are really popular and has like a hundred friends or something). And then he teaches through examples, hence the title of the book. He also gives readers programming basics. All in all, the author is actually quite a fun read, because of his wit and humor, and it is nothing like my Computer Programming 1 professor, who tends to drone.

Overall, I think this book is easy read, it’s not intimidating in such a way that it bombards you with information, code bits that you can’t even begin to grasp. I think that beginners, even those who have “never coded before” would find this book easy to digest, and might even be able to “build fun games”.

For those who are interested in the book, you can check it here. The book actual offers samples codes and projects that you can download even if you haven’t bought the book, here.