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

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:

Game design

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.

主站蜘蛛池模板: 陆川县| 昆明市| 新乡县| 凤翔县| 山东省| 克山县| 大余县| 荔浦县| 宁乡县| 黄平县| 明星| 新宁县| 五大连池市| 壤塘县| 丹棱县| 嘉峪关市| 酒泉市| 博罗县| 安平县| 固阳县| 隆尧县| 清徐县| 遂平县| 焉耆| 巧家县| 连江县| 长白| 富锦市| 正阳县| 大新县| 邢台市| 梁山县| 金沙县| 抚顺县| 光山县| 石阡县| 凤凰县| 武鸣县| 天台县| 永兴县| 衡水市|