![]() ![]() Dressing as the Enemy: The Masquerade power gives your tank the team color of the opposing team.The only way to make a diagonal attack is to have the Guided Missile power (which will allow shots to lock on to things that aren't in the same horizontal plane) or use the Ricochet power to bounce a shot off an angled surface (which is extremely unlikely to hit anyone). Tanks cannot fire in any direction other than dead ahead, and cannot look up or down. Denial of Diagonal Attack: Deliberately invoked.The 3D graphics are deliberately simple, which is part of its charm the main focus is on the gameplay and providing a fun, balanced tank battle for up to dozens of players at once. The first version of BZFlag was released in 1992, and accumulated a fanbase as more and more features were added over the years. The battlefield is generally very large, and just like in real tank warfare, battles can take place over very long distances. The player is also equipped with a radar map, to tell them the positions of other tanks - this is often vital, as the tank's view will often be obstructed by tall obstacles. There is also an option to enable 'bad' superflags, which do something bad to tanks which pick them up. All superflags look identical, so there is no way of knowing which power you will get until you have picked it up (unless you've already picked up the superflag which gives you the Identify power). To add variety to the gameplay, the game also randomly places power-up flags called "superflags", which can give your tank a power to mess with your opponents. Any single hit on your tank will destroy it. (If you're lucky, the server might allow you to fire more than one shot at a time). Your one and only weapon is a fixed cannon that fires a large projectile in the direction you are facing, and takes a long time to reload. Players are spawned into a large battlefield in the control of a simplistic tank - essentially a slow, mobile box which can turn, move forward, and move backward (no strafing). Get to the point that you can explode a stationary tank by typing commands to your tank.BZFlag, short for "Battle Zone Capture the Flag", is a multiplayer tank combat game, inspired by Atari's classic 1980 arcade game Battlezone (1980). With your partner, continue experimenting with controlling the tanks. Then the second bot is told to go in reverse at 70% of the maximum possible speed. This will set the speed of bot 0 to maximum forward speed, and then tell it to rotate counter-clockwise at half of the maximum possible angular velocity. Just specify the command, bot, and value, like so: Similarly, you can set a desired angular velocity, where 1.0 is maximum counter-clockwise and -1.0 is maximum clockwise. You can set a desired speed, where 1.0 is the maximum forward speed, and -1.0 is maximum reverse speed. While the first bot's cannon is being loaded, tell the second bot, whose id is 1, to shoot: You should see a shot fired from one of the bots. Just for fun, send the following instruction to the first bot, whose id is 0: The bots now recognize you and are happy to follow your bidding. The bots should introduce themselves by saying: Telnet localhost (pick a color and use one of the ports printed out by bzrflag) Now, we will give a simple tutorial on how to control the tanks, to get some practice with the BZRC protocol. For the labs, you will need to understand it well. For this homework, you may want to just skim it and get the general idea. You will need to use this protocol, so become familiar with how it works. Protocol that BZRFlag uses is the BZRC Protocol. In order to control the tanks, you need to talk to that port. It also prints out what port each team is listening on. This brings up BZRFlag, with four teams in a simple world. There's a bug where if it tries to make the window too big, you can't scroll correctly, so if you run into that just make the window smaller. If you're on a laptop with low resolution, the option to change the size of the window when it comes up is –window-size=x. Feel free to modify those or create your own as you need (assuming you copied the directory). There are a few scripts in the directory that start everything with appropriate flags. To get a list of the command line options you can use, run: ![]()
0 Comments
Leave a Reply. |