- Procedural Content Generation for Unity Game Development
- Ryan Watkins
- 134字
- 2021-07-16 09:42:10
Challenge
As an added challenge, you can turn this into a die simulator. Try on your own to have the script display a random number from 1-6. You can, instead of displaying text, display an image of a die face. Also, see if you can display the image and store the random number corresponding to the die face for reference.
You can also try changing the seed to a number of your choice. If you play the scene with a constant number, you will get the same result every time. Try different numbers for different results. This is the benefit of the seed value; even though we are introducing a bit of randomness to our game, we have a way to control it. We will explore the seed value further in a later chapter.
推薦閱讀
- Java逍遙游記
- Vue.js 3.x快速入門
- 計算思維與算法入門
- Moodle Administration Essentials
- Learning Spring 5.0
- SQL學習指南(第3版)
- 數據結構與算法JavaScript描述
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- Mastering Google App Engine
- Learning Apache Mahout Classification
- Rust Essentials(Second Edition)
- Getting Started with Laravel 4
- Java:High-Performance Apps with Java 9
- Serverless computing in Azure with .NET
- 一塊面包板玩轉Arduino編程