Analysis on the battle architecture of jiugongge

Source: Internet
Author: User

Division of combat modules
I. Combat stand-alone framework
The subdivision framework includes the following systems and technical points:
1. MAP cycle system;
2. Genie System (2-way and 4-action );
1) genie action state machine, total genie parent class, gamer genie subclass, and monster genie subclass;
2), Action assembler (Frame Animation encapsulation );
3), direction calculator (calculate the wizard orientation based on the displacement of different points );
4), effect action assembler (movement, rotation, zoom-in and zoom-out, saabel curve and other actions Assembly );
5), Genie Buf, halo, status controller (genie Buf status, underfoot halo, texture Status control );
6). The sprite touch area;
7), the sprite blood bar controller;

3. Special effect system;
1), general special effects;
2) Skill special effects;

2. Genie model (model layer );
3. Knight array;
4. Monster Array;

5. 9role-connection );
1), the nine-palace lattice connection system (based on the same color makeup connection algorithm );
2) guided connections (black-line guided connections and disconnection algorithms, including Angle Calculation and displacement update radians );
3), the connection is canceled (the connected algorithm is canceled based on the original route using the connected array method );
4). The halo color of the sprite array (add the color array to the sole of the genie)

6. Common genie attacks;
1), Genie Movement (action );
2) common attacks
3), Genie attack, Monster Attack, skill attack effect, and jitter
4) the chivalrous genie moves back and restores the monster to its position;

7. array filling system (the conditions for completing 12 genie: 1, not repeated, 2, from left to right, and then from top to bottom)
1), population shift algorithm (Data population model, population genie view );
2), reset the algorithm after completing (reset the current sequence tag. Note that I reset the current Sequence Based on the sprite coordinates );

The above attack loop + makeup is a single-host combat framework that can be run cyclically;

2. Common Attack Modules after the Combat model has been officially deployed;
1. display the level information;

2. Map switching, role running, and other combined combat scenario special effects;

3. Wizard Model Data normalization;
0), 9 models for players, Friends/Ranger (3 models ).
1). Xia ke attacks, blood volume, and recovery;
2). Property of Xia Ke (Golden Wood, fire, recovery );
3), monster model: Attack, blood volume, combination number, weakness attribute;
4), the sprite blood bar controller;

4. Common chivalrous genie attacks (details)
1) single genie Attack:
Knight (mobile, attack, and run back)
Monsters (attacked, Special Attack Effects, special numeric effects, special combo effects, and standing recovery)
2) Multiple genie attacks to deal with the sequential rhythm of serial moves;

5. Round Timing Controller. (after each round of "one or one round of active connection attacks by players" is processed, the system checks the round status of the current combat scenario and all the genie statuses ):
1) view detection;
2), Genie detection;
3) detection of death of monsters;

6. The monster genie attacks the Knight:
1) attacks are carried out based on the round controller when the monsters are detected;
2), monster attack sequence processing;
3) single monster attack sequence processing:
Monsters randomly select attack targets;
Monster Attack Status;
The Chivalrous genie is attacked, under special attack effects, and the gamer deducts blood effects and deducts blood values;
The genie is back to normal;
Number of Retries after a monster attack is completed;

7. The probability of adding a mandatory buff based on the number of planned values during the game population process is as follows;

8. Total blood size of the gamer's chivalrous guest (total blood volume of 12 genie );

9. Death of the monster genie:
1) death detection;
2) death effect;

10. When a monster attacks, determine the number of heroes attacked by the monster skill:
1) single attack;
2) Multiple Attacks;

3. Common Attack Module

1. The data model is used to obtain the requested data;

1. the anger of the chivalrous genie is triggered;

2. Creation of Chivalrous genie anger effects;

3. Reconstruct the attack on the basis of the common genie attack:
1), the Genie becomes red;
2), Genie displacement;
3) make the shadow effect during displacement and fade the effect;
5) Production of false collision (rhythm control );
6), Monster Attack effect, Combo effect, numeric combo effect (multiple seek values), and monster blood deduction effect;
7) Restore monsters

4. Common tricks are triggered Based on the probability of Normal attacks by the chivalrous genie;

4. 9-Click Attack Module
1, 9 join Composition Conditions

2, 9 connected attacks:
1) perform even determination first
2) the decision was successful. The first eight chivalrous men performed the original buff and attack operations (including common and common attacks)
3), the last genie is the killer skill released:
Screen enlargement,
The last role sprite flashed a large CG,
The last Genie released the full screen in situ,
Full Screen monsters perform blood deduction.
4), restore all genie

5. Monster and shield Module
1. Added shield for normal monster attacks
2. Added conditional queries by Alibaba Cloud security.
3. Monster Attack and shield:
0). Select the number of targets and randomly select targets;
1), the camera follows the monster to zoom in;
2) In-situ monster attacks;
3) monster playing skills;
4) The genie knight is attacked in the same place, and the gamer deducts blood and displays numbers;
5). query the number of security guards added by monsters and the type of security guards;
6), add Shield
4. Crack Shield
0). Crack the security protection conditions;
1) The new anti-bot attack will be removed from the new anti-bot attack;
2) updated the monster shield;

6. Player death
1. Determine the player's death;
2. After the device is killed, a message is displayed, indicating whether to connect to the device ?);
3. If the device is not switched off, a message is displayed indicating that the device exits the battle;
4. Connect to the Customs. When the box is closed, the following prompts disappear:
Buy a resurrection stone bullet box and use the stone
5. After the resurrection, the combat round is 1;

7. Save the level information
1. After hitting every wave of monsters, perform map switching.
2. The progress of the level is displayed during switching, for example, (2/3 waves );
3. Switching the level means that the Communication Server saves data and tells the server about this wave;

8. Exit
1. The exit dialog box is displayed;
2. Confirm to cancel the operation;
3. the combat failure dialog box is displayed;
4. After loading clears the processed data, perform corresponding redirection;

9. Total battle settlement)
1. Request the server to apply for settlement data;
2. Send the level information to the server;
3. Get the server data and parse it;
4. displays the drops of the level, drops something, and updates local data;
5. Show victory
6. After loading clears the processed data, perform corresponding redirection;



Analysis on the battle architecture of jiugongge

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.