A Beginner's Guide to Web and Mobile Games with Unity (Book)
Create Web and Mobile Games
In this book, you will get started with exporting a simple infinite runner to the web and Android. The book provides an introduction to how to export and share your game with friends on the Web and on Android Play. It provides step-by-step instructions and explains how to easily share a simple game with your friends so that they can play it on your site or or an Android device including: processing taps, exporting the game to a web page, debugging your app, signing your app, and much more.
What you will Learn
After completing this book you will be able to:
- Write code in C#.
- Create a simple infinite runner .
- Implement interesting game mechanics (i.e., generate objects randomly, or jump over objects).
- Complete and export the game from start to finish.
- Test your game on a mobile device.
- Publish your game and share it with friends.
Topics covered in this book:
Topics covered in this book include:
- Creating an infinite runner
- processing the user’s input
- Detecting keyboard inputs
- Creating and using prefabs.
- Creating a user interface.
- Managing score.
- Generating random objects
- Creating and moving the main characters.
- Exporting the game for the web .
- Exporting the game to your Android device.
- Exporting the game to Android Play.
- publishing your game.
If you would like to start publishing your game to the web or Android Play,but do not know how, then this book should be very helpful. This is a perfect introduction to 2D Android game publishing and it will provide you with solid foundations to understand the process of creating a simple infinite runner and exporting it to teh web or Android Play.
- Create a 2D infinite runner.
- Learn to code in C#
- Quizz at the end of each chapter
- Code solutions provided
- Chapter 1, Creating an Infinite Runner, shows you how to create a
simple infinite runner where the player has to avoid obstacles using
just one key. You will learn to generate random obstacles and to display
- Chapter 2, Exporting Your Game for the Web, shows you how to
build and export your game so that it can be played within a browser
window. You will also learn how to create your own layout for the page
displaying your game, and how to export the page to your own website so
that you can share it with your friends.
- Chapter 3, Preparing and Exporting your Android Game, shows you
how to set-up your environment so that you can export your game to your
own Android device for testing purposes. You will learn how to install
Android Studio, to build your Android app, and to export it to your
device. Along the way, you will also learn to process mobile-based
interactions such as taps on the screen, and to also debug your app
remotely without the need to re-compile the game every time you make a
- Chapter 4, Improving the Game, shows how to improve the
interface and the game play of your endless runner; this will include
the creation of the game environment (e.g., mountains, moving clouds, or
the sun) and the player character (e.g., eyes, mouth, etc.) from simple
primitives in Unity (e.g., squares, triangles, and circles), as well as
a mechanism through which you can pause the game.
- Chapter 5, Publishing your Game to Android Play, shows you how
to prepare your game for and publish your game to Android Play. Along
the way, you will learn how to sign your app, how to create an Android
Developer account, and how to complete the registration of your game on
- Chapter 6 provides answers to Frequently Asked Questions (FAQs) related to the topics covered in this book.
- Chapter 7 summarizes the topics covered in the book and provides you with more information on the next steps.
Patrick Felicia is a lecturer and researcher at Waterford Institute of Technology, where he teaches and supervise undergraduate and postgraduate students. He obtained his MSc in Multimedia Technology in 2003 and PhD in Computer Science in 2009 from University College Cork, Ireland. He has published several books and articles on the use of video games for educational purposes, including the Handbook of Research on Improving Learning and Motivation through Educational Games: Multidisciplinary Approaches (published by IGI), and Digital Games in Schools: a Handbook for Teachers, published by European Schoolnet. Patrick is also the Editor-in-chief of the International Journal of Game-Based Learning (IJGBL), and the Conference Director of the Irish Symposium on Game-Based Learning, a popular conference on games and learning organized throughout Ireland.