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

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.

主站蜘蛛池模板: 田林县| 临汾市| 浮山县| 九龙坡区| 南通市| 宁德市| 荥经县| 新营市| 天门市| 荥经县| 博白县| 巴南区| 宿迁市| 库车县| 利津县| 宁河县| 双桥区| 红河县| 东海县| 商城县| 台南县| 柳河县| 沙坪坝区| 墨玉县| 瑞昌市| 盐亭县| 西青区| 隆回县| 德钦县| 乌兰县| 新河县| 长岭县| 锦屏县| 沧州市| 新邵县| 中方县| 安陆市| 六盘水市| 邳州市| 长武县| 阿巴嘎旗|