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

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.

主站蜘蛛池模板: 沾化县| 石家庄市| 江孜县| 毕节市| 葵青区| 兰考县| 灯塔市| 巴林右旗| 湘阴县| 达日县| 铜山县| 温泉县| 察雅县| 新宁县| 紫金县| 诏安县| 嵊泗县| 上饶市| 吉木乃县| 射阳县| 保康县| 黎川县| 潮州市| 墨脱县| 淳安县| 古蔺县| 盐边县| 桃源县| 南澳县| 炉霍县| 县级市| 绥芬河市| 盘山县| 乌恰县| 涟水县| 乡城县| 馆陶县| 岑溪市| 肃南| 普兰县| 渭南市|