Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Procedural Content Generation for Unity Game Development

You're reading from   Procedural Content Generation for Unity Game Development Harness the power of procedural content generation to design unique games with Unity

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785287473
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ryan Watkins Ryan Watkins
Author Profile Icon Ryan Watkins
Ryan Watkins
Arrow right icon
View More author details
Toc

Chapter 6. Generating Modular Weapons

PCG is a great way to minimize the number of handcrafted art assets that we need to create for our game. However, it is unrealistic to think that we won't need any art assets at all. We can still use our art intelligently, and with the aid of PCG, a little art can go a long way.

In this chapter, we see how we can create small pieces of art that are combined in different ways to generate bigger and randomly unique assets. We will be creating a modular weapon system. Each piece of art is a module that will attach to another module to create a whole weapon. We can then let the pieces combine randomly to give us surprisingly unique assets.

Here is what you will learn in this chapter:

  • Understanding modular art assets
  • Learning about the statistics behind modular generation
  • Procedurally generating game objects that are composed from smaller pieces
  • Animating via a script

The weapons that will be generated from this modular weapon system will be used...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image