官术网_书友最值得收藏!

Adding and Manipulating Objects

In the previous chapter, we discussed the importance of the Official Unity Programmer exam and what benefits it can produce for any developer who is looking to reassure either themselves or others in understanding programming in Unity. We also discussed the building blocks of being a programmer in general and our game's design brief.

As we are programmers working on a game engine, it is likely you will be working for a range of industries. In many of these industries, you will be issued with a technical brief/documentation (well, you should be!) for building the application. With this project, we are making a game and the game design brief is effectively the blueprint for making this game. In this chapter, we will be applying the majority of our code, game objects, prefabs, and more, based on the guidance of the brief and the game framework. We will be reminding ourselves of the brief and game framework during this chapter and will transfer specific information across into our code.

With regard to our code, we will be covering the importance of interfaces and scriptable objects to help structure and uniform our code to help it from bloating unnecessarily, which we covered in Chapter 1, Setting Up and Structuring Our Project with SOLID principles. We will also be getting used to the Unity editor and becoming familiar with game objects, prefabs, and importing three-dimensional models to animate.

In this chapter, we'll be covering the following topics:

  • Setting up our Unity project
  • Introducing our interface (IActorTemplate)
  • Introducing our ScriptableObject (SOActorModel)
  • Setting up our Player, PlayerSpawner, and PlayerBullet scripts
  • Planning and creating our enemy
  • Setting up our EnemySpawner and enemy script

The next section will outline the exam objectives covered in this chapter.

主站蜘蛛池模板: 宝应县| 江津市| 长春市| 清镇市| 嵩明县| 色达县| 密山市| 科技| 大理市| 蓬安县| 许昌市| 台南市| 丁青县| 普兰店市| 元阳县| 长乐市| 克拉玛依市| 绿春县| 西乌珠穆沁旗| 土默特左旗| 綦江县| 长垣县| 天等县| 门源| 扶余县| 大邑县| 金塔县| 武川县| 太仓市| 莒南县| 阿克苏市| 定陶县| 忻城县| 梅州市| 安顺市| 津市市| 青海省| 桓仁| 灵台县| 徐闻县| 巨野县|