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

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.

主站蜘蛛池模板: 孝义市| 周口市| 济阳县| 宜州市| 进贤县| 盖州市| 南木林县| 扶沟县| 东光县| 马关县| 佳木斯市| 西安市| 嘉兴市| 剑川县| 盐山县| 政和县| 富民县| 长岭县| 那坡县| 维西| 上杭县| 承德县| 洮南市| 霍林郭勒市| 乡城县| 铁岭市| 鞍山市| 石台县| 新邵县| 潼关县| 兴城市| 台安县| 满洲里市| 海宁市| 四平市| 金华市| 卢氏县| 桃江县| 仙游县| 卓资县| 荔波县|