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

'Tis volley

What kind of game are we going to make? Well, let's pretend that you are totally pumped up about volleyball (work with me here). All you can think about night and day is volleyball. You dream about it at bedtime. You play it every chance you get. So, when it comes to making your first game in Unity, there's no question: you have to make a volleyball game.

Let's back away from that idea a little and, using what we learned in Chapter 2, Let's Start with the Sky, evaluate the difficulty level of a volleyball game. Volleyball features two teams of six players on either side of a net. A server hits a ball with his hands over the net, and the teams cooperate to keep the ball in the air, hitting it back and forth over the net. The rally ends when:

  • One team lets the ball hit the floor
  • The ball goes out of bounds
  • An angry puma bursts onto the court and starts chewing on the star player

The first team to score 25 points wins the set. A match is best-of-five. Then there are a number of rules that govern how often and in what way a player may hit the ball (hint: no grabsies).

Hopefully, it's clear that volleyball is a BIG game with lots of rules and a helping of complexity. Multiple teams mean that you have three options:

  • Two-player, same computer: both players share the keyboard and mouse to compete against each other
  • One-player, same computer: so, you'd have to program AI artificial intelligence to enable the computer to play against a human
  • Two-player, different computers

We saw in the last chapter that these multiplayer options can add significant layers of complexity to a simple game. Right out of the gate, the challenge is daunting. In addition to providing for two teams, having multiple players on each team means that you have to program a way for the player to switch between different characters. And who knows how you're ever gonna animate that puma?

主站蜘蛛池模板: 新巴尔虎左旗| 永新县| 博湖县| 泰和县| 兰溪市| 吉水县| 丽水市| 蒙阴县| 乌拉特中旗| 成安县| 延边| 白河县| 嘉鱼县| 南阳市| 平泉县| 揭东县| 抚远县| 筠连县| 慈利县| 体育| 新龙县| 阜新市| 墨脱县| 土默特右旗| 祁东县| 岗巴县| 闸北区| 泸溪县| 新田县| 灵丘县| 蕲春县| 万载县| 内乡县| 河源市| 崇州市| 西畴县| 鲁甸县| 芮城县| 开封县| 奉贤区| 林州市|