
Building an RPG with Unity 2018
Leverage the power of Unity 2018 to build elements of an RPG., 2nd Edition
- 366 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Building an RPG with Unity 2018
Leverage the power of Unity 2018 to build elements of an RPG., 2nd Edition
About this book
Build a high-end, multiplayer role-playing game (RPG) from scratch with C# and Unity 2018
Key Features
- Get insights into Unity's user interface (UI) system and and build UIs for your RPG
- Implement artificial intelligence (AI) to build intelligent entities that take your game to the next level
- Develop multiplayer features for an RPG using Unity 2018
Book Description
In a role-playing game (RPG), users control a character, usually in the game's imaginary universe. Unity has become a top choice for developers looking to create these kinds of immersive RPGs.
Building an RPG with Unity 2018, based on building some of the most common RPG features, teaches you tips, tricks, and techniques that can be applied to your own game.
To start with, the book guides you through the fundamentals of role-playing games. You will learn the necessary aspects of building an RPG, such as structuring the game environment, customizing characters, controlling the camera, and designing other attributes such as inventory and weapons. You will also explore designing game levels by adding more features. Once you have understood the bigger picture, you will understand how to tackle the obstacles of networking in Unity and implement multiplayer mode for your RPG games.
By the end of the book, you will be able to build upon the core RPG framework elements to create your own immersive games.
What you will learn
- Construct a framework for inventory, equipment, characters, enemies, quests, and game events
- Understand how to load and unload scenes and assets
- Create multiplayer game settings for your RPG
- Design a UI for user input and feedback
- Implement AI for non-character players
- Customize your character at runtime
Who this book is for
Building an RPG with Unity 2018 is for you if you are a programmer interested in developing and further enhancing your skills when developing RPGs in Unity 2018. This book does not cover the basics of Unity, and so is for intermediate or more advanced users.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Inventory System
- Designing an inventory system
- Weighted inventory
- Determining item types
- Creating an inventory item
- Creating the prefab
- Adding an inventory item agent
- Inventory items defined as prefabs
- Designing an inventory interface
- Creating the inventory UI framework
- Designing a dynamic item viewer
- Adding a scroll view
- Adding elements to PanelItem and Scroll View
- Adding txtItemElement dynamically
- Building the final inventory item UI
- Integrating the UI with the actual inventory system
- Hooking the category buttons and displaying the data
- Testing the inventory system
- Inventory items and the player character
- Applying inventory items
- How it looks
Designing an inventory system
Weighted inventory
- Clothing
- Tents
- Sleeping bags
- Boots
- Ice breakers
- Food
- Light source
- Personal items
Determining item types
using System;
using UnityEngine;
namespace com.noorcon.rpg2e
{
[Serializable]
public class BaseItem
{
public enum ItemCatrgory
{
Weapon = 0,
Armour = 1,
Clothing = 2,
Health = 3,
Potion = 4
}
[SerializeField]
private string name;
[SerializeField]
private string description;
public string Name
{
get { return name; }
set { name = value; }
}
public string Description
{
get { return description; }
set { description = value; }
}
}
}
using System;
using UnityEngine;
namespace com.noorcon.rpg2e
{
[Serializable]
public class InventoryItem : BaseItem
{
[SerializeField]
private ItemCatrgory category;
[SerializeField]
private float strength;
[SerializeField]
private float weight;
public ItemCatrgory Category
{
get { return category; }
set { category = value; }
}
public float Strength
{
get { return strength; }
set { strength = value; }
}
pu...
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
- What is an RPG?
- Planning the Game
- RPG Character Design
- The Game Mechanics
- GameMaster and Game Mechanics
- Inventory System
- User Interface and System Feedback
- Multiplayer Setup
- Other Books You May Enjoy