Book Image

Hands-On Game Development without Coding

By : Lucas Bertolini
Book Image

Hands-On Game Development without Coding

By: Lucas Bertolini

Overview of this book

Hands-On Game Development without Coding is the first Visual Scripting book in the market. It was tailor made for a non programing audience who are wondering how a videogame is made. After reading this book you will be able to develop your own 2d and 3d videogames and use it on your presentations, to speed up your level design deliveries, test your game design ideas, work on your proofs of concept, or even doing it just for fun. The best thing about Hands-On Game Development without Coding is that you don’t need any previous knowledge to read and understand the process of creating a videogame. It is our main focus to provide you with the opportunity to create a videogame as easy and fast as possible. Once you go through the book, you will be able to create player input interaction, levels, object behaviours, enemy AI, creating your own UI and finally giving life to your game by building it. It’s Alive!
Table of Contents (16 chapters)
5
Object Behaviors - Adding Logic to Objects
7
Interactable Objects - Enhancing Interaction

Player UI

Now it is time to show the player some information about their character, the state of its life, and some information about the inventory. To do this, we'll look at the KeyCanvas and HealthCanvas GameObjects to understand how they work to show information on the UI canvas.

Inventory UI

We can click on the KeyCanvas GameObject on the scene, but in case we are in a scene where we don't have any, we can just look one up in the folder at Assets | 2D or 3DGameKit | Prefabs | UI Prefabs. The Inventory UI is shown in the scene as follows:

Let's now take a look at the properties of the Key UI component:

The functions are as follows:

Key Icon Prefab This is the UI icon prefab that will be automatically...