Background technology
Online game: English name is Online Game, also known as " game on line ", is called for short " network game ".
Refer to the Internet as transmission medium, with gaming operators server and subscriber computer as processing terminal, with trip
Play client software is aiming at amusement, lying fallow, exchange and obtain and just invent of information interactive window
There is the individuality MMOG of sustainability.
The research and development technology of online game at present is also in quickly development, from the point of view of game content, and type of play
Fighting in the majority with single role, many roles have the combat game of tactic seldom, and the most graphical
Display packing.Because online game is unlike single-play game, does not only have and there is local user side, in addition it is also necessary to
Server end is transmitted just can operating, and is difficult to technically come by the technology in conventional individual game making
Realize the battle of graphical representation many roles tactic.As shown in Figure 1, the many Role Network of traditional online game
Shape fighting system " turn-based many people fighting system ".Multiple roles that i.e. both sides control are so that " you come me
Past " the mode of fixing attack bout open play.The part of its graphical representation, can load from server
All person model materials and actuating quantities of a complete set, all roles in default fixing attacking and defending bout,
Fixing position performs the attacking and defending action preset.Its property calculation module can use mostly " attacks attribute contrast
Defence attribute be then convert into blood trouble amount (i.e. haemal strand decrement) " pattern.In its graphic software platform module,
In addition to role self action demonstration, also haemal strand other congener concepts such as (or) " vital values " is graphical
Show." failure or dead " state of role is triggered when haemal strand is 0.This antagonism pattern includes that two is big
Substance, i.e. attribute head-on collision, blood trouble displaying: the attribute of role is divided into three major types, i.e. " attacks attribute (1
Or multinomial) ", " defence attribute (1 or multinomial) ", " blood volume attribute (generally 1) ".
The fundamental system of the battle of its role is as described below: 1. computing is obtained by all attack attributes of attack role
Go out the attack value of this attack.2. computing is drawn this defence defendd by all defence attributes of defence role
Value.3. " the attack value of attack role and the defence value of defence role are contrasted ".Control methods is adopted substantially
By the simple operation logic of " asking poor (subtracting each other) ", value or other volumes of guaranteeing the minimum mostly can be added on operation result
Outer calculating process, guarantee can be stable converse " blood trouble amount ", be unlikely to occur negative or other numbers
Value spilling situation.4. used by the display module of its system and deduct corresponding blood volume (reducing haemal strand length)
Method, the displaying that " blood trouble amount " is patterned.Judge that the condition of both sides' victory or defeat can only be set as a side
Role's all " failure or fall in battle " time, it is meant that each role each " quilt before the fight of whole field terminates
The bout attacked " all may trigger " failure or dead " effect, when all roles of side " failure or dead "
I.e. the party's failure, the opposing party's triumph.
In pattern technology, the part of its graphical representation can load whole person model materials from server
And the actuating quantity of a complete set, all roles, in default fixing attacking and defending bout, perform pre-in fixing position
If attacking and defending action.Graphical material between each module calls/and load mode causes carrying relatively Gao Ce
The slightly game subject matter of property.That is, existing graphical material call/loading technique shows many roles battle, can only
In the case of fixing bout attack rhythm, presented by simple haemal strand and injury formula.Therefore can only
For grappling, the battle game such as cutting, but physical culture, war etc. cannot be met and play for character graphic
The demand that content is called/loaded, and if system cannot carry more subject matter, then itself will to research and development more
Eurypalynous game brings the biggest resistance.
Summary of the invention
Therefore, the technical problem to be solved is: the graphical material between each module calls/loads
Mode and the context of graphic software platform, cause current technology cannot carry the game of higher tactic
Subject matter.The present invention is that during online game makes, the graphic software platform of the battle that many roles have tactic provides one
Plant new method and system.For solving the problems referred to above, present invention employs following technical scheme.
A kind of graphical display system of many roles tactic battle in online game, it includes primary module
And accessory module, wherein:
Described primary module includes:
Figure memory module, it is used for storing the most graphical content, i.e. fights all display materials of picture,
Include the basic interface material of battle, background material, wherein core material be all belligerent roles image,
Action, each graphical content is required for the special numbering that can be identified;
Basic load-on module, it is for loading the essential information of battle background front end display interface;
Resolving and assemble module, it is according to the battle strategy of battle engine, resolves and assembles generation both sides and fight angle
The ID of color, Property ID, i.e. assembled " policy calculation module " in module by this parsing and calculate going out of acquisition role
After hitting weight, attribute and success rate, then by wherein " strategy assembles module ", above-mentioned role and attribute are compiled
It is translated into the numbering of correspondence, i.e. role ID and Property ID, and by comprising the request data of above-mentioned ID, is sent to
Graph generation module;
Graph generation module, it receives the information that " strategy assembles module " sends, according to this information from described
Figure memory module is retrieved data and generates the graphical exhibition of " above-mentioned role fights with above-mentioned attribute "
Show content, and send this graphical content to figure load-on module;
Figure load-on module, receives and loads above-mentioned patterned content, after completing to load, will load
Information is transmitted to fighting playing module;
Battle playing module, for loading and play described graph generation module according to described figure load-on module
Generate graphically fights content;
Accessory module includes:
Judge module, for judge in the storage information of described figure load-on module the most stored have above-mentioned
Role and this role are correlated with the picture material of battle action;
The second load-on module after judgement, for when the most stored in the storage information judging figure load-on module
Have described role and this role be correlated with battle action picture material after, directly depositing from figure load-on module
Storage information reads the picture material described in loading.
Optionally, described display system also includes: essential information load-on module, and it designs according to game fighting,
Load and show and fight except " role ", other graphical content in addition to " attribute is to hitting success rate ".
Optionally, described display system also includes: the loading of military success, parsing and output module.
Optionally, other graphical content described include fighting background and battle interface material.
The present invention also provides for one and utilizes described graphical display system to carry out online game many roles tactic pair
The method of the graphic software platform in war, it mainly comprises the steps that
1) user side (containing browser operation end), arranges instruction according to the fight of game user, generates respectively
Three data below: need the ID of the game role calling/loading;Need the game role mould calling/loading
The entire exercise of type and ID;The all properties of the game role that needs call/load and ID
2) above-mentioned three data are retrieved in user side caches one by one, the information retrieved is directly transferred to
Described parsing assembles module;The information not retrieved is assembled, by assemble generate comprise needs call/
The game role loaded and the request data of the model of battle mode and action, Property ID carry out protocol packing,
And it is sent to server;
3) described server receive and parse through user side user send comprise the game angle that needs call/load
Color and the battle model of mode and action, the request data of Property ID, according to ID from server database
Retrieve the actor model of correspondence, action, attribute respectively, each model, action, attribute are generated independent
URL link address, and URL link address is fed back to user side, user side receives above-mentioned server feedback
Load game role and the model of battle mode and the URL link address of action ID, and diagonal angle normal complexion action
Model loads;
4) after having loaded, user side arranges instruction according to the fight of user, resolves the genus of both sides' game role
Property numerical value attribute value is carried out comparing calculation, it is thus achieved that the success rate of this fight, and obtaining according to success rate
Must fight result, at display end to parsed actor model, action, attribute, success rate and fight knot
The graphical material of fruit is sequentially output.
Preferably, above-mentioned attribute value includes two values of series calculated by a few single attribute value.
According to a further aspect in the invention, the present invention also provides for a kind of games system, it include above-mentioned graphically
Display system.
According to a further aspect in the invention, the present invention also provides for a kind of described graphical display system in network trip
Application in play.
The present invention is the game that such as football, basketball sport athletic game, extensive legion fight simultaneously very well
Provide a kind of brand-new Display Technique scheme and system, it is possible to carry the game subject matter of higher tactic.
Detailed description of the invention
Describe the present invention below in conjunction with accompanying drawing 1-5 and embodiment.
Relational language makees description below or definition the most in the present invention:
Role refers to that the virtual image that player plays the part of in gaming or controls, each role typically have oneself
Independent feature (such as sex, ability etc.), role is not limited to " mankind ", it is also possible to be animal even
Other objects, player plays the part of or role's quantity of controlling can be 1 or multiple.It should be noted that
The relation of player and role be not necessarily 1 to 1 play the part of relation, such as in football game, player may
Can exist as the boss of a team, all sportsmen of composition team belong to the role that player controls.
The battle that battle refers between different role, refer generally to the role that controlled by player and another player (or
Computer) battle between the role that controls.The role B that the role A that such as player's first controls controls with player's second
Between battle.It addition, the performance of battle can be, but not limited to, traditional fistfight, it is also possible to
It is gunbattle, verbal battle, even sports etc., as long as expression way is intended to the antagonism between deduction role,
All referred to as battle.
Attribute attribute refers to constitute the various features of a role, such as gender attribute, capabilities attribute etc.,
Attribute herein refers mainly to determine the attribute that role fights strength, is essentially identical to capabilities attribute.The most very
The concepts such as " strength ", " quick ", " intelligence " often occurred in many game.Attribute is mostly with the side quantized
Formula presents, such as " strength 120 ".
The battle that policing policy refers to play can be supplied to one thinking of can thinking hard of player more and ask
Topic, processes the environment of relatively complex thing.Rely on the control of player, manage and use the people in game or thing
The way resisting enemy that the means such as thing and players use one's brains to find out reaches the target of battle triumph.
Player is not necessarily limited in battle for strategy, it is also possible to be the game plan of prewar.Diplomatic
Battle can preferably be deduced, and some are raced or game subject matters of Fructus Alpiniae Oxyphyllae.Such as the arrangement of football game formation, attack
Tactics etc..
Weight weight herein represents that role is in battle during the whole battle that many roles participate in
Effect will be treated with a certain discrimination, such as: in normal battle, initiation is accounted for the attack attacking sum 50% by role A,
Role B initiates to account for the attack attacking sum 30%, and role C initiates to account for the attack attacking sum 20%.
For another example: student's end of term general comment is to student's usual performance, interim examines achievement, comprehensively the commenting of final exams achievement
Valency, but shared by these three achievement, the proportion of the achievement of end of term general comment is different.If usual performance accounts for 30%, the phase
In examine achievement and account for 30%, final exams achievement accounts for 40%, then end of term general comment=usual performance * 0.3+ is interim examines achievement
* 0.3+ final exams achievement * 0.4.
Its effect of haemal strand is the most very clear display personage and the blood volume of monster, but a lot of situation
Under do not see exact value.In game running, the top of role self or other monsters can show a strip,
Here it is so-called haemal strand.It can be general display blood volume.
This display system is based primarily upon following principle: all patterned actor model matching systems are discernible
Independent numbering.Server database stores above-mentioned patterned actor model and corresponding numbering.Each
The discernible independent numbering of each property matching system of role.Server database store above-mentioned each
Attribute and the numbering of correspondence.System sets up strength evaluation mechanism for battle both sides' fight, double to obtain battle
The fighting capacity of side, it is also possible to be strength or morale value.Based on fighting capacity, obtain both sides launch an attack frequency.(i.e.
Rounds and sequencing) each action of role, such as " attack ", " defence action ", " triumph
Action ", " failure action " discernible independent numbering of matching system.Server database store each
The numbering of each action of role and graph of a correspondence model.Each role has the weighted value participating in battle.
System calculates the numbering obtaining role according to weighted value.Patterned actor model is called according to role's numbering.
By the individual event numerical value between role relatively calculate this battle success rate.Its principle is by game
Directly the comparing and computing of single attribute numerical value (or superposition of a few attribute value) between different role,
Obtain the success rate of this bout attack.This battle result is obtained based on this battle success rate computing.
According to battle victory or defeat result obtain role should perform triumph, unsuccessfully number.Each angle is called according to numbering
The triumph of color, failure action.Once typical role fights and is generally made up of multiple such battles, each
The result of battle is as little point, and multiple battle results add up and obtain total military success of normal fight, judge normal
The victory or defeat of fight.The matching relationship of both sides role is determined by the weighted value of player or systemic presupposition.Based on
The game of present invention exploitation is usually present formation concept (but allowing also to the game mode not having formation), in formation
Diverse location can be endowed different weights, weight by player's setting, competition tactics, formation classification and
The impact of controllable factor in his game.During battle, the difference according to weighted value of playing, capture spy at random
Determine role to appear on the scene.And play in the opposing party both can by take identical in the way of determine rink corner color, it is also possible to
Identity information based on attacker role, uses specific rule to carry out the corresponding role of match selection.
The present invention can be based on C# language and FLASH technological development and realize, but identical method can also be based on
Other alternative technologies such as JAVA, C/C++ or HTML5 realize.Online game applied environment based on
During browser, the present invention can using sing on web browser and FLASH player as basic operation front end,
And needing possess basic Computer qd Graphic Animation display capabilities, server end then needs by means of certain data
Storehouse system (such as MS SQL) stores the single attribute numerical value of game role, and sing on web provides external
Access.
See accompanying drawing 2, based on principles above, the display system of the present invention mainly by following module composition, including
Primary module and accessory module.
Wherein primary module includes:
Figure memory module, it is used for storing the most graphical content, i.e. fights all display materials of picture.
Include the basic interface material of battle, background material.Core material be " image of all belligerent roles,
Action ", expand material and also include technical ability that may be present, other specially good effects etc..Core as storage format is wanted
Element, each patterned content is required for the special numbering that can be identified;
Basic load-on module, it is for loading the essential information of the front end display interfaces such as battle background;
Resolving and assemble module, it is according to the battle strategy of battle engine, resolves and assembles generation both sides and fight angle
The ID of color, Property ID.I.e. assembled " policy calculation module " in module by this parsing and calculate going out of acquisition role
After hitting weight, attribute and success rate, then by wherein " strategy assembles module ", above-mentioned role and attribute are compiled
It is translated into the numbering (i.e. role ID, Property ID) of correspondence, and by comprising the request data of above-mentioned ID, is sent to
Graph generation module;
Graph generation module, it receives the information that " strategy assembles module " sends, according to this information from " figure
Shape memory module " the middle graphical exhibition retrieved data and generate " above-mentioned role fights with above-mentioned attribute "
Show content, and send this graphical content to figure load-on module;
Figure load-on module, receives and loads above-mentioned patterned content, after completing to load, will load
Information is transmitted to fighting playing module;
Battle playing module, for loading and play, according to figure load-on module, the figure that graph generation module generates
Shapeization battle content.
Accessory module includes:
Judge module, the most stored in the storage information judging figure load-on module have above-mentioned role
And the picture material of the relevant battle (action) of this role;The second load-on module after judgement, for when sentencing
The most stored in the storage information of disconnected figure load-on module role and the relevant battle (action) of this role are stated
Picture material after, directly from the storage information of figure load-on module read load described in picture material.
Optionally, the display system of the present invention can also include: 1, essential information load-on module, i.e. foundation
Game fighting designs, and loads and shows and fights except " role ", other in addition to " attribute is to hitting success rate "
Graphical content, such as fights background, other battle interface materials etc..2. the loading of military success, parsing, defeated
Go out module, in once many roles tactic is fought, typically can there is the battle organizing role more, i.e. produce repeatedly
Battle result, the victory or defeat result of the whole war situation is considered as the cumulative of the above-mentioned result of battle each time.If not record
The result of role's battle, just cannot pass judgment on the result of the whole war situation every time.Therefore, game typically needs
" military success module " i.e. scoring system is wanted to pass judgment on and present battle result.Such as first VS second is currently fought
Achievement 3: 1.The mode of haemal strand is used to present " military success module " it can be mentioned that the most do not repel.
Seeing accompanying drawing 3, the graphic software platform method in online game many roles tactic battle of the application is main
Comprise the following steps:
1), user side according to the fight of web page user, instruction is set, generate following three data respectively:
1.1 ID needing the game role calling/loading
The entire exercise of the avatar model that 1.2 needs call/load and ID
The all properties of the game role that 1.3 needs call/load and ID
2), above-mentioned three data are retrieved in user side (containing browser operation end) caches one by one, will inspection
Rope to information be directly transferred to " 4. resolve assemble module ".The information not retrieved is assembled, by group
What dress generated comprises the game role and the model of the mode of battle and action, Property ID that needs call/load
Request data carry out protocol packing, and be sent to server.
3), server receive and parse through user side network gaming user send comprise the trip that needs call/load
Play role and the battle model of mode and action, the request data of Property ID, depend on from server database
Retrieve the actor model of correspondence, action, attribute according to ID respectively, each model, action, attribute are generated solely
Vertical URL link address, and URL link address is fed back to user side.User side receives above-mentioned server
That feeds back loads game role and the model of battle mode and the URL link address of action ID, and to role
Load with action model.
4), loaded after, user side arranges instruction according to the fight of web page user, resolves both sides and plays angle
The attribute value (including two values of series calculated by a few single attribute value) of color by attribute number
Value carries out comparing calculation, it is thus achieved that the success rate of this fight, and obtains fight result according to success rate.Aobvious
Show and hold the graphical material to parsed actor model, action, attribute, success rate and fight result to enter
Row is sequentially output.
As can be seen here, the present invention be very well such as football, basketball sport athletic game, extensive legion (or
Other unit) game simultaneously fought provides a kind of brand-new technical scheme and system.The system of the present invention
In, each graphical material is carried out subregion and divides and call/load and show, " role ", " action ", and by right
The decision of war bout (attack order) and battle role participate in fighting the property value of result computing, success rate
All carry out the displaying of graphical (visualization), the playing method of tactic can well have been carried.The present invention is also
Novelty propose this bout attack success rate obtained according to individual event attribute operation, then by with weight
Random number determine the algorithm of single bout attack result, become apparent from the effect that ensure that player's logarithm value
Perception on the premise of, add the random and uncertain of game..
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to
This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in
Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should
It is as the criterion with described scope of the claims.