- 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.
推薦閱讀
- The Modern C++ Challenge
- Manga Studio Ex 5 Cookbook
- Mastering Concurrency in Go
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務、多團隊協(xié)同等核心場景實戰(zhàn)
- DevOps Automation Cookbook
- Jupyter數(shù)據(jù)科學實戰(zhàn)
- Learning OpenStack Networking(Neutron)(Second Edition)
- 區(qū)塊鏈底層設(shè)計Java實戰(zhàn)
- 機器學習與R語言實戰(zhàn)
- Unity Character Animation with Mecanim
- SQL Server 入門很輕松(微課超值版)
- SAP Web Dynpro for ABAP開發(fā)技術(shù)詳解:基礎(chǔ)應用
- 網(wǎng)頁設(shè)計與制作
- Implementing Splunk(Second Edition)
- 給產(chǎn)品經(jīng)理講技術(shù)