- Unity 2018 By Example(Second Edition)
- Alan Thorn
- 246字
- 2021-07-16 18:14:41
Chapter 2. Creating a Collection Game
This chapter continues from the previous one by building a collection game with Unity. In this game, the player wanders an environment in first-person mode, searching for and collecting all the coins in a scene before a global timer expires. If all coins are collected before timer expiry, the game is won. However, if the timer expires before all coins are collected, the game is lost. The project created so far features a complete environment, with a floor, props, and water, and it also features a first-person controller along with a basic coin object, which looks correct in shape and form but still cannot be collected.
This chapter completes the project by creating a coin object to collect and adding a timer system to determine whether the total game time has elapsed. In essence, this chapter is about defining a system of logic and rules governing the game. To achieve this, we'll need to code in C# and so this chapter requires a basic understanding of programming. This book is about Unity and developing games with that engine. The basic of programming as a subject is, however, beyond the scope of this book. So, I'll assume that you already have a working knowledge of coding generally but have simply not coded in Unity before. Overall, this chapter will demonstrate the following topics:
- Material creation
- Prefabs
- Coding with C#
- Writing script files
- Using particle systems
- Building and compiling games
- Hands-On Data Structures and Algorithms with Rust
- 達夢數據庫編程指南
- 文本數據挖掘:基于R語言
- 大數據:規劃、實施、運維
- Python數據分析:基于Plotly的動態可視化繪圖
- 大數據營銷:如何讓營銷更具吸引力
- Oracle高性能SQL引擎剖析:SQL優化與調優機制詳解
- R Machine Learning Essentials
- Oracle 11g+ASP.NET數據庫系統開發案例教程
- 商業智能工具應用與數據可視化
- Python 3爬蟲、數據清洗與可視化實戰
- Hands-On Deep Learning for Games
- 大數據隱私保護技術與治理機制研究
- Access 2010數據庫應用技術教程(第二版)
- 深入理解Flink:實時大數據處理實踐