- Unity 5.x By Example
- Alan Thorn
- 248字
- 2021-07-16 12:36:51
Chapter 2. Project A – the Collection Game Continued
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 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 basics 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
- SQL Server 從入門到項(xiàng)目實(shí)踐(超值版)
- Android開發(fā)精要
- MATLAB圖像處理超級學(xué)習(xí)手冊
- 軟件測試工程師面試秘籍
- C語言程序設(shè)計(jì)
- Oracle Database 12c Security Cookbook
- MATLAB for Machine Learning
- Visual Basic程序設(shè)計(jì)上機(jī)實(shí)驗(yàn)教程
- AIRIOT物聯(lián)網(wǎng)平臺(tái)開發(fā)框架應(yīng)用與實(shí)戰(zhàn)
- 持續(xù)輕量級Java EE開發(fā):編寫可測試的代碼
- 鴻蒙OS應(yīng)用編程實(shí)戰(zhàn)
- 零基礎(chǔ)學(xué)Python編程(少兒趣味版)
- 微信小程序開發(fā)實(shí)戰(zhàn):設(shè)計(jì)·運(yùn)營·變現(xiàn)(圖解案例版)
- Photoshop CC移動(dòng)UI設(shè)計(jì)案例教程(全彩慕課版·第2版)
- Visual Basic語言程序設(shè)計(jì)基礎(chǔ)(第3版)