- 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
- Data Visualization with D3 4.x Cookbook(Second Edition)
- 從零構建知識圖譜:技術、方法與案例
- C語言程序設計習題解析與上機指導(第4版)
- .NET 4.0面向對象編程漫談:基礎篇
- Visual FoxPro 程序設計
- Instant QlikView 11 Application Development
- INSTANT Passbook App Development for iOS How-to
- SQL Server數據庫管理與開發兵書
- Geospatial Development By Example with Python
- PHP項目開發全程實錄(第4版)
- 軟件測試(慕課版)
- Swift iOS Programming for Kids
- Mastering PostgreSQL 11(Second Edition)
- 深入實踐C++模板編程
- Visual FoxPro程序設計