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

  • Unity 5.x By Example
  • Alan Thorn
  • 187字
  • 2021-07-16 12:36:47

Game design

Let's make a coin collection game. Here, the player should control a character in the first-person mode, and he must wander the level, collecting all coins before a time limit runs out. If the timer runs out, the game is lost. On the other hand, if all coins are collected before the timer expires, the game is won. The first-person controls will use the default WASD keyboard setup, where W moves forward, A and S move left and right, and D walks backward. Head movement is controlled using the mouse, and coins are collected by simply walking into them. See Figure 1.1, featuring the coin collection game in action in the Unity Editor. The great benefit in making this game is that it demonstrates all the core Unity features together, and we don't need to rely on any external software to make assets, such as textures, meshes, and materials.

Figure 1.1: Preparing for a coin collection game (the completed game)

Note

The completed CollectionGame project, as discussed in this chapter and the next, can be found in the book companion files in the Chapter01/CollectionGame folder.

主站蜘蛛池模板: 武清区| 唐海县| 方山县| 安丘市| 祁门县| 鄂伦春自治旗| 绍兴市| 许昌县| 密云县| 临沂市| 隆尧县| 曲靖市| 安吉县| 麟游县| 丰镇市| 溆浦县| 堆龙德庆县| 固镇县| 房产| 顺义区| 巴中市| 朝阳市| 马公市| 七台河市| 射洪县| 苗栗市| 永清县| 集贤县| 双鸭山市| 收藏| 甘谷县| 华宁县| 始兴县| 垦利县| 新蔡县| 铜山县| 江阴市| 革吉县| 沐川县| 兴宁市| 建平县|