Tank Wars game c ++ requirements

Source: Internet
Author: User

I. The idea

I believe that when we were young, we had the experience of playing game machines. At that time, we often held the game machine of the overlord and were so fond of ourselves. Even every day, we were scolded by our teachers for failing to complete our homework, however, we are still happy. At that time, a very famous game was the tank war. When I started playing again, I could still recall my childhood happiness. Every time I go home from school, I threw my schoolbag and sat in front of the TV with my classmates. Although the game "tank wars" is not designed as complicated or simple, it seems to have an infinite charm that allows people to play it over and over again.

Tank life is an arpg game. Players will control a small tank that is not famous at first, and write their own brilliant tank life for their own purposes.

I would like to dedicate this game to friends who are keen on tank wars as a child. Let's repeat the unlimited fun that tank games bring to us.

Ii. Game Overview

1. Chinese name: Tank life

2. English name: the tank life

3. Game type: arpg

4. Operating System: Windows

5. Game Operation: keyboard

6. hardware configuration: 80486 or more CPU, 16 MB memory, 20 MB hard disk space, and support for directx8.0

Iii. Game core the gameplay

The main tank in "Life of the program" will have a wealth of individual attributes and be able to carry a variety of items. The game subject will switch the scenario as the task progresses. In each scenario, you can talk to the NPC, obtain the task, and then push the plot by eliminating the enemy tank. Both the main line and branch are set for the plot. Different players' choices will also lead to different game endings. Individual upgrades of the main tank, equipment replacement, and rich shell systems will be a highlight of the game.

Iv. game programming file structure (class design)

1. Main Program: game. h game. cpp

Member function design: Game initialization, Environment setting, role initialization, map drawing, and conversation Initialization

2. Graphics System: ddraw. h

Member function design: read graphic materials and draw roles and scenarios.

3. Sound System: dsound. H sound. H sound. cpp

Member function design: Init (); destroy (); play (); stop (); loadeffect ();

4. Audio reading: wavread. h wavread. cpp

Member function design: open (), reset (), read ()

3. Input System: dinput. h input. h input. cpp

Member function design: Read the keyboard input bool getkey ()

4. Bullet determination: plane. H plane. cpp

Member function design: Issue location, speed, impact effect

7. Equipment System: equipment. h equipment. cpp

Member function design: Uses vector storage equipment (name, attribute value)

8. store system: shop. h shop. cpp

Member function design: product category display, purchase, and sale.

9. Tank System: Tank. h tank .. CPP

Member function design: Use the class inheritance mechanism. The main tank and the enemy tank inherit the attributes of the tank. Life, attack, defense, and speed.

10. Repair System: repair. h repair. cpp

Member function design: repairs tanks and determines the maintenance cost based on damage conditions.

11. Task system: task. h task. cpp

Member function design: displays tasks, determines tasks, and switches tasks.

12. Access System: gamesave. h gamesave. cpp

Member function design: reads the game progress by reading files, and stores the game progress by storing files.

5. Game Resource requirements

1. graphic materials: A. Main tank B. teammate tank C. Enemy tank D. Equipment e. shells F. Terrain G. Game logo

2. audio material: A. Walking sound B. Shell launch sound C. Shell Impact sound D. Tank Explosion Sound E. Scenario Switching

3. Music Materials: A. Opening Music B. Game Background Music C. End music.

6. Game Module

1. tank equipment system: crawler, turret, machine gun, power system, Loading System

2. store system: upgrade equipment of tanks

3. teammate Collaboration System: at a certain level, there will be a tank of friends to join and fight together.

4. Maintenance System: After a tank is in battle, it can be repaired at the maintenance plant.

5. NPC design: design the tank NPC according to the plot.

6. Monster systems: enemy tanks with various performance features (enhanced speed, enhanced armor, and enhanced firepower). Different types of tanks are divided by different performance enhancements. In the same rank, each attribute is divided into three levels, and a total of nine levels are formed in the combination.

7. Shell System: A, combustion shell B, ice shell C, fast shell D, armor-piercing shell

VII. Role attributes

1. Life Value: the initial value is 100, and the life value is 100 + 10.

2. level: the initial value is 0, which is upgraded based on experience. 100 to 2 levels. Each level is increased by 200%.

3. Defense: the initial armor 100 is used to increase the armor value by obtaining the equipment.

4. Attack: 1000 basic shells. Enhance the firepower by upgrading the loading system and obtaining advanced shells. The launch speed is determined by the missile loading system. It involves two attributes: the launch speed and the shell level.

5. Speed: the initial value is 10, which is jointly determined by the power system and the crawler system.

6. shells: 1000 rounds of basic shells are attached. Other shells can be obtained through purchasing or tasks, with two launch shortcuts.

8. Game operations (the game can be set at the beginning)

1. Walking operation: the default value is a w s d.

2. Dialog operation: Space

3. Attack operations: the first shell J and the second shell K

4. Setting operation: enter to enter the setting page. You can view various attributes and change shells.

5. menu operation: Press enter to confirm

9. Analysis and Algorithm Improvement of old games

1. To eliminate tanks to Promote the level, there is no plot of development. The main tank does not have its own character characteristics. This game is designed to change the level to the form of character RPG, giving the main tank a fresh character. Compile a game story and set up a stage to show the characteristics of the main tank.

2. There is no speed change in the old main tank, and The crawler system and power system are added to the new game to form a speed change.

3. The number of shells fired from the old primary tank is determined by the number of shells. At the initial level, only one shell can be fired. The new game depends on the actual physical properties of the transmitter to form a change in the transmission speed.

4. The Enemy AI in old games is relatively weak, and they do not actively address and attack the main tank. The new game will search by range and take the initiative to attack the main tank. Multiple similar tanks will form a joint operation to attack the main tank through tactics.

5. In the old game, the main tank has fewer attributes. In the new game, attacks, defenses, lifecycles, speeds, shells, and other attributes are added.

10. Game process

1. Opening: adds game instructions to the old tank war music.

2. Menu: A. Start game B. Game Description C. Development Team D. End Game

3. Main process: Configure branches for multiple scenarios as the task progresses.

4. End judgment: if the main line task fails or the role's life value is 0, the game ends.

5. Conclusion: some illustrations and production teams are displayed and the game is exited.

Game Development Division:

1. UI design team. 2. Sound design team. 3. plot design team. 4. Equipment Design Team

6. Game Development Team: develop one or more modules by module.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.