CN102385759B - Method and device for changing characters in web game - Google Patents

Method and device for changing characters in web game Download PDF

Info

Publication number
CN102385759B
CN102385759B CN201110332939.4A CN201110332939A CN102385759B CN 102385759 B CN102385759 B CN 102385759B CN 201110332939 A CN201110332939 A CN 201110332939A CN 102385759 B CN102385759 B CN 102385759B
Authority
CN
China
Prior art keywords
layer
outfit
information
skin
article
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110332939.4A
Other languages
Chinese (zh)
Other versions
CN102385759A (en
Inventor
叶楚钦
龙春燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai illusion Network Technology Co., Ltd.
Original Assignee
SHENZHEN DIQIDADAO NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN DIQIDADAO NETWORK TECHNOLOGY Co Ltd filed Critical SHENZHEN DIQIDADAO NETWORK TECHNOLOGY Co Ltd
Priority to CN201110332939.4A priority Critical patent/CN102385759B/en
Publication of CN102385759A publication Critical patent/CN102385759A/en
Application granted granted Critical
Publication of CN102385759B publication Critical patent/CN102385759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method for changing characters in a web game. The method comprises the following steps of: dividing a reloading part of the current character into different image layers, wherein the different image layers comprise a revisable image layer; receiving reloading information which is from a client and is used for changing the reloading part, wherein the reloading information comprises colour information which is input by the client and corresponds to the revisable image layer; comparing stored character information of the current character with the reloading information to obtain replacing reloading information; and correspondingly modifying the colour information corresponding to a variation image layer in the character information, drawing a new character, and providing the new character for the client. The embodiment of the invention also discloses a device for changing the character in the web game. By adopting the method and device disclosed by the invention, more characters can be provided for the client, individual need of a user can be better met, a request of the client can be responded fast, and time delay is reduced.

Description

Figural method and device in a kind of change web game
Technical field
The present invention relates to web game technology, particularly, relate in particular to figural method and device in a kind of change web game.
Background technology
In nearly all game the inside, change the figural method part that is all absolutely necessary.Figure image in web game has specific profile, color, sound and action, user can be refracted in web game in real-life image, and can developed and change in the process of game.In conventional client game, changing figural way in game roughly has two kinds, and a kind of is directly whole figure image all to be changed, and another is only to change a figural part.
But for web game, because its all game resources are all placed on server, not, as traditional game, all game resources are all downloaded to this locality.Therefore, change the figure image in web game and than conventional client, play difficult many.
In the prior art, changing figural method in web game has:
The first, the integral body technology that changes the outfit, directly realizes by changing whole figural bitmap.In this manner, if want to change figural certain position, just must replace whole figure image.So, need client that whole figure image is all downloaded from server end, so take more resource and the bandwidth of server, and changing figure image also not in time, also have the situation of time delay.
It two is: the part technology that changes the outfit, realizes by changing figural part bitmap.The change the outfit thought of technology of part is, whole figure image is divided into a plurality of positions that change the outfit, then the picture at these positions that change the outfit is superposeed according to a definite sequence, just formed a complete figure image; Wherein, the picture at each position that changes the outfit is comprised of a figure layer.If player will convert certain specific changing the outfit during position, just can directly by changing the picture at this specific position that changes the outfit, realize.The resource that the part technology of changing the outfit will load is scattered, and the resource at the position that each is independent is enough little, so when change is figural, much smaller when the phenomenon of generation time delay changes the outfit technology than employing integral body.And also well a lot of than the whole integral body technology of changing the outfit aspect the reusability of resource.
Use the defect of the technology that partly changes the outfit to be: figural diversity is determined by the whole figural position that changes the outfit; Such as, if whole figure image is divided into hair style, face, clothes, decorates four positions that change the outfit, and each position that changes the outfit always has 10 kinds of picture patterns.The figural quantity that can construct so, is 10000 kinds.With respect to ten hundreds of number of players, figural diversity seems not, makes at user option figure image very little, can not meet well user's individual sexual demand.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, figural method and device in a kind of change web game is provided, can constructs abundanter figure image, meet better user's individual sexual demand, also the request of customer in response end rapidly simultaneously, reduces time delay.
In order to solve the problems of the technologies described above, the embodiment of the present invention provides a kind of figural method in change web game, comprising:
The current figural position that changes the outfit is divided into different figure layers; Wherein, comprise can modification figure layer for described different figure layer;
Reception is from the information that changes the outfit at the position that changes the outfit described in the change of client; The described information of changing the outfit comprises the described colouring information that can modification figure layer correspondence of being inputted by client;
By storage current figural figure image information with described in the information of changing the outfit compare, obtain the information of changing the outfit;
The corresponding colouring information of revising variation diagram layer correspondence in described figure image information, and draw new figure image, and provide described new figure image to this client; Wherein, the colouring information of described variation diagram layer correspondence is that the described replacement information that changes the outfit is indicated.
Correspondingly, the embodiment of the present invention provides figural device in a kind of change web game, comprising:
Figure layer is divided module, for the current figural position that changes the outfit being divided into different figure layers; Wherein, comprise can modification figure layer for described different figure layer;
Transceiver module, for receiving the information that changes the outfit of changing position from the described dress of change of client; Wherein, described in the information of changing the outfit comprise the described colouring information that can modification figure layer correspondence of being inputted by client, describedly can by described figure layer, divide Module Division by modification figure layer;
Comparison module, for by storage current figural figure image information and described transceiver module receive described in the information of changing the outfit compare, obtain the information of changing the outfit;
Processing module, revises the colouring information of described figure image information variation diagram layer correspondence, and draws new figure image for correspondence; Wherein, the colouring information of described variation diagram layer correspondence is that the described replacement information that changes the outfit that described comparison module relatively obtains is indicated;
Described transceiver module, also offers client for described processing module is processed to the new figure image obtaining.
Implement the embodiment of the present invention, there is following beneficial effect:
By the same position that changes the outfit being divided into different figure layers, and the colouring information that receives the revised figure layer correspondence of client input, thereby determine and the corresponding colouring information of revising variation diagram layer correspondence in current figure image information, obtain amended figure image information.Because client can be inputted one or more colouring informations that can modification figure layer correspondence, what therefore make to receive becomes many for changing the combination of the colouring information at this position that changes the outfit; Correspondingly, after correspondence is revised the colouring information of variation diagram layer correspondence, the combination of colouring information that can modification figure layer correspondence in the figure image information obtaining has also increased, finally draw and the new figure image that provides to client also abundanter, meet better user's individual sexual demand.Meanwhile, owing to only need to revising the colouring information of variation diagram layer correspondence in the same position that changes the outfit, other figure layer that this is changed the outfit in position does not process, like this request of customer in response end has fast reduced time delay.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of process flow diagram that changes the embodiment of figural method in web game provided by the invention;
Fig. 2 is the corresponding colouring information of revising variation diagram layer correspondence in described figure image information in Fig. 1 of the present invention, and draws the process flow diagram of the embodiment of new figure image method;
Fig. 3 is a kind of structural representation that changes the embodiment of figural device in web game provided by the invention;
Fig. 4 is the structural representation of the embodiment of processing module in Fig. 3 of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, is a kind of process flow diagram that changes the embodiment of figural method in web game provided by the invention, and described method comprises:
Step S11, is divided into different figure layers by the current figural position that changes the outfit; Wherein, comprise can modification figure layer for described different figure layer;
Wherein, a complete figure image, comprises a plurality of positions that change the outfit.For example, figure image can be divided into 7 positions that change the outfit, be respectively: weapon position, cap position, clothes position, face decorations position, hair position, glasses position, face position.Certainly, the division methods at the figural position that changes the outfit is not limited to the above-mentioned mode of enumerating.
In this step, the described figural position that changes the outfit is divided into different figure layers, refers to the picture at the same position that changes the outfit is divided into different figure layers.Different figure layers specifically comprise can modification figure layer and fixing figure layer.Wherein, can comprise article figure layer and skin figure layer by modification figure layer, fixing figure layer comprises original graph layer.Wherein, skin figure layer refers to figure layer corresponding to skin that in this position that changes the outfit, user can see.Article figure layer, refers to figure layer corresponding to other changeable colour article of removing skin in this position that changes the outfit.Wherein, original graph layer, refers to a figure layer that the complete position that changes the outfit is corresponding.Wherein, a complete position that changes the outfit comprises: the skin that user can see, remove skin other changeable colour article, remove skin other can not variable color article.
Step S12, receives the information that changes the outfit from the position that changes the outfit described in the change of client; The described information of changing the outfit comprises the described colouring information that can modification figure layer correspondence of being inputted by client;
Wherein, can revise the corresponding a kind of colouring information of figure layer for one.Therefore can understand like this, the information of changing the outfit comprises one or more colouring informations that can modification figure layer correspondence.Wherein, the colouring information that the difference at the same position that changes the outfit can modification figure layer correspondence is inputted respectively by client.
For example, as described above can comprise article figure layer and skin figure layer by modification figure layer, so correspondingly, client is when the information that changes the outfit at the position that changes the outfit described in input changes, can input respectively the colouring information of article figure layer correspondence and/or the colouring information of skin figure layer correspondence, this colouring information is specially and can be color value.Like this, client can select to change the same one or more colouring informations that can modification figure layer correspondence that change the outfit in position.For the same position that changes the outfit, what client was inputted becomes many for changing the combination of the colouring information at this position that changes the outfit; Correspondingly, receive how also having become for changing the combination of the colouring information at this position that changes the outfit from client.
Step S13, by storage current figural figure image information with described in the information of changing the outfit compare, obtain the information of changing the outfit;
Wherein, current figural figure image information, the colouring information and the style information that comprise the difference figure layer correspondence at a plurality of positions that change the outfit in whole figure image, specifically comprise the colouring information of fixedly figure layer correspondence at a plurality of positions that change the outfit and style information, a plurality of positions that change the outfit can modification figure layer correspondence colouring information and style information.
In specific implementation, by current figural figure image information with described in the information of changing the outfit while comparing, specifically by a plurality of positions that change the outfit in current figure image information can modification figure layer correspondence colouring information with described in can the modification figure layer corresponding colouring information that comprises of the information of changing the outfit compare, to determine the described replacement information that changes the outfit.The described replacement information of changing the outfit comprises the colouring information of replacement figure layer correspondence, is used to indicate the colouring information of variation diagram layer correspondence in current figural figure image information.Wherein, the colouring information of variation diagram layer correspondence refers to the colouring information that needs the figure layer correspondence of modification in figure image information.Variation diagram layer must be can modification figure layer.Owing to receiving how having become for changing the combination of the colouring information at this position that changes the outfit from client in step S12, the change the outfit combination of information of the replacement of determining in this step so has also become many, the information of changing the outfit can be indicated the colouring information of a variation diagram layer correspondence, also can indicate the colouring information of a plurality of variation diagram layer correspondence.
It should be noted that, in this step, if do not obtain the information of changing the outfit relatively, show not need in current figure image information the colouring information of the figure layer correspondence of modification, exit flow process.
Step S14, the corresponding colouring information of revising variation diagram layer correspondence in described figure image information, and draw new figure image, and provide described new figure image to this client; Wherein, the colouring information of described variation diagram layer correspondence is that the described replacement information that changes the outfit is indicated.
In this step, according to the indication of the information that changes the outfit described in step S13, the corresponding colouring information that needs variation diagram layer correspondence of revising.Because of client input can revise the corresponding a kind of colouring information of figure layer, a variation diagram layer of determining is so corresponding a kind of colouring information also, therefore in this step, can revise respectively the colouring information of different variation diagram layer correspondences.
And, because the change the outfit combination of information of the replacement relatively obtaining in step S13 becomes many, correspondingly, it is many that the combination of colouring information that can modification figure layer correspondence in the figure image information obtaining after modification has also become, and the new figure image of finally drawing out and providing to client according to this figure image information is also abundanter.
In the present embodiment, by the same position that changes the outfit being divided into a plurality of different figure layers, and the colouring information that receives the revised figure layer correspondence of client input, thereby determine and the corresponding colouring information of revising variation diagram layer correspondence in current figure image, obtain amended figure image information.Because client can be inputted one or more colouring informations that can modification figure layer correspondence, what therefore make to receive becomes many for changing the combination of the colouring information at this position that changes the outfit; Correspondingly, after correspondence is revised the colouring information of variation diagram layer correspondence, the combination of colouring information that can modification figure layer correspondence in the figure image information obtaining has also increased, finally draw and the new figure image that provides to client also abundanter, meet better user's individual sexual demand.Meanwhile, owing to only need to revising the colouring information of variation diagram layer correspondence in the same position that changes the outfit, and other figure layer that this is changed the outfit in position does not process, like this request of customer in response end has fast reduced time delay.
It should be noted that the present embodiment only relates to the one or more colouring informations that can modification figure layer correspondence that change the same position that changes the outfit in same figure image.Be understandable that, utilize the method in the present embodiment, also can change in same figural other position that changes the outfit simultaneously can modification figure layer correspondence colouring information.
Please refer to Fig. 2, is the corresponding colouring information of revising variation diagram layer correspondence in described figure image information described in the embodiment shown in invention Fig. 1, and draws the process flow diagram of the embodiment of new figural method, and described method comprises:
Step S21, the color value of the article replacement figure layer comprising according to the described replacement information of changing the outfit and/or the color value of skin replacement figure layer, search the variation article figure layer in described figure image information and/or change skin figure layer;
When the described position that changes the outfit can modification figure layer comprise article figure layer and skin figure layer time, the described replacement information of changing the outfit comprises the color value of article replacement figure layer and/or the color value of skin replacement figure layer.The color value of this article replacement figure layer and/or the color value of skin replacement figure layer are indicated the color value of variation diagram layer correspondence in current figure image information.Therefore, color value and/or the skin of according to these article, replacing figure layer are replaced the color value of scheming layer, can find out the variation article figure layer in current figure image information and/or change skin figure layer (the article figure layer and/or the skin figure layer that need modification in figure image information).
Step S23, builds new article figure layer and/or new skin figure layer; Wherein, described new article figure layer and/or new skin figure layer are replaced described variation article figure layer and/or are changed skin figure layer for corresponding;
Step S24, replaces the color value of figure layer and/or the color value that skin is replaced figure layer according to described article, sets the color value of described new article figure layer and/or the color value of new skin figure layer;
In specific implementation, be that the color value correspondence of the color value of the new article figure layer constructing and/or new skin figure layer is set as to the color value of described article replacement figure layer and/or the color value of skin replacement figure layer, specifically comprise:
The color value of the color value of described article replacement figure layer and/or skin replacement figure layer is converted to respectively to corresponding color matrix;
The corresponding assignment of the described color matrix converting to is given to the color matrix attribute of described new article figure layer and/or new skin figure layer.
Step S25, sequentially superpose described new article figure layer and/or new skin figure layer and described in the change the outfit original graph layer at position, obtain new figure image.
In this step, specifically according to the original graph layer at the position that first changes the outfit, the overlay order of skin figure layer, last article figure layer secondly, superpose described new article figure layer and/or skin figure layer and described in the change the outfit original graph layer at position.
Further, before described structure new article figure layer and/or new skin figure layer, also comprise:
Step S22, destroys the variation article figure layer in described figure image information and/or changes skin figure layer.So, need not store the variation article figure layer in this figure image information and/or change skin figure layer, having saved storage space.
In the present embodiment, the color value of the article replacement figure layer comprising according to the replacement information of changing the outfit and/or the color value of skin replacement figure layer, by step S21-step S25, reached figural object in reconstruct web game.Because different colouring informations that can modification figure layer correspondence in the same position that changes the outfit are modified respectively, therefore when revising, only need to revise the colouring information of variation diagram layer correspondence in this position that changes the outfit, and other figure layer that this is changed the outfit in position does not process, so, the consumption of resource can be reduced, meanwhile, the figure image making new advances can also be built rapidly.
Above-mentioned Fig. 1-Fig. 2 introduces figural method in a kind of change web game provided by the invention, below in conjunction with Fig. 3-Fig. 4, to having adopted said method to change figural device in web game, describes in detail.
Please refer to Fig. 3, is figural device in a kind of change web game provided by the invention, comprising:
Figure layer is divided module 31, for the current figural position that changes the outfit being divided into different figure layers; Wherein, comprise can modification figure layer for described different figure layer;
Wherein, a complete figure image, comprises a plurality of positions that change the outfit.For example, described device can be divided into figure image 7 positions that change the outfit, and is respectively: weapon position, cap position, clothes position, face decorations position, hair position, glasses position, face position.Certainly, the division methods at the figural position that changes the outfit is not limited to the above-mentioned mode of enumerating.
In the present embodiment, figure layer is divided module 31 the described figural position that changes the outfit is divided into different figure layers, refers to the picture at the same position that changes the outfit is divided into different figure layers.For example, scheming layer division module 31 can be divided into the position that changes the outfit and can scheme layer with fixing by modification figure layer.Wherein, can specifically comprise article figure layer and skin figure layer by modification figure layer, fixing figure layer comprises original graph layer.Wherein, skin figure layer refers to figure layer corresponding to skin that in this position that changes the outfit, user can see.Article figure layer, refers to figure layer corresponding to other changeable colour article of removing skin in this position that changes the outfit.Wherein, original graph layer, refers to a figure layer that the complete position that changes the outfit is corresponding.Wherein, a complete position that changes the outfit comprises: the skin that user can see, remove skin other changeable colour article, remove skin other can not variable color article.
Transceiver module 32, for receiving the information that changes the outfit from the position that changes the outfit described in the change of client; Wherein, described in the information of changing the outfit comprise the described colouring information that can modification figure layer correspondence of being inputted by client, describedly can modification figure layer by described figure layer, divide module 31 and divide;
Wherein, can revise the corresponding a kind of colouring information of figure layer for one.Therefore can understand like this, the information of changing the outfit comprises one or more colouring informations that can modification figure layer correspondence.Wherein, the colouring information that the difference at the same position that changes the outfit can modification figure layer correspondence is inputted respectively by client.
For example, as described above can comprise article figure layer and skin figure layer by modification figure layer, so correspondingly, client is when the information that changes the outfit at the position that changes the outfit described in input changes, can input respectively the colouring information of article figure layer correspondence and/or the colouring information of skin figure layer correspondence, this colouring information is specially and can be color value.Like this, client can select to change same figure layer in position or a plurality of colouring information that can modification figure layer correspondence of changing the outfit.That is to say, for the same position that changes the outfit, what client can be inputted becomes many for changing the combination of the colouring information at this position that changes the outfit; Correspondingly, transceiver module 32 receives how also having become for changing the combination of the colouring information at this position that changes the outfit from client.
Comparison module 33, for by storage current figural figure image information and described transceiver module 32 receive described in the information of changing the outfit compare, obtain the information of changing the outfit;
Wherein, current figural figure image information, the colouring information and the style information that comprise the difference figure layer correspondence at a plurality of positions that change the outfit in whole figure image, specifically comprise the colouring information of fixedly figure layer correspondence at a plurality of positions that change the outfit and style information, a plurality of positions that change the outfit can modification figure layer correspondence colouring information and style information.
In specific implementation, by current figural figure image information with described in the information of changing the outfit while comparing, specifically by a plurality of positions that change the outfit in current figure image can modification figure layer correspondence colouring information with described in can the modification figure layer corresponding colouring information that comprises of the information of changing the outfit compare, to determine the described replacement information that changes the outfit, the described replacement information of changing the outfit comprises the colouring information of replacement figure layer correspondence, is used to indicate the colouring information of variation diagram layer correspondence in current figural figure image information.Wherein, the colouring information of variation diagram layer correspondence refers to the colouring information that needs the figure layer correspondence of modification in figure image information.Variation diagram layer must be can modification figure layer.Because transceiver module 31 receives how having become for changing the combination of the colouring information at this position that changes the outfit from client, the change the outfit combination of information of the replacement that comparison module 33 is determined so has also become many, the information of changing the outfit can be indicated the colouring information of a variation diagram layer correspondence, also can indicate the colouring information of a plurality of variation diagram layer correspondence.
Processing module 34, revises the colouring information of described people information variation diagram layer correspondence, and draws new figure image for correspondence; Wherein, the colouring information of described variation diagram layer correspondence is that the described replacement information that changes the outfit that described comparison module 33 relatively obtains is indicated;
The change the outfit indication of information of the described replacement that processing module 34 relatively obtains according to described comparison module 33, the corresponding colouring information of revising variation diagram layer correspondence.Because of client input can revise the corresponding a kind of colouring information of figure layer, a variation diagram layer of determining is so corresponding a kind of colouring information also, so 34 of processing modules can be revised respectively the colouring information of different variation diagram layer correspondences.
And, the change the outfit combination of information of the replacement relatively being obtained by comparison module 33 becomes many, correspondingly, the combination of colouring information that can modification figure layer correspondence in the figure image information that processing module 34 obtains after revising has also become many, and the new figure image of finally drawing out according to this figure image information is also abundanter.
Described transceiver module 32, also sends to client for described processing module 34 is processed to the new figure image obtaining.
In this device, by the same position that changes the outfit being divided into a plurality of different figure layers, and the colouring information that receives the revised figure layer correspondence of client input, thereby determine and the corresponding colouring information of revising variation diagram layer correspondence in current figure image information, obtain amended figure image information.Because client can be inputted one or more colouring informations that can modification figure layer correspondence, what therefore make to receive becomes many for changing the combination of the colouring information at this position that changes the outfit; Correspondingly, after correspondence is revised the colouring information of variation diagram layer correspondence, the combination of colouring information that can modification figure layer correspondence in the figure image information obtaining has also increased, finally draw and the new figure image that provides to client also abundanter, meet better user's individual sexual demand.Meanwhile, owing to only need to revising the colouring information of variation diagram layer correspondence in this position that changes the outfit, other figure layer changing the outfit in position for this does not process, like this request of customer in response end has fast reduced time delay.
It should be noted is that the device in the embodiment of the present invention can be the server in web game.
Need explanation on the other hand, the present embodiment, only relates to the one or more colouring informations that can modification figure layer correspondence that change the same position that changes the outfit in same figure image.Be understandable that, utilize the device in the present embodiment, also can change in same figural other position that changes the outfit simultaneously can modification figure layer correspondence colouring information.
Please refer to Fig. 4, is the structural representation of the embodiment of processing module 34 in Fig. 4 embodiment of the present invention, comprising:
Search unit 41, for the color value of article replacement figure layer and/or the color value of skin replacement figure layer comprising according to the described replacement information of changing the outfit, search the variation article figure layer in described figure image information and/or change skin figure layer;
When the described position that changes the outfit can modification figure layer comprise article figure layer and skin figure layer time, the described replacement information of changing the outfit comprises the color value of article replacement figure layer and/or the color value of skin replacement figure layer.The color value of this article replacement figure layer and/or the color value of skin replacement figure layer are indicated the color value of variation diagram layer correspondence in current figure image information.Therefore, search unit 41 according to the color value of the color value of this article replacement figure layer and/or skin replacement figure layer, can find out the variation article figure layer in current figure image information and/or change skin figure layer (the article figure layer and/or the skin figure layer that need modification in figure image information).
Construction unit 42, for building new article figure layer and/or new skin figure layer, described new article figure layer and/or new skin figure layer are for the variation article figure layer searching unit 41 described in corresponding replacement and find out and/or change skin figure layer;
Setup unit 43, for replace the color value of figure layer and/or the color value that skin is replaced figure layer according to described article, sets the color value of new article figure layer and/or the color value of new skin figure layer that described construction unit 42 builds;
In specific implementation, setup unit 43 is that the color value of new article figure layer and/or the color value correspondence of new skin figure layer that construction unit 42 is constructed are set as the color value of described article replacement figure layer and/or the color value of skin replacement figure layer, specifically comprises:
The color value of the color value of described article replacement figure layer and/or skin replacement figure layer is converted to respectively to corresponding color matrix;
The corresponding assignment of the described color matrix converting to is given to the color matrix attribute of described new article figure layer and/or new skin figure layer.
Superpositing unit 44, new article figure layer and/or the new skin figure layer for the original graph layer at position that changes the outfit described in sequentially stack, described setup unit 3, set, obtain new figure image.
Wherein, superpositing unit 44 is specifically according to the original graph layer at the position that first changes the outfit, the overlay order of skin figure layer, last article figure layer secondly, superpose described new article figure layer and/or skin figure layer and described in the change the outfit original graph layer at position.
Further, before described construction unit 42 builds new article figure layer and/or new skin figure layer, also comprise:
Destroy unit 45, for searching the variation article figure layer of the described figure image information that unit 41 finds out described in destroying and/or changing skin figure layer.Described construction unit 42, after described destruction unit 45 is destroyed described variation article figure layers and/or changed skin figure layer, then builds new article figure layer and/or new skin figure layer.So, need not store the variation article figure layer in this figure image information and/or change skin figure layer, having saved storage space.
In this enforcement, the color value of the article replacement figure layer comprising according to the replacement information of changing the outfit and/or the color value of skin replacement figure layer, by the processing of processing module, reached the figural object in reconstruct web game.Because different colouring informations that can modification figure layer correspondence in the same position that changes the outfit are modified respectively, therefore, when revising, only need to revise the colouring information of variation diagram layer correspondence in this position that changes the outfit, and other figure layer that this is changed the outfit in position does not process.So design, can reduce the consumption of resource, can also build rapidly the figure image making new advances simultaneously.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and the equivalent variations of doing according to the claims in the present invention, still belong to the scope that invention is contained.

Claims (4)

1. change a figural method in web game, it is characterized in that, comprising:
The current figural position that changes the outfit is divided into different figure layers; Wherein, comprise can modification figure layer for described different figure layer;
Reception is from the information that changes the outfit at the position that changes the outfit described in the change of client; The described information of changing the outfit comprises the described colouring information that can modification figure layer correspondence of being inputted by client, described can comprising by modification figure layer: article figure layer and skin figure layer, described by client, inputted can modification figure layer correspondence colouring information comprise: the color value of the color value of article figure layer and/or skin figure layer;
By storage current figural figure image information with described in the information of changing the outfit compare, obtain the information of changing the outfit;
The corresponding colouring information of revising variation diagram layer correspondence in described figure image information, and draw new figure image, and provide described new figure image to this client; Wherein, the colouring information of described variation diagram layer correspondence is that the described replacement information that changes the outfit is indicated;
Wherein, the described corresponding colouring information of revising variation diagram layer correspondence in described figure image information, and draw new figure image, comprising:
The color value of the article replacement figure layer comprising according to the described replacement information of changing the outfit and/or the color value of skin replacement figure layer, search the variation article figure layer in described figure image information and/or change skin figure layer;
Build new article figure layer and/or new skin figure layer; Wherein, described new article figure layer and/or new skin figure layer are replaced described variation article figure layer and/or are changed skin figure layer for corresponding;
According to described article, replace the color value of figure layer and/or the color value that skin is replaced figure layer, set the color value of described new article figure layer and/or the color value of new skin figure layer;
Sequentially superpose described new article figure layer and/or new skin figure layer and described in the change the outfit original graph layer at position, obtain new figure image;
Wherein, described color value and/or skin according to described article replacement figure layer is replaced the color value of figure layer, sets the color value of described new article figure layer and/or the color value of new skin figure layer, comprising:
The color value of the color value of described article replacement figure layer and/or skin replacement figure layer is converted to corresponding color matrix;
The corresponding assignment of the described color matrix converting to is given to the color matrix attribute of described new article figure layer and/or new skin figure layer.
2. the method for claim 1, is characterized in that, before described structure new article figure layer and/or new skin figure layer, also comprises:
Destroy the variation article figure layer in described figure image information and/or change skin figure layer.
3. the method for claim 1, is characterized in that, described sequentially superpose described new article figure layer and/or new skin figure layer and described in the change the outfit original graph layer at position, comprising:
According to the original graph layer at the position that first changes the outfit, the overlay order of skin figure layer, last article figure layer secondly, superpose described new article figure layer and/or skin figure layer and described in the change the outfit original graph layer at position.
4. change a figural device in web game, it is characterized in that, comprising:
Figure layer is divided module, for the current figural position that changes the outfit being divided into different figure layers; Wherein, comprise can modification figure layer for described different figure layer;
Transceiver module, for receiving the information that changes the outfit from the position that changes the outfit described in the change of client; Wherein, the described information of changing the outfit comprises the described colouring information that can modification figure layer correspondence of being inputted by client, describedly can modification figure layer by described figure layer, divide Module Division, described can comprising by modification figure layer: article figure layer and skin figure layer, described by client, inputted respectively can modification figure layer correspondence colouring information comprise: the color value of the color value of article figure layer and/or skin figure layer;
Comparison module, for by storage current figural figure image information and described transceiver module receive described in the information of changing the outfit compare, obtain the information of changing the outfit;
Processing module, revises the colouring information of described figure image information variation diagram layer correspondence, and draws new figure image for correspondence; Wherein, the colouring information of described variation diagram layer correspondence is that the described replacement information that changes the outfit that described comparison module relatively obtains is indicated;
Described transceiver module, also offers client for described processing module is processed to the new figure image obtaining;
Wherein, described processing module comprises:
Search unit, for the color value of article replacement figure layer and/or the color value of skin replacement figure layer comprising according to the described replacement information of changing the outfit, search the variation article figure layer in described figure image information and/or change skin figure layer;
Construction unit, for building new article figure layer and/or new skin figure layer; Wherein, described new article figure layer and/or new skin figure layer find out for searching unit described in corresponding replacement variation article figure layer and/or variation skin figure layer;
Setup unit, for replace the color value of figure layer and/or the color value that skin is replaced figure layer according to described article, sets the color value of new article figure layer and/or the color value of new skin figure layer that described construction unit builds;
Superpositing unit, new article figure layer and/or the new skin figure layer for the original graph layer at position that changes the outfit described in sequentially stack, described setup unit, set, obtain new figure image;
Wherein, described setup unit specifically for:
The color value of the color value of described article replacement figure layer and/or skin replacement figure layer is converted to respectively to corresponding color matrix;
The corresponding assignment of the described color matrix converting to is given to the color matrix attribute of described new article figure layer and/or new skin figure layer.
CN201110332939.4A 2011-10-28 2011-10-28 Method and device for changing characters in web game Active CN102385759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110332939.4A CN102385759B (en) 2011-10-28 2011-10-28 Method and device for changing characters in web game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110332939.4A CN102385759B (en) 2011-10-28 2011-10-28 Method and device for changing characters in web game

Publications (2)

Publication Number Publication Date
CN102385759A CN102385759A (en) 2012-03-21
CN102385759B true CN102385759B (en) 2014-10-29

Family

ID=45825147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110332939.4A Active CN102385759B (en) 2011-10-28 2011-10-28 Method and device for changing characters in web game

Country Status (1)

Country Link
CN (1) CN102385759B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729196A (en) * 2014-01-22 2014-04-16 南京恒知讯科技有限公司 Graphic layer based electronic drawing board system drawn by multiple persons, processing method and processing equipment
CN104978723B (en) * 2014-04-14 2018-04-03 阿里巴巴集团控股有限公司 A kind of image processing method and device
CN105261055B (en) * 2015-09-07 2018-06-26 网易(杭州)网络有限公司 A kind of game role costume changing method, device and terminal
CN107019914B (en) * 2016-02-02 2018-10-23 腾讯科技(深圳)有限公司 A kind of method and device that simulated object resemblance is replaced
CN106970800B (en) * 2017-04-01 2019-05-07 腾讯科技(深圳)有限公司 Costume changing method and device
JP6911230B2 (en) * 2017-09-01 2021-07-28 本多電子株式会社 Nautical chart image display device
CN108549581B (en) * 2018-04-02 2019-10-29 郑州云海信息技术有限公司 A kind of layer-stepping real-time drawing rendering method and system
CN111598639A (en) * 2019-02-21 2020-08-28 北京京东尚科信息技术有限公司 Method and apparatus for generating image
CN111068327B (en) * 2019-12-26 2024-02-09 珠海金山数字网络科技有限公司 Method and device for adjusting back decoration of game character

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584907A (en) * 2003-08-20 2005-02-23 英业达股份有限公司 Artificial game system and method for combining geographic information
CN1866264A (en) * 2005-05-21 2006-11-22 华为技术有限公司 Scene generating method and system for mobile game
CN101393652A (en) * 2007-09-20 2009-03-25 广州左右软件技术有限公司 Costume changing method for characters in network community
CN101447090A (en) * 2007-11-27 2009-06-03 悟空数位娱乐实业有限公司 Picture editing method of animation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584907A (en) * 2003-08-20 2005-02-23 英业达股份有限公司 Artificial game system and method for combining geographic information
CN1866264A (en) * 2005-05-21 2006-11-22 华为技术有限公司 Scene generating method and system for mobile game
CN101393652A (en) * 2007-09-20 2009-03-25 广州左右软件技术有限公司 Costume changing method for characters in network community
CN101447090A (en) * 2007-11-27 2009-06-03 悟空数位娱乐实业有限公司 Picture editing method of animation

Also Published As

Publication number Publication date
CN102385759A (en) 2012-03-21

Similar Documents

Publication Publication Date Title
CN102385759B (en) Method and device for changing characters in web game
KR101523861B1 (en) Load balancing between general purpose processors and graphics processors
CN103098099A (en) Rendering control apparatus, control method thereof, recording medium, rendering server, and rendering system
CN109725948B (en) Animation resource configuration method and device
CN103150699A (en) Graphics command generation device and graphics command generation method
Peng et al. A GPU‐based approach for massive model rendering with frame‐to‐frame coherence
CN111143039B (en) Scheduling method and device of virtual machine and computer storage medium
CN110223216B (en) Data processing method and device based on parallel PLB and computer storage medium
Ooi Creative industries and tourism in Singapore
CN108200070A (en) A kind of method and device for generating list
WO2020064026A1 (en) Game advertisement production method and platform, storage medium
CN109086126B (en) Task scheduling processing method and device, server, client and electronic equipment
CN111556325A (en) Audio and video combined rendering method, medium and computer equipment
CN110488973A (en) A kind of virtual interactive message leaving system and method
CN108898181A (en) A kind of processing method, device and the storage medium of image classification model
WO2023035793A1 (en) Level information display method and apparatus, and computer device and storage medium
CN102934064B (en) Theme display method and device thereof
CN104793937B (en) A kind of startup control method and device
CN114661284A (en) Game editing method, game running method, game editing device and computer equipment
CN112351289A (en) Live broadcast interaction method and device, computer equipment and storage medium
CN114118403A (en) Neural network architecture searching method, device, storage medium and electronic equipment
Cabrera Modular design frameworks: A projects-based guide for UI/UX designers
CN110047120A (en) A kind of animated show method and device
CN103812935A (en) Resource allocation method as well as device and system thereof
CN111375208B (en) Two-dimensional Euler diagram generation method and device for one-stroke game

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN 7ROAD NETWORK TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SHENZHEN 7ROAD TECHNOLOGY CO., LTD.

Effective date: 20120816

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518000 SHENZHEN, GUANGDONG PROVINCE TO: 518057 SHENZHEN, GUANGDONG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20120816

Address after: Nanshan District Shenzhen City, Guangdong province 518057 Shennan Road No. 9996 building, 7 storey main building height of song

Applicant after: Shenzhen Diqidadao Network Technology Co., Ltd.

Address before: Nanshan District Shenzhen City, Guangdong province 518000 Shennan Road No. 9996, building 7-9, golden song

Applicant before: Shenzhen 7road Technology Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: Nanshan District Keyuan Road Shenzhen city Guangdong province 518057 No. 15 Kexing Science Park Building 2 unit A 17

Patentee after: Shenzhen Diqidadao Network Technology Co., Ltd.

Address before: Nanshan District Shenzhen City, Guangdong province 518057 Shennan Road No. 9996 building, 7 storey main building height of song

Patentee before: Shenzhen Diqidadao Network Technology Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170504

Address after: Nanshan District Keyuan Road Shenzhen city Guangdong province 518057 No. 15 Kexing Science Park Building 2 unit A 17

Patentee after: Shenzhen 7road Technology Co.,Ltd.

Address before: Nanshan District Keyuan Road Shenzhen city Guangdong province 518057 No. 15 Kexing Science Park Building 2 unit A 17

Patentee before: Shenzhen Diqidadao Network Technology Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180425

Address after: 518052 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Shenzhen Qianhai illusion Network Technology Co., Ltd.

Address before: 518057, 17 unit, 2 unit, A building, Kexing Science Park, 15 Keyuan Road, Nanshan District, Shenzhen, Guangdong.

Patentee before: Shenzhen 7road Technology Co.,Ltd.