CN109189507B - Virtual pet breeding method, device, equipment and storage medium - Google Patents

Virtual pet breeding method, device, equipment and storage medium Download PDF

Info

Publication number
CN109189507B
CN109189507B CN201810971252.7A CN201810971252A CN109189507B CN 109189507 B CN109189507 B CN 109189507B CN 201810971252 A CN201810971252 A CN 201810971252A CN 109189507 B CN109189507 B CN 109189507B
Authority
CN
China
Prior art keywords
virtual pet
image
role
breeding
pet
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
CN201810971252.7A
Other languages
Chinese (zh)
Other versions
CN109189507A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810971252.7A priority Critical patent/CN109189507B/en
Priority to CN201910690714.2A priority patent/CN110399183B/en
Publication of CN109189507A publication Critical patent/CN109189507A/en
Application granted granted Critical
Publication of CN109189507B publication Critical patent/CN109189507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses a breeding method, a breeding device, breeding equipment and a storage medium of a virtual pet, and belongs to the field of image processing. The method comprises the following steps: displaying a pet breeding interface; adding a father virtual pet and a mother virtual pet in a pet breeding interface, wherein the father virtual pet has a first role image, and the mother virtual pet has a second role image; and displaying a breeding result interface when the breeding is successful, wherein the breeding result interface displays a child virtual pet, the child virtual pet has a third role image, and the third role image is generated according to the first role image and the second role image according to the genetic rule. According to the embodiment of the application, the two virtual pets owned by the current user account can be used for acquiring the new virtual pet in a breeding mode, the transmission of the external role image is taken as a main target, and the method is suitable for and compatible with the effect of various virtual pet breeding scenes.

Description

Virtual pet breeding method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the field of computer graphics, in particular to a breeding method, a breeding device, breeding equipment and a storage medium for virtual pets.
Background
Some applications provide virtual pets that may be various animal or cartoon images.
The player may obtain the virtual pet by breeding. In the related art, the father virtual pet and the mother virtual pet have respective numerical attribute parameters, and the numerical attribute parameters include at least one of a life value, a fighting capacity, a life value, a pet grade, and a pleasure value. When the father virtual pet and the mother virtual pet are paired and bred, the numerical attribute parameters of the child virtual pet are obtained by slightly adjusting the numerical attribute parameters of the father and the mother, so that the child virtual pet is generated.
The breeding mode based on the adjustment value attribute parameters can only be applied to game application programs with combat systems but not to other types of game application programs, and the application range is limited.
Disclosure of Invention
The embodiment of the application provides a breeding method, a breeding device and a breeding storage medium for virtual pets, and can solve the problem that the application range of a breeding mode based on adjustment of numerical attribute parameters in the related art is limited. The technical scheme is as follows:
according to one aspect of the application, a breeding method of a virtual pet is provided, and the method comprises the following steps:
displaying a pet breeding interface, wherein the pet breeding interface comprises a father role column and a mother role column;
adding a father virtual pet in the father role column according to a first operation, and adding a mother virtual pet in the mother role column according to a second operation; the father virtual pet has a first character image and the mother virtual pet has a second character image;
and displaying a breeding result interface when the breeding is successful, wherein the breeding result interface displays a child virtual pet, the child virtual pet has a third role image, and the third role image is generated according to the first role image and the second role image according to the genetic rule.
According to another aspect of the present application, there is provided a breeding method for a virtual pet, the method comprising:
receiving a breeding request sent by a terminal, wherein the breeding request carries information of a father virtual pet and information of a mother virtual pet, the father virtual pet has a first role image, and the mother virtual pet has a second role image;
generating a third role image of the child virtual pet according to the genetic rule according to the first role image of the father virtual pet and the second role image of the mother virtual pet;
and sending the information of the child virtual pet to the terminal, wherein the terminal is used for displaying a breeding result interface according to the information of the child virtual pet, and the breeding result interface displays a third role image of the child virtual pet.
According to another aspect of the present application, there is provided a breeding device for a virtual pet, the device including:
the pet breeding interface comprises a father role column and a mother role column;
the interaction module is used for adding a father virtual pet in the father role column according to a first operation and adding a mother virtual pet in the mother role column according to a second operation; the father virtual pet has a first character image and the mother virtual pet has a second character image;
the display module is further used for displaying a breeding result interface when breeding is successful, wherein the breeding result interface displays a child virtual pet, the child virtual pet has a third role image, and the third role image is generated according to the first role image and the second role image and a genetic rule;
the father virtual pet and the mother virtual pet are two virtual pets simultaneously owned by the current user account.
According to another aspect of the present application, there is provided a breeding device for a virtual pet, the device including:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a breeding request sent by a terminal, the breeding request carries information of a father virtual pet and information of a mother virtual pet, the father virtual pet has a first role image, and the mother virtual pet has a second role image;
the generating module is used for generating a third role image of the child virtual pet according to the genetic rule according to the first role image of the father virtual pet and the second role image of the mother virtual pet;
the terminal is used for displaying a breeding result interface according to the information of the child virtual pet, and the breeding result interface displays a third role image of the child virtual pet;
the father virtual pet and the mother virtual pet are two virtual pets simultaneously owned by the current user account.
According to another aspect of the present application, there is provided an electronic device comprising a memory and a processor; the memory stores at least one program which is loaded and executed by the processor to implement the breeding method of the virtual pet.
According to another aspect of the present application, there is provided a computer readable storage medium having at least one program stored therein, the at least one program being loaded and executed by a processor to implement the breeding method of virtual pets as described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the two virtual pets of the current user account are selected as the father-mother virtual pet in the pet breeding interface, and the third role image of the child virtual pet is generated according to the first role image of the father virtual pet and the second role image of the mother virtual pet according to the genetic rule, so that the problem that the breeding mode based on the adjustment of numerical attribute parameters in the related technology can only be suitable for an application program with a battle system, the use range is limited, the effect that the two virtual pets owned by the current user account obtain a new virtual pet through the breeding mode, the transmission of the external role image is used as a main target, and the breeding scene of various types of virtual pets is suitable and compatible is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block diagram of a computer system provided in an exemplary embodiment of the present application;
FIG. 2 is a block diagram of a computer system provided in another exemplary embodiment of the present application;
FIG. 3 is a flow chart of a method for breeding virtual pets according to an exemplary embodiment of the present application;
FIG. 4 is a schematic illustration of an interface of a breeding method for virtual pets, according to another exemplary embodiment of the present application, in a specific implementation;
FIG. 5 is a schematic illustration of an interface of a breeding method for virtual pets, according to another exemplary embodiment of the present application, in a specific implementation;
FIG. 6 is a schematic illustration of an interface of a breeding method for virtual pets, according to another exemplary embodiment of the present application, in a specific implementation;
FIG. 7 is a schematic illustration of an interface of a breeding method for virtual pets, according to another exemplary embodiment of the present application, in a specific implementation;
FIG. 8 is a flow chart of a method for breeding virtual pets according to an exemplary embodiment of the present application;
FIG. 9 is a flowchart of a breeding method for virtual pets according to an exemplary embodiment of the present application;
FIG. 10 is a flow chart of a method for breeding virtual pets according to an exemplary embodiment of the present application;
FIG. 11 is a block diagram of a breeding device for a virtual pet according to another exemplary embodiment of the present application;
FIG. 12 is a block diagram of a breeding device for a virtual pet according to another exemplary embodiment of the present application;
fig. 13 is a block diagram of a terminal according to another exemplary embodiment of the present application;
fig. 14 is a block diagram of a server according to another exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
Virtual pets: a digital pet that is presented in a cartoon and/or animal form of a pet image. The virtual pet is a two-dimensional digital pet or a three-dimensional digital pet, for example, the virtual pet is a three-dimensional virtual pet represented by a pet image in the form of a cartoon cat. Optionally, the pet image in which a portion of the virtual pet is present is randomly generated, such as the pet image of the 0 th generation virtual pet; the pet image of the virtual pet exists in a part which is generated according to genetic rules according to the pet images of the parent virtual pet and/or the virtual pets of other ancestors, for example, the pet images of the offspring virtual pets except the 0 generation virtual pet are generated according to the genetic rules. Optionally, each fictitious pet has a unique gene sequence comprising generation parameters for determining the pet image of the fictitious pet, also referred to as image parameters.
In some embodiments, the pet information for each virtual pet is stored on the blockchain system, stored and authenticated via a consensus mechanism of multiple nodes on the blockchain system. The pet information at least includes: the unique gene sequence of the virtual pet may optionally include: at least one of identification of the virtual pet, parent information of the virtual pet, intergenerational information of the virtual pet, genealogical information of the virtual pet, historical trading stream information of the virtual pet, historical lifetime event information of the virtual pet, and other information of the virtual pet. The virtual pets have a collectible attribute because the gene sequence of each virtual pet is unique and the information stored on the blockchain system is real and unique. Meanwhile, since the pet information of the virtual pet is stored in the blockchain system, even if the virtual pet is a digital pet designed to be used in the first client, the virtual pet can be conveniently migrated to the second client for use. The first client and the second client are different clients.
In some embodiments, the virtual pet is a digital pet exposed by a client (or application) running in the terminal. The client comprises at least one of the following functions: grabbing a virtual pet, generating a virtual pet, breeding a virtual pet, trading a virtual pet, using a virtual pet for combat, using a virtual pet for Augmented Reality (AR) interaction, using a virtual pet for social interaction, and using a virtual pet for AR education. In other embodiments, the client is a client that performs acquisition, breeding, and/or trading of virtual pets based on a blockchain system. In other embodiments, the client is a geographic location-based social gaming program that provides at least one of collecting, growing, and/or fighting with virtual pets.
In some embodiments, the client has the capability to fight using a virtual pet. In this case, the gene sequence determines the characteristics of the virtual pet. The above features may include: extrinsic features and/or intrinsic features.
The appearance characteristic is a characteristic representing the pet image of the virtual pet. Alternatively, the virtual pet may include different body parts such as skin, patches, ears, beard, floral designs, eyes, and mouth, each of which may have a variety of different appearance characteristics. The appearance may include visible features such as color, shape, texture, etc. For example, the skin appearance may include different colors such as white skin, red skin, orange skin, yellow skin, green skin, cyan skin, blue skin, and purple skin. For another example, the external features of the ear may include different shapes such as a long ear, a short ear, a curled ear, a folded ear, and a normal ear.
Intrinsic characteristics refer to characteristics that embody intrinsic attributes of a virtual pet. For example, the intrinsic attributes may include a variety of different attributes such as intelligence values, attack force values, defense force values, spirit values, magic values, force values, endurance values, agility values, latent values, speed values, life values, and the like.
Gene sequence of virtual pet: includes a set of parameter values, also referred to as character parameters, for generating a pet character for the virtual pet. Taking the virtual pet as an example of a 3D virtual pet, the pet image of each virtual pet comprises a plurality of types of 3D image materials, each type of 3D image material corresponds to different role parts and/or texture levels, each 3D image material corresponds to a material identifier, and each type of 3D material identifier can be regarded as a parameter value in the gene sequence. Illustratively, if the 3D body model of a 3D virtual pet is the same, the pet image of the 3D virtual pet comprises at least 8 3D image materials (also called local features): 3D body model, ear model, skin material, eye material, nose material, mouth material, beard material, body stripe material, chest and abdomen pattern material. Optionally, the pet image of the 3D virtual pet may further optionally include: tail material, outside pendant material and global characteristics. Tail material is a characteristic of the tail model used to determine the virtual pet, such as a long, thin tail or a short, thick tail when the pet image is an animal type; the external hanging material is used for determining the characteristics of accessories of the virtual pet, and the accessories comprise but are not limited to at least one of a backpack, glasses, handheld props, a belt, clothes, a hat, shoes and a head ornament; the global feature is an integrated character feature of the body model for covering the virtual pet and has the highest priority for display. When the target image parameters include the global features, the global features can cover the local features to be displayed completely, that is, the local features can be hidden and not displayed. For example, when a certain pet cat has a superhuman global feature, the pet cat does not display the own cat image, but displays a pet image with a superhuman appearance or a pet image with a robot appearance.
Correspondingly, the gene sequences include: at least one of global characteristic parameter, skin texture characteristic parameter, skin color characteristic parameter, belly texture characteristic parameter, belly color characteristic parameter, eye texture characteristic parameter, eye color characteristic parameter, mouth texture characteristic parameter, mouth color characteristic parameter, beard texture characteristic parameter, beard color characteristic parameter, ear characteristic parameter, tail characteristic parameter, and pendant characteristic parameter. A gene sequence may be represented by a plurality of key-value pairs arranged in sequence, which may take the form of (gene name, parameter value). In an illustrative example, the Gene sequence is represented as Gene ═ 3D body model feature, default), (skin feature, smooth), (belly feature, floral 1), (mouth texture feature, small tiger 1), (mouth color feature, red), (tail feature, thick short shape) ].
Genetic rules of genes: the pet image of the parent virtual pet and/or other ancestor virtual pets is transmitted by imitating the genetic rule of a real organism, so as to generate the pet image of the child virtual pet. In some embodiments, to ensure that each virtual pet is a unique personalized virtual pet, each virtual pet has a unique gene sequence. In some embodiments, the genetic rule is a rule for generating a pet image with unique characteristics for a child virtual pet after recombining and de-duplicating the pet image of a parent virtual pet and/or other grandparent virtual pets according to genetic rules. The duplication removal means a mechanism that when a gene sequence identical to that of the existing virtual pet appears in the genetic process, the gene sequence of the virtual pet is regenerated, so that the gene uniqueness of the virtual pet is ensured. Alternatively, since the genetic rule is a genetic rule that mimics an actual organism, there are also limitations in the breeding process such as the length of pregnancy, inability of close relatives to breed, and the like.
In the present example, a genetic gene exists between two virtual pets having a genetic relationship. The genetic gene refers to a gene which is inherited by one of two virtual pets having a genetic relationship to the other. The characteristic determined by the genetic gene may be referred to as a genetic characteristic. The same genetic characteristics exist between two virtual pets with genetic relationship, namely the same image material characteristics exist. For example, two virtual pets with genetic relationships, both have yellow skin. As another example, two virtual pets with genetic relationships, both with red skin and with tucked ears. The number of the genetic characteristics may be one or more, and the present embodiment is not limited thereto. In general, the closer the generations between two virtual pets having a genetic relationship, the more genetic features; conversely, the more distant the ancestors between two virtual pets having a genetic relationship, the fewer the genetic trait.
The information of the virtual pet is as follows: the information of the generation number of the virtual pet in the whole virtual pet world is determined by the generation of the father virtual pet and the mother virtual pet of the virtual pet. In some embodiments, the offspring of the child virtual pet is obtained by adding one to the maximum offspring numbers of the father virtual pet and the mother virtual pet, for example, if the father virtual pet is a 0 th generation virtual pet, the mother virtual pet is a 4 th generation virtual pet, and the child virtual pet is a 5 th generation virtual pet. In some embodiments, the ancestor of the primary virtual pet is the lowest, e.g., 0. The era of the non-primary virtual pet is determined by the era of the virtual pet of the father mother. The era of the child virtual pet bred and generated by the father virtual pet is higher than that of the father virtual pet. In one example, if only the parent virtual pet of the same ancestor is allowed to breed to generate the child virtual pet (i.e., the next generation virtual pet), the ancestor of the child virtual pet is equal to the ancestor of the parent virtual pet plus 1. For example, if the ancestors of the parent virtual pets are all 1, the ancestors of the child virtual pets are 2; for another example, if the ancestors of the parent virtual pets are all 0, the ancestors of the child virtual pets are 1. In another example, if both the parent virtual pet of the same ancestor is allowed to breed to generate the child virtual pet (i.e., the next generation virtual pet) and the parent virtual pet of a different ancestor is allowed to breed to generate the child virtual pet, the ancestor of the child virtual pet is equal to the ancestor of the higher ancestor of the parent virtual pet plus 1. For example, if the era of the father virtual pet is 0, the era of the mother virtual pet is 2, and the era of the child virtual pet is 3. In addition, the primary virtual pet is not bred by the father virtual pet and the mother virtual pet, but automatically produced by the virtual pet system. Therefore, the primary virtual pet does not have a parent virtual pet and a mother virtual pet, and even has no other virtual pet which is higher in generation and has a genetic relationship with the primary virtual pet.
FIG. 1 shows a block diagram of a computer system 100 provided in an exemplary embodiment of the present application. The computer system 100 includes: a first terminal 120, a server cluster 140, and a second terminal 160.
The first terminal 120 is connected to the server cluster 120 through a wireless network or a wired network. The first terminal 120 may be at least one of a smartphone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3 player, an MP4 player, and a laptop portable computer. The first device 120 is installed and operated with an application program supporting a virtual pet. The application program may be any one of a pet growing game program, an AR game program, and an AR education program. The first terminal 120 is a terminal used by a first user, and an application program in the first terminal 120 is registered with a first user account.
The first terminal 120 is connected to the server 140 through a wireless network or a wired network.
The server cluster 140 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. The server cluster 140 is used to provide background services for virtual pet enabled applications. Optionally, the server cluster 140 undertakes primary computational work and the first terminal 120 and the second terminal 160 undertakes secondary computational work; alternatively, the server cluster 140 undertakes the secondary computing work and the first terminal 120 and the second terminal 160 undertakes the primary computing work; or, the server cluster 140, the first terminal 120, and the second terminal 160 perform cooperative computing by using a distributed computing architecture.
Optionally, the server cluster 140 includes: an access server 141 and a backend server 142. The access server 141 is used for providing access services and information transceiving services of the first terminal 120 and the second terminal 160, and forwarding useful information between the terminals and the background server 142. The background server 142 is used for providing background services of the application program, such as: at least one of game logic service, material providing service, virtual pet generating service, virtual pet transaction service and virtual pet breeding service. The background server 142 may be one or more. When the background servers 142 are multiple, at least two background servers 142 exist for providing different services, and/or at least two background servers 142 exist for providing the same service, which is not limited in the embodiment of the present application.
The second terminal 160 is installed and operated with an application program supporting a virtual pet. The application program may be any one of a pet growing game program, an AR game program, and an AR education program. The second terminal 160 is a terminal used by the second user. The second terminal 120 has a second user account registered in the application.
Optionally, the first user account and the second user account are in the same virtual social network. Optionally, the first user account and the second user account may belong to the same team, the same organization, have a friend relationship, or have a temporary communication right. Alternatively, the first user account and the second user account may belong to different teams, different organizations, or two groups with enemy.
Alternatively, the applications installed on the first terminal 120 and the second terminal 160 are the same, or the applications installed on the two terminals are the same type of application of different control system platforms. The first terminal 120 may generally refer to one of a plurality of terminals, and the second terminal 160 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by the first terminal 120 and the second terminal 160. The terminal types of the first terminal 120 and the second terminal 160 are the same or different, and include: at least one of a smartphone, a gaming console, a desktop computer, a tablet, an e-book reader, an MP3 player, an MP4 player, and a laptop portable computer. The following embodiments are illustrated with the first terminal 120 and/or the second terminal 140 being a smartphone.
Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds of the terminals, or more. The number of terminals and the type of the device are not limited in the embodiments of the present application.
In some alternative embodiments, the server cluster 120 is configured to store pet information and transaction records for each virtual pet. The pet information includes: the pet identification (hereinafter referred to as identification) is used for uniquely identifying the virtual pet, the image parameters are used for representing the role image of the virtual pet, and at least one of a two-dimensional preview picture for representing the virtual pet, the historical transaction record of the virtual pet, parent information of the virtual pet, the surrogate information (also referred to as generation information) of the virtual pet in all the virtual pets, and genealogy information of the virtual pet is represented. In an alternative embodiment as shown in fig. 2, the server cluster 120 is further coupled to a blockchain system 180, and the server cluster 120 stores role information and/or transaction records for each virtual pet in the blockchain system 180. In some alternative embodiments, server cluster 120 itself may also operate and store data as a node in zone link system 180.
FIG. 3 is a flowchart illustrating a breeding method for virtual pets according to an exemplary embodiment of the present application. The embodiment is exemplified by applying the method to the first terminal or the second terminal shown in fig. 1. The method comprises the following steps:
step 301, displaying a pet breeding interface, wherein the pet breeding interface comprises a father role column and a mother role column;
an application program runs in the terminal. The application program is logged in with the current user account. The application program is provided with a function of using the virtual pet. The functions of using the virtual pet include: at least one of playing a game in a virtual environment using a virtual pet, performing a simulation using a virtual pet, playing an Augmented Reality (AR) game using a virtual pet, and performing AR education using a virtual pet.
The virtual pet is a digital pet owned, raised or collected by the user's account. The virtual pet is a character for display in an application program within the terminal. The virtual pet is any one of a two-dimensional virtual pet, a 2.5-dimensional virtual pet, and a three-dimensional virtual pet. Optionally, the virtual pet has a character image in the form of an animal and/or cartoon. Optionally, the character image of the primary virtual pet is randomly generated, and the character image of the non-primary virtual pet is generated based on genetic rules (also called genetic algorithm) of the parent virtual character.
Optionally, the virtual pet is a digital pet whose character image is generated by genetic rules. Or, the virtual pet is a digital pet with uniqueness generated by the character image through genetic rules and a deduplication mechanism.
The pet breeding interface is a user interface used for breeding the next generation of virtual pets according to two virtual pets simultaneously owned by the current user account. Optionally, the two virtual pets are two virtual pets of the same type and of different sexes. Optionally, the gender of the virtual pet is specified by the user, or is pre-generated by the server.
The father role column is a control column for selecting the virtual pet serving as the father role in the breeding process. The mother role column is a control column for selecting the virtual pet serving as the mother role in the breeding process.
Referring schematically to fig. 4, the terminal is shown with a pet breeding interface 40, the pet breeding interface 40 including a maternal role field 42 and a paternal role field 44. The maternal role field 42 and the paternal role field 44 default to null.
Step 302, adding a father virtual pet in the father role column according to the first operation;
illustratively, the terminal receives a first operation, and determines a father virtual pet in the breeding process according to the first operation from a plurality of virtual pets owned by the current user account. The first operation comprises a first click operation on a parent role field.
Optionally, the father virtual pet has a first persona. The first character form is an external image that the father's virtual pet shows to the user in the application. The first character representation includes: at least one of a body model, skin, patches, patterns, ears, nose, eyes, beard, tail, clothing, external hanging. The outside pendant includes: at least one of a schoolbag, glasses, jewelry, a handheld prop and a head top suspension prop.
Referring to fig. 5 schematically, the terminal displays a pet breeding interface 40, the user may click on the parent role column 42 by using a first click operation, and then the terminal switches and displays a pet selection interface 41 according to the first click operation, where each pet owned by the current user account is displayed on the pet selection interface 41. The user can click on the selected parent avatar 43 by using the first selection operation, and the terminal adds the parent avatar 43 to the parent role field 44 according to the first selection operation. In this example, the first operation includes: the method comprises the steps of a first click operation on a father role field and a first selection operation on a certain virtual pet in a pet selection interface. Alternatively, the pet selection interface 41 may also be referred to as a father selection interface.
Step 303, adding a virtual pet of the mother in the mother character column according to the second operation;
illustratively, the terminal receives the second operation, and determines the mother virtual pet in the breeding process according to the second operation in the virtual pets owned by the current user account. The second operation comprises a second click operation on the mother character field.
Optionally, the mother virtual pet has a second persona image. The second character image is an appearance that the mother's virtual pet shows to the user in the application. The second character image includes: at least one of a body model, skin, patches, patterns, ears, nose, eyes, beard, tail, clothing, external hanging. The outside pendant includes: at least one of a schoolbag, glasses, jewelry, a handheld prop and a head-top light ring.
Referring to fig. 6 schematically, the terminal displays a pet breeding interface 40, the user may click on the mother character column 42 by a second click operation, and then the terminal switches and displays a pet selection interface 41 according to the second click operation, where each pet owned by the current user account is displayed on the pet selection interface 41. The user may click on the selected virtual character of mother 45 using the second selection operation and the terminal adds the virtual character of mother 45 to the mother character field 42 according to the first selection operation. In this example, the second operation includes: a second click operation on the maternal role field 42 and a second selection operation on a virtual pet in the pet selection interface. Alternatively, the pet selection interface 41 may also be referred to as a mother selection interface.
Optionally, a "confirm breeding" button 46 is also displayed on the pet breeding interface 40. When the parent avatar and the parent avatar are selected, the user may click on the determine breeding button 46 to trigger a breeding signal. The terminal sends a request to the server after receiving the breeding confirmation signal, wherein the breeding request comprises information of the father virtual pet and information of the mother virtual pet; then, the terminal receives a breeding response of the server, wherein the breeding response comprises the information of the child virtual pet.
And 304, displaying a breeding result interface when the breeding is successful, wherein the breeding result interface displays the child virtual pet, the child virtual pet has a third role image, and the third role image is generated according to the first role image and the second role image according to the genetic rule.
And the terminal displays a breeding result interface when the breeding is successful. Optionally, the breeding results interface displays a child virtual pet 49.
Optionally, the genetic rules include a rule algorithm for generating a third persona of the child virtual pet according to genetic inheritance rules based on the first persona of the father virtual pet and the second persona of the mother virtual pet.
Optionally, the genetic rule comprises: at least one of an inheritance rule, a mutation rule, and a loss rule;
the inheritance rule means that all or part of image materials of the third character image of the child virtual pet are copied from the first character image and/or the second character image. Optionally, the inheritance rule further includes: of child virtual pets
The variation rule means that the third role image of the child virtual pet comprises image materials obtained by variation, and the image materials obtained by variation are image materials which are not possessed by the first role image and the second role image;
the loss rule is that when the first character image and/or the second character image has/have image material of global feature, the third character image has no image material of global feature, and the image material of global feature is integrated image material covering the body model of the virtual pet and has the highest display priority. Illustratively, the global feature is a complete superman image, robotic image, flying man image, silly pig image, and the like.
Optionally, the avatar material of the global feature is an integrated avatar material covering the body model of the virtual pet and has the highest display priority. The local feature is an image parameter for configuring a local part of a body model of a virtual character, and the local part includes: at least one of ears, eyes, nose, mouth, tail, stripes, patterns, beard, jewelry, external hanging parts. The external pendant is an image parameter configuring an accessory of a body model of the virtual character, and the external pendant includes at least one of a hand-held part, a bag, and a head top part.
Because the global feature has the highest display priority, when the target image parameter comprises the global feature, the virtual character can be completely displayed without the local feature. Alternatively, the global feature and the local feature may be configured in the character parameter at the same time, and the display priority of the global feature is higher than that of the local feature, that is, when the global feature and the local feature are included in the character parameter at the same time, the global feature is preferentially displayed.
It should be noted that step 302 may be executed before step 303, or may be executed after step 304, or both of them may be executed simultaneously, which is not limited in this embodiment.
In summary, in the method provided in this embodiment, two virtual pets in the current user account are selected as the father-mother virtual pet in the pet breeding interface, and the third role image of the child virtual pet is generated according to the first role image of the father virtual pet and the second role image of the mother virtual pet according to the genetic rule, so that the problem that the breeding mode based on adjusting the numerical attribute parameters in the related art is only applicable to the application program with the combat system, and therefore the application range is limited, and the method achieves the effect that the two virtual pets owned by the current user account are used for obtaining new virtual pets through the breeding mode, the transmission of the external role images is used as a main target, and the method is applicable and compatible to the breeding scenes of various types of virtual pets.
FIG. 8 is a flowchart illustrating a breeding method for virtual pets according to another exemplary embodiment. The embodiment is exemplified by applying the method to the computer system shown in fig. 1. The server in this embodiment may be the server system or the backend server in fig. 1. The method comprises the following steps:
step 801, displaying a pet breeding interface by a terminal;
the pet breeding interface is a user interface used for breeding the next generation of virtual pets according to two virtual pets simultaneously owned by the current user account. Optionally, the two virtual pets are two virtual pets of the same type and of different sexes. Optionally, the gender of the virtual pet is specified by the user, or is pre-generated by the server.
The father role column is a control column for selecting the virtual pet serving as the father role in the breeding process. The mother role column is a control column for selecting the virtual pet serving as the mother role in the breeding process.
Referring schematically to fig. 4, the terminal is shown with a pet breeding interface 40, the pet breeding interface 40 including a maternal role field 42 and a paternal role field 44. The maternal role field 42 and the paternal role field 44 default to null.
Step 802, the terminal displays a father selection interface according to a first click operation;
illustratively, the terminal receives a first click operation, and determines a father virtual pet in the breeding process according to the first click operation in a plurality of virtual pets owned by the current user account. Optionally, the first click operation is an operation of clicking a parent role field.
And displaying the virtual pet owned by the current user account on the father selection interface. Optionally, the father selection interface displays a plurality of virtual pets that are owned by the current user account and that can be father virtual pets. Optionally, the father virtual pet has a first persona. The first character form is an external image that the father's virtual pet shows to the user in the application. The first character representation includes: at least one image material selected from a body model, skin, stripes, patterns, ears, nose, eyes, beard, tail, clothing, and external hanging. The outside pendant includes: at least one of a schoolbag, glasses, jewelry, a handheld prop and a head-top light ring. Optionally, the first character image is represented by a first character parameter, and the first character parameter includes an identifier corresponding to each character material of the father virtual pet.
Step 803, the terminal selects a father virtual pet in the father selection interface according to the first selection signal;
optionally, the first selection signal is a click signal for selecting a certain virtual pet in the father selection interface. Referring to fig. 5 schematically, the terminal displays a pet breeding interface 40, the user may click on the parent role column 42 by using a first click operation, and then the terminal switches and displays a pet selection interface 41 according to the first click operation, where each pet owned by the current user account is displayed on the pet selection interface 41. The user can click on the selected parent avatar 43 by using the first selection operation, and the terminal adds the parent avatar 43 to the parent role field 44 according to the first selection operation.
Step 804, the terminal displays a mother selection interface according to the second click operation;
illustratively, the terminal receives a second click operation, and determines the mother virtual pet in the breeding process according to the second click operation in the virtual pets owned by the current user account. Optionally, the second click operation is an operation of clicking a mother character field.
Optionally, the mother virtual pet has a second persona image. The second character image is an appearance that the mother's virtual pet shows to the user in the application. The second character image includes: at least one of a body model, skin, patches, patterns, ears, nose, eyes, beard, tail, clothing, external hanging. The outside pendant includes: at least one of a schoolbag, glasses, jewelry, a handheld prop and a head-top light ring. Optionally, the second character image is characterized by second image parameters, and the second image parameters comprise identifications corresponding to the image materials of the mother virtual pet.
The mother selects the interface to display the virtual pet owned by the current user account. Optionally, the mother selection interface displays a plurality of virtual pets owned by the current user account and eligible to be the mother's virtual pet.
Step 805, the terminal selects a mother virtual pet in the mother selection interface according to the second selection signal;
optionally, the second selection signal is a click signal to select a certain virtual pet in the mother selection interface. Referring to fig. 6 schematically, the terminal displays a pet breeding interface 40, the user may click on the mother character column 42 by a second click operation, and then the terminal switches and displays a pet selection interface 41 according to the second click operation, where each pet owned by the current user account is displayed on the pet selection interface 41. The user may click on the selected virtual character of mother 45 using the second selection operation and the terminal adds the virtual character of mother 45 to the mother character field 42 according to the first selection operation.
Step 806, the terminal sends a breeding request to the server, wherein the breeding request comprises information of the father virtual pet and information of the mother virtual pet;
illustratively, a "confirm breeding" button 46 is also displayed on the pet breeding interface 40. When the parent avatar and the parent avatar are selected, the user may click on the determine breeding button 46 to trigger a breeding signal. And the terminal sends a request to the server after receiving the breeding confirmation signal, wherein the breeding request comprises the information of the father virtual pet and the information of the mother virtual pet.
Optionally, the information of the father-mother virtual pet includes: identification of the parent virtual pet. Or, the identification of the parent virtual pet, the first image parameter and the second image parameter. Optionally, the propagation request further carries a current user account in the terminal.
Step 807, the server receives the breeding request sent by the terminal;
optionally, the server extracts information of the current breeding process from the breeding request, and detects whether the current breeding process meets the breeding conditions according to the information in the breeding request.
Optionally, the propagation conditions include, but are not limited to, at least one of the following three conditions:
1. the current user account has a propagation room prop in an available state.
The breeding house prop is a prop used for providing breeding places for father virtual pets and mother virtual pets. The breeding state of the house prop comprises the following steps: available state, in-breeding, and in-breeding completion.
2. The father virtual pet and the mother virtual pet do not have a close relationship.
Alternatively, close relationship means that the father virtual pet and the mother virtual pet do not have a direct relationship within three generations. Illustratively, the parent/mother virtual pet cannot breed with the child/girl virtual pet, and the parent and mother child/girl virtual pet cannot breed with each other.
3. The breeding time reaches the pregnancy time corresponding to the mother virtual pet.
The breeding time is the breeding time of the child virtual pet after breeding is started, and the breeding time is the time timed according to the starting using time of the breeding house props.
Each mother virtual pet corresponds to a respective length of time of pregnancy, and the lengths of time of pregnancy of different mother virtual pets are the same or different. The length of time that the mother's virtual pet is pregnant may be set by the server. In some embodiments, the length of time that the same mother virtual pet is pregnant may vary, such as increasing the length of time that the same mother virtual pet is pregnant after each breeding. The increased length of time of pregnancy can reduce (or control) the total number of child virtual pets bred by the same mother virtual pet.
This embodiment is exemplified by simultaneously including the above three breeding conditions. In this embodiment, the detection is performed in the order of condition 1, condition 2, and condition 3. In other embodiments, the detection may be performed in the order of condition 2, condition 1, and condition 3; or the detection is performed in the order of condition 3, condition 2, and condition 1. Optionally, this embodiment does not limit the sequence in which the server detects the three breeding conditions.
Step 808, the server detects whether the current user account corresponding to the terminal has a propagation room prop in an available state;
optionally, when the breeding request carries a current user account (or other login information), the server queries whether the current user account has available breeding house props.
In some embodiments, the server sends a query request to the database according to the current user account, and queries the number and the state of the propagation houses owned by the user account. Alternatively, each breeding house prop can only be used once.
When the propagation house prop in an unused state is not available, determining that the user account does not have the available propagation house prop; and when more than 1 breeding house prop in an unused state exists, determining that the user account has an available breeding house prop.
When the available propagation house prop is not available, entering step 809; when available breeding house props are available, step 813 is entered.
Step 809, when the propagation house prop in the available state is not owned, the server sends a prompt purchase message to the terminal;
the server sends prompt purchase information to the terminal, and the terminal displays a user interface for purchasing the propagation house prop according to the prompt purchase information and guides a user to purchase the propagation house prop.
Step 810, when the current user account does not have the propagation house prop, the terminal displays a purchase interface for purchasing the propagation house prop;
the purchase interface comprises introduction information, price and purchase entrance of the propagation property. The purchase entry may be a purchase button or a purchase link.
Step 811, the terminal receives a purchase signal triggered on the purchase interface;
optionally, the user may click and purchase the breeding house prop on the purchase interface. That is, the terminal receives a purchase signal triggered by the user on the purchase interface.
Step 812, the terminal purchases the propagation house prop from the server according to the purchase signal;
and the server transfers the virtual resources corresponding to the propagation room prop from the current user account to the middle account of the server according to the operation of the user. Then, the ownership of the breeding house prop is transferred from the intermediate account of the server to the current user account.
Step 813, when the propagation house prop in the available state is owned, the server detects whether the father virtual pet and the mother virtual pet have close relationship;
the database of the server stores the genealogy information of each virtual pet, namely the information of the previous generation virtual pet of each virtual pet and/or the information of the next generation virtual pet of each virtual pet.
And the server determines whether the father virtual pet and the mother virtual pet have close relationship in the genealogy information according to the identifier of the father virtual pet and the identifier of the mother virtual pet.
When the direct close relationship exists, ending the breeding process; when there is no direct affinity, step 814 is entered.
Step 814, when the father virtual pet and the mother virtual pet do not have a close relationship, the server detects whether the breeding time length exceeds the virtual pregnancy time length;
and the server establishes a breeding task according to the breeding request. The breeding task corresponds to a pregnancy duration, and the pregnancy duration is determined according to the characteristics of the virtual pet of the mother. The duration of pregnancy corresponding to virtual pets of different mothers may be the same or different.
Optionally, the server establishes a corresponding one of the breeding tasks for each breeding house. The identifier of each breeding task can be represented by the identifier of a breeding house or the identifier of a mother virtual pet.
Optionally, the server detects whether the breeding time length exceeds the virtual pregnancy time length when receiving a pickup request of the terminal; or, the server detects whether the breeding time exceeds the virtual pregnancy time at intervals of preset time; or the server detects whether the breeding time exceeds the virtual pregnancy time when the timer is overtime.
Step 815, when the breeding time exceeds the virtual pregnancy time, the server generates a third role image of the child virtual pet according to the genetic rule according to the first role image of the father virtual pet and the second role image of the mother virtual pet;
the genetic rules include: at least one of an inheritance rule, a mutation rule, and a loss rule;
the inheritance rule means that all or part of image materials of the third character image of the child virtual pet are copied from the first character image and/or the second character image. Optionally, the inheritance rule further includes: of child virtual pets
The variation rule means that the third role image of the child virtual pet comprises image materials obtained by variation, and the image materials obtained by variation are image materials which are not possessed by the first role image and the second role image;
the loss rule is that when the first character image and/or the second character image has/have image material of global feature, the third character image has no image material of global feature, and the image material of global feature is integrated image material covering the body model of the virtual pet and has the highest display priority.
The embodiment of the present application does not limit the specific form of the genetic rule.
When the breeding request carries the identifier of the father virtual pet, the server acquires a first role image of the father virtual pet and a second role image of the mother virtual pet according to the identifier of the father virtual pet. The first character image may be characterized using first image parameters and the second character image may be identified using second image parameters. Then, the server generates a third character image of the child virtual pet according to the genetic rule based on the first character image and the second character image. In some optional embodiments, the server further obtains the virtual pets of other ancestors according to the identification of the virtual pet of the parent, and determines all or part of image materials of the virtual pet of the child according to the character images of the virtual pets of the other ancestors.
And when the breeding request carries the image parameters of the virtual pet of the parent, the server acquires the first role image and the second role image from the breeding request. The first character image may be characterized using first image parameters and the second character image may be identified using second image parameters. Then, the server generates a third character image of the child virtual pet according to the genetic rule based on the first character image and the second character image. In some optional embodiments, the server further obtains the virtual pets of other ancestors according to the identification of the virtual pet of the parent, and determines all or part of image materials of the virtual pet of the child according to the character images of the virtual pets of the other ancestors.
Optionally, the third avatar of the child virtual pet is characterized using a third avatar parameter. The third triangular color representation includes: at least one image material selected from a body model, skin, stripes, patterns, ears, nose, eyes, beard, tail, clothing, and external hanging. The outside pendant includes: at least one of a schoolbag, glasses, jewelry, a handheld prop and a head-top light ring. Optionally, the third avatar parameter includes an identifier corresponding to each avatar material of the child virtual pet.
Step 816, the server stores the information of the child virtual pet and submits the information of the child virtual pet to the block chain system;
after the child virtual pet is generated, the server also stores information of the child virtual pet in a database. The information of the child virtual pet includes but is not limited to: at least one of an identification of the child virtual pet, an image parameter of the child virtual pet, a birth time (generation time) of the child virtual pet, parent information of the child virtual pet, and a user account of a first owner of the child virtual pet.
Optionally, the server further submits the information of the child virtual pet to the blockchain system, and when the plurality of nodes on the blockchain system commonly know the information of the child virtual pet, the information of the child virtual pet is stored in the blockchain corresponding to the virtual pet.
817, after the server generates the third triangle image, deducting the propagation house prop from the current user account;
the server deducts the propagation house prop used by the current user account. Namely, the available breeding house prop owned by the current user account is reduced by one.
Step 818, the server pays the transaction fee to the blockchain system by using the resources obtained by deducting the propagation house props;
since each time information is stored on the blockchain system, certain resources need to be paid to the blockchain system. The server also uses the resources obtained by deducting the propagation house props to pay a transaction fee for storing the information of the child virtual pet to the blockchain system.
Step 819, the terminal displays the getting interface of the child virtual pet when the breeding time exceeds the virtual pregnancy time;
optionally, the terminal displays a pickup interface of the child virtual pet when the breeding is successful.
Referring to fig. 7 in conjunction, the user may click on the breeding house prop 47 that has been created to enter the breeding house interface. When a plurality of breeding house props 47 exist, the terminal determines the information of the mother pet cat corresponding to the selected breeding house prop 47 according to the click signal of the user. Meanwhile, the terminal can be switched to a getting interface of the child virtual pet, and the getting interface comprises a 'get baby' button.
Step 820, the terminal receives a pickup signal triggered on a pickup interface;
optionally, the pickup signal is a click signal corresponding to a pickup button in the pickup interface. The get button can also be called get baby button, get child button, get pet button, and other names.
Step 821, the terminal sends a pickup request to the server;
when the user clicks the "get baby" button 48, the terminal sends a get request to the server, where the get request carries the identification of the mother's virtual pet.
Step 822, the server sends the information of the child virtual pet to the terminal;
and the server sends a pickup response to the terminal, wherein the pickup response comprises the information of the child virtual pet.
The information of the child virtual pet includes but is not limited to: at least one of an identification of the child virtual pet, an image parameter of the child virtual pet, a birth time (generation time) of the child virtual pet, parent information of the child virtual pet, and a user account of a first owner of the child virtual pet.
Step 823, the terminal displays a breeding result interface according to the pickup signal, and a third role image of the child virtual pet is displayed on the breeding result interface.
The breeding result interface is an interface for showing the child virtual pet. And a third role image of the child virtual pet is displayed on the breeding result interface.
Optionally, the breeding result interface further displays: the information processing system comprises at least one of an identification of the child virtual pet, a name of the child virtual pet, pairing information of the child virtual pet, selling information of the child virtual pet, life information of the child virtual pet, block information of the child virtual pet, icons or identifications or names of various image materials of the child virtual pet, and parent information of the child virtual pet.
In summary, in the method provided in this embodiment, two virtual pets in the current user account are selected as the father-mother virtual pet in the pet breeding interface, and the third role image of the child virtual pet is generated according to the first role image of the father virtual pet and the second role image of the mother virtual pet according to the genetic rule, so that the problem that the breeding mode based on adjusting the numerical attribute parameters in the related art is only applicable to the application program with the combat system, and therefore the application range is limited, and the method achieves the effect that the two virtual pets owned by the current user account are used for obtaining new virtual pets through the breeding mode, the transmission of the external role images is used as a main target, and the method is applicable and compatible to the breeding scenes of various types of virtual pets.
According to the method provided by the embodiment, the two virtual pets of the current user account are selected as the virtual pets of the parents, and compared with the two virtual pets of different user accounts, the method has the advantage that the operation required in the breeding process is simplified.
In the method provided by this embodiment, the breeding house prop is deducted in the breeding process, and the resource corresponding to the breeding house prop is used to pay the transaction fee to the blockchain system, so that the information of the child virtual pet in this embodiment can be stored in the blockchain system, and is compatible with the logic flow of the blockchain system.
In an illustrative example, taking the virtual pet as a pet cat, the breeding process of the pet cat comprises:
firstly, initiating a breeding process of pet cats;
and II, a pet cat getting process.
For the breeding initiation process of the pet cat, the terminal in this embodiment may be the first terminal or the second terminal in fig. 1, and the server may be the background server in fig. 1. The method comprises the following steps:
s901, starting;
and the user starts an application program on the terminal and opens a pet breeding interface in the application program. The pet breeding interface displays a father role field 42 and a mother role field 44, as shown in fig. 4. The father role column is used for adding the father pet cats in the breeding process, and the mother role column is used for adding the mother pet cats in the breeding process.
S902, selecting a father cat and a mother cat by a user, and requesting a server to breed by a terminal;
with reference to fig. 5 and 6, the user selects the mother pet cat "lovely cat 000001" and the father pet cat "gentleman 000002" in the current breeding process on the pet breeding interface 40. When it is determined that the mother pet cat and the father pet cat are correct, the user clicks the confirm breed button 46 on the pet breed interface 40. Then, the terminal sends a breeding request to the server.
Optionally, the breeding request includes: the identification of the mother pet cat "lovely cat 000001" and the identification of the father pet cat "gentleman 000002". Alternatively, the request for propagation includes: the image parameters of the mother pet cat 'lovely cat 000001' and the image parameters of the father pet cat 'gentleman 000002'. The character image of the pet cat is made by n layers of image pixel materials, and the image parameters are used for indicating the marks of the image materials of each layer of the pet cat. Alternatively, the n-layer shaped pixel material includes, but is not limited to: skin, speckle, pattern, eye, mouth, nose, ear, tail, external hanging piece.
Optionally, the breeding request further includes: current user account, or current user account substitute information. The replacement information may be the login status or token of the current user account.
Correspondingly, the server receives the breeding request sent by the terminal.
S903, the server checks whether the propagation house prop is enough;
the server extracts information of the mother pet cat and the father pet cat from the breeding request.
And when the extracted information comprises the current user account, the server inquires whether the current user account has available breeding house props. Illustratively, the server sends a query request to the database according to the current user account, and queries the number and the state of the propagation house props owned by the user account. When the propagation house prop in an unused state is not available, determining that the user account does not have the available propagation house prop; and when more than 1 breeding house prop in an unused state exists, determining that the user account has an available breeding house prop.
When the available propagation house prop is not available, the step 904 is executed; when available breeding house props are available, step 906 is entered.
S904, prompting the purchase of the propagation house prop;
the server sends prompt purchase information to the terminal, and the terminal displays a user interface for purchasing the propagation house prop according to the prompt purchase information and guides a user to purchase the propagation house prop. Alternatively, the user may click and purchase a breeding house prop on the user interface.
And the server transfers the virtual resources corresponding to the breeding house prop from the current user account to an intermediate account of the server according to the operation of the user, wherein the intermediate account is used for paying a certain fee to the block chain system.
S905, checking whether the purchase is successful;
the server detects whether the user account successfully purchases the propagation house prop. If the purchase is successful, go to step 906; if the purchase is unsuccessful, re-execute S904 or proceed to S910.
S906, checking whether the parents and cats are close to each other;
the server extracts the information of the parent pet cat from the breeding request.
When the extracted information comprises the identification of the parent pet cat, the server checks whether the two pet cats have direct close relations within three generations according to the identification of the parent pet cat.
Alternatively, the breeding process requires checking the close relationship between the parent pet cats and the child pet cats in the same parent and mother.
When the direct close relationship exists, the process proceeds to S910 to end the process; when there is no direct close relationship, the process proceeds to S907.
S907, breeding treatment;
and the server establishes a breeding task according to the breeding request. The breeding assignment corresponds to a length of pregnancy that is determined by the characteristics of the mother's pet cat. The length of pregnancy may be the same or different for different maternal pet cats.
S908, whether the breeding is successful or not;
optionally, the server detects whether the breeding is successful or not when receiving a pickup request of the terminal; or, the server detects whether the breeding is successful or not every preset time; or, the server detects whether the breeding is successful or not when the timer is overtime.
And when the cumulative time for starting breeding exceeds the duration of pregnancy, the server determines that the breeding is successful.
The server generates a third role image of the child virtual pet according to the genetic rule according to the first role image of the father virtual pet and the second role image of the mother virtual pet.
S909, deducting the breeding house prop;
the server deducts the propagation house prop used by the current user account. Namely, the available breeding house prop owned by the current user account is reduced by one.
And S910, ending.
For the picking process of the pet cat, the terminal in this embodiment may be the first terminal or the second terminal in fig. 1, and the server in this embodiment may be the background server in fig. 1. The method comprises the following steps:
s1001, starting;
and the user starts the application program on the terminal and opens the pet breeding interface on the application program.
S1002, selecting a female cat to receive a new cat;
referring to fig. 7 in conjunction, the user may click on the breeding house prop 47 that has been created to enter the breeding house interface. When a plurality of breeding house props 47 exist, the terminal determines the information of the mother pet cat corresponding to the selected breeding house prop 47 according to the click signal of the user. When the user clicks the "get baby" button 48, the terminal sends a get request to the server, the get request carrying information of the mother's pet cat.
Illustratively, the information about the mother's pet cat includes: identification of a mother pet cat.
Correspondingly, the server receives the pick-up request sent by the terminal.
S1003, detecting whether the female cat is pregnant or not and finishing the pregnancy;
illustratively, the server extracts the identity of the mother pet cat from the pick-up request.
The database of the server stores the state of each pet cat, and the state of the pet cat includes but is not limited to: at least one of selling, centering and pregnancy.
The server detects whether the mother pet cat is in a pregnant state and is pregnant and finished according to the identification of the mother pet cat.
When the mother pet cat is in the pregnant state and the pregnancy is over, go to step 1004; if the mother pet cat is not pregnant, go to step 1007 and end the process.
S1004, the server extracts pregnancy information to generate new cat data;
when the mother pet cat is in the pregnant state, the server extracts the pregnant information according to the identification of the mother pet cat. The pregnancy information includes: the image parameters of the father pet cat and the image parameters of the mother pet cat. The image parameter of the parent pet cat is a parameter for generating a first character image of the parent pet cat and the image parameter of the parent pet cat is a parameter for generating a second character image of the parent pet cat. Optionally, the pregnancy information further includes an image parameter of grandparent pet cats.
The server generates an identifier and an image parameter of a new child pet cat according to the genetic rule according to the image parameter of the father pet cat and the image parameter of the mother pet cat, wherein the identifier is used for uniquely identifying the pet cat in a plurality of pet cats; the character parameter is a parameter for generating a third character of a child pet cat.
Optionally, the genetic rules are used to inherit the character image of the father pet cat and the mother pet cat to the character image of the child pet cat. The genetic rules include, but are not limited to: inheritance, mutation, and loss.
S1005, the server stores the new cat data;
the server saves the identification and the image parameters of the child pet cat in a database of the server. Optionally, the server also stores the generation time of the child pet cat, the user account number of the first owner, the information of the parent pet cat, and the like.
S1006, the blockchain system stores the new cat data to the blockchain;
the server also uploads the new cat data to the blockchain system, and when the plurality of nodes on the blockchain system are identified together, the new cat data is stored in the blockchain corresponding to the pet cat.
And S1007, ending.
The following are embodiments of the apparatus of the embodiments of the present application, which correspond to the above-mentioned embodiments of the method one to one, and for details not described in detail in the embodiments of the apparatus, reference may be made to the above-mentioned corresponding embodiments of the method.
Fig. 11 is a block diagram of a virtual pet generating device according to an exemplary embodiment of the present application. The apparatus may be implemented as all or a portion of the terminal in software, hardware, or a combination of both. The device includes: a display module 1120 and an interaction module 1140.
The display module 1120 is configured to display a pet breeding interface, where the pet breeding interface includes a father role field and a mother role field;
the interaction module 1140 is configured to add a father virtual pet in the father character field according to a first operation, and add a mother virtual pet in the mother character field according to a second operation; the father virtual pet has a first character image and the mother virtual pet has a second character image;
the display module 1120 is configured to display a breeding result interface when breeding is successful, where the breeding result interface displays a child virtual pet, the child virtual pet has a third role image, and the third role image is generated according to the first role image and the second role image according to a genetic rule;
the father virtual pet and the mother virtual pet are two virtual pets simultaneously owned by the current user account.
In an alternative embodiment, the first operation comprises a first click operation triggered on the parent character field, and the second operation comprises a second click operation triggered on the parent character field;
the interaction module 1140 is configured to display a father selection interface according to the first click operation, where the father selection interface displays a virtual pet owned by a current user account; selecting the father virtual pet in the father selection interface according to a first selection signal;
the interaction module 1140 is further configured to display a mother selection interface according to the second click operation, where the mother selection interface displays a virtual pet owned by the current user account; and selecting the mother virtual pet in the mother selection interface according to the second selection signal.
In an alternative embodiment, the display module 1120 is configured to display a pickup interface of the child virtual pet; the interaction module 1140 is configured to receive a pickup signal triggered on the pickup interface; the display module 1120 is configured to display the breeding result interface according to the pickup signal, and a third role image of the child virtual pet is displayed on the breeding result interface.
In an optional embodiment, the display module 1120 is configured to display a purchase interface for purchasing the propagation house prop when the current user account does not own the propagation house prop; the breeding house prop is a prop used for providing breeding places for the father virtual pet and the mother virtual pet;
the interaction module 1140, configured to receive a purchase signal triggered on the purchase interface; and purchasing the propagation room prop from a server according to the purchase signal.
In an alternative embodiment, the genetic rule comprises: at least one of an inheritance rule, a mutation rule, and a loss rule;
the inheritance rule means that all or part of image materials of a third role image of the child virtual pet are copied from the first role image and/or the second role image;
the variation rule means that the third role image of the child virtual pet comprises image materials obtained by variation, wherein the image materials obtained by variation are image materials which are not possessed by the first role image and the second role image;
the loss rule is that when the first character image and/or the second character image have image materials of global features, the third character image does not have the image materials of global features, the image materials of global features are integrated image materials covering the whole body model of the virtual pet and have the highest display priority.
In an optional embodiment, the apparatus further comprises:
the sending module is used for sending a breeding request to a server, wherein the breeding request comprises the information of the father virtual pet and the information of the mother virtual pet;
and the receiving module is used for receiving a breeding response of the server, and the breeding response comprises the information of the child virtual pet.
Fig. 12 is a block diagram illustrating a virtual pet generating device according to an exemplary embodiment of the present application. The apparatus may be implemented as all or part of a server in software, hardware, or a combination of both. The device includes: a receiving module 1220, a generating module 1240, and a transmitting module 1260.
The receiving module 1220 is configured to receive a breeding request sent by a terminal, where the breeding request carries information of a father virtual pet and information of a mother virtual pet, the father virtual pet has a first role image, and the mother virtual pet has a second role image;
the generating module 1240 is configured to generate a third role image of the child virtual pet according to the genetic rule, according to the first role image of the father virtual pet and the second role image of the mother virtual pet;
the sending module 1260 is configured to send the information of the child virtual pet to the terminal, and the terminal is configured to display a breeding result interface according to the information of the child virtual pet, where the breeding result interface displays a third role image of the child virtual pet;
the father virtual pet and the mother virtual pet are two virtual pets simultaneously owned by the current user account.
In some alternative embodiments, the genetic rule comprises: the genetic rules include: at least one of an inheritance rule, a mutation rule, and a loss rule;
the inheritance rule means that all or part of image materials of a third role image of the child virtual pet are copied from the first role image and/or the second role image;
the variation rule means that the third role image of the child virtual pet comprises image materials obtained by variation, wherein the image materials obtained by variation are image materials which are not possessed by the first role image and the second role image;
the loss rule refers to that when the first character image and/or the second character image have image materials with global features, the third character image does not have the image materials with the global features;
wherein the image material of the global feature is an integrated image material covering the body model of the virtual pet, and the image material of the global feature has the highest display priority.
In some optional embodiments, the generating module 1240 is configured to execute the step of generating the third character image of the child virtual pet according to the genetic rule according to the first character image of the father virtual pet and the second character image of the mother virtual pet when the breeding process satisfies the breeding condition.
In some optional embodiments, the breeding conditions include at least one of:
the current user account corresponding to the terminal is provided with a breeding house prop in an available state, wherein the breeding house prop is a prop used for providing a breeding place for the father virtual pet and the mother virtual pet;
the father virtual pet and the mother virtual pet have no close relationship;
the breeding time is longer than the pregnancy time corresponding to the mother virtual pet, and the breeding time is the breeding time of the child virtual pet after breeding.
In some optional embodiments, the apparatus further comprises: a deduction module;
and the deduction module is used for deducting the propagation house prop from the current user account after the third triangular image is generated.
Fig. 13 illustrates a block diagram of a terminal 1300 according to an exemplary embodiment of the present application, where the terminal 1300 may be a smart phone, a tablet pc, an MP3 player (Moving Picture Experts Group Audio L player iii, mpeg Audio layer 3), an MP4 player (Moving Picture Experts Group Audio L layer IV, mpeg Audio layer 4), a notebook pc, or a desktop pc, and the terminal 1300 may also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, terminal 1300 includes: a processor 1301 and a memory 1302.
The processor 1301 may include a main processor and a coprocessor, the main processor being a processor for Processing data in a wake-up state, also referred to as a Central Processing Unit (CPU), the coprocessor being a low power processor for Processing data in a standby state, the processor 1301 may be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content to be displayed on the display screen 1301, and in some embodiments, the processor may also include an intelligent processor (AI) for learning operations related to AI (Artificial Intelligence processor) learning.
Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1302 is configured to store at least one instruction for execution by processor 1301 to implement the virtual pet breeding method provided by the method embodiments herein.
In some embodiments, terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. Processor 1301, memory 1302, and peripheral interface 1303 may be connected by a bus or signal line. Each peripheral device may be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1304, touch display 1305, camera 1306, audio circuitry 1307, positioning component 1308, and power supply 1309.
Peripheral interface 1303 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1301 and memory 1302. In some embodiments, processor 1301, memory 1302, and peripheral interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 1304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1304 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The Display 1305 is configured to Display a UI (User Interface), which may include graphics, text, icons, video, and any combination thereof, when the Display 1305 is a touch screen, the Display 1305 also has the capability to capture touch signals on or over a surface of the Display 1305, which may be input as control signals to the processor 1301 for processing, when the Display 1305 is also configured to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard, in some embodiments the Display 1305 may be one, providing the front panel of the terminal 1300, in other embodiments the Display 1305 may be at least two, each disposed on a different surface of the terminal 1300 or in a folded design, in still other embodiments the Display 1305 may be a flexible Display, disposed on a curved surface or on a folded surface of the terminal 1300, even further, the Display 1305 may be disposed in a non-rectangular irregular pattern, the Display 1305 may be fabricated from L CD (L id Crystal, Display, Emotig L, Organic Diode, etc.).
The camera assembly 1306 is used to capture images or video. Optionally, camera assembly 1306 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1301 for processing, or inputting the electric signals to the radio frequency circuit 1304 for realizing voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1300. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuitry 1304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 1307 may also include a headphone jack.
The positioning component 1308 is used for locating the current geographic location of the terminal 1300 to implement navigation or L BS (L geographic based Service). the positioning component 1308 can be a positioning component based on the united states GPS (global positioning System), the chinese beidou System, or the russian galileo System.
Power supply 1309 is used to provide power to various components in terminal 1300. The power source 1309 may be alternating current, direct current, disposable or rechargeable. When the power source 1309 comprises a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1300 also includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: acceleration sensor 1311, gyro sensor 1312, pressure sensor 1313, fingerprint sensor 1314, optical sensor 1315, and proximity sensor 1316.
The acceleration sensor 1311 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1300. For example, the acceleration sensor 1311 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1301 may control the touch display screen 1305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1311. The acceleration sensor 1311 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1312 may detect the body direction and the rotation angle of the terminal 1300, and the gyro sensor 1312 may cooperate with the acceleration sensor 1311 to acquire a 3D motion of the user with respect to the terminal 1300. Processor 1301, based on the data collected by gyroscope sensor 1312, may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1313 may be disposed on a side bezel of terminal 1300 and/or underlying touch display 1305. When the pressure sensor 1313 is disposed on the side frame of the terminal 1300, a user's holding signal to the terminal 1300 may be detected, and the processor 1301 performs left-right hand recognition or shortcut operation according to the holding signal acquired by the pressure sensor 1313. When the pressure sensor 1313 is disposed at a lower layer of the touch display screen 1305, the processor 1301 controls an operability control on the UI interface according to a pressure operation of the user on the touch display screen 1305. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1314 is used for collecting the fingerprint of a user, the identity of the user is identified by the processor 1301 according to the fingerprint collected by the fingerprint sensor 1314, or the identity of the user is identified by the fingerprint sensor 1314 according to the collected fingerprint, when the identity of the user is identified as a credible identity, the user is authorized to execute relevant sensitive operations by the processor 1301, wherein the sensitive operations comprise screen unlocking, encrypted information viewing, software downloading, payment, setting change and the like.
The optical sensor 1315 is used to collect the ambient light intensity. In one embodiment, the processor 1301 can control the display brightness of the touch display screen 1305 according to the intensity of the ambient light collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the touch display 1305 is turned down. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 according to the ambient light intensity collected by the optical sensor 1315.
Proximity sensor 1316, also known as a distance sensor, is typically disposed on a front panel of terminal 1300. Proximity sensor 1316 is used to gather the distance between the user and the front face of terminal 1300. In one embodiment, the processor 1301 controls the touch display 1305 to switch from the bright screen state to the dark screen state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 gradually decreases; the touch display 1305 is controlled by the processor 1301 to switch from the rest state to the bright state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 gradually becomes larger.
Those skilled in the art will appreciate that the configuration shown in fig. 13 is not intended to be limiting with respect to terminal 1300 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
The present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the breeding method for virtual pets provided by the above method embodiments.
Fig. 14 is a schematic structural diagram of a server according to an embodiment of the present application. The server may be any server or cluster of servers in fig. 1. Specifically, the method comprises the following steps: the server 1400 includes a Central Processing Unit (CPU) 1401, a system memory 1404 including a Random Access Memory (RAM) 1402 and a read-only memory (ROM) 1403, and a system bus 1405 connecting the system memory 1404 and the Central processing unit 1401. The server 1400 also includes a basic input/output system (I/O system) 1406 that facilitates transfer of information between devices within the computer, and a mass storage device 1407 for storing an operating system 1413, application programs 1414, and other program modules 1415.
The basic input/output system 1406 includes a display 1408 for displaying information and an input device 1409, such as a mouse, keyboard, etc., for user input of information. Wherein the display 1408 and input device 1409 are both connected to the central processing unit 1401 via an input/output controller 1410 connected to the system bus 1405. The basic input/output system 1406 may also include an input/output controller 1410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, an input/output controller 1410 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1407 is connected to the central processing unit 1401 through a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1407 and its associated computer-readable media provide non-volatile storage for the server 1400. That is, the mass storage device 1407 may include a computer readable medium (not shown) such as a hard disk or a Compact Disc-Only Memory (CD-ROM) drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other solid state memory technology, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage, or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1404 and mass storage device 1407 described above may collectively be referred to as memory.
The server 1400 may also operate in accordance with various embodiments of the present application by connecting to remote computers over a network, such as the internet. That is, the server 1400 may be connected to the network 1412 through the network interface unit 1411 coupled to the system bus 1405, or the network interface unit 1411 may be used to connect to other types of networks or remote computer systems (not shown).
The application also provides a computer readable storage medium, wherein at least one program is stored in the computer readable storage medium, and the at least one program is loaded and executed by a processor to realize the breeding method of the virtual pet.
The application also provides a computer program product, which when run on an electronic device, causes the electronic device to execute the breeding method of the virtual pet according to the above method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A breeding method of virtual pets, which is characterized by comprising the following steps:
displaying a pet breeding interface, wherein the pet breeding interface comprises a father role column and a mother role column;
adding a father virtual pet in the father role column according to a first operation, and adding a mother virtual pet in the mother role column according to a second operation; the father virtual pet has a first character image and the mother virtual pet has a second character image;
displaying a breeding result interface when breeding is successful, wherein the breeding result interface displays a child virtual pet, the child virtual pet has a third role image, the third role image is generated according to the first role image and the second role image according to genetic rules, the third role image is represented by a third image parameter, the third image parameter comprises parameters of an external feature and parameters of an internal feature, the external feature refers to a feature representing the third role image, the internal feature refers to an internal attribute represented by the third role image in a numerical form, the parameters of the external feature comprise parameters of a global feature and parameters of a local feature, the global feature is an integrated image feature used for covering a body model of the virtual pet, and the local feature refers to an image feature for configuring a local part of the body model of the virtual pet, the display priority of the global feature is higher than that of the local feature, the third role parameter is a unique role parameter which is stored and authenticated through a consensus mechanism of a blockchain system, the genetic rule comprises a loss rule, and the loss rule refers to that when the first role figure and/or the second role figure have the role material of the global feature, the third role figure does not have the role material of the global feature;
the father virtual pet and the mother virtual pet are two virtual pets simultaneously owned by the current user account.
2. The method of claim 1, wherein the first operation comprises a first click operation triggered on the parent character field, and wherein the second operation comprises a second click operation triggered on the parent character field;
adding a father virtual pet in the father role column according to a first operation, and the method comprises the following steps:
displaying a father selection interface according to the first click operation, wherein the father selection interface displays virtual pets owned by the current user account; selecting the father virtual pet in the father selection interface according to a first selection signal;
the adding a mother virtual pet in the mother character column according to a second operation comprises:
displaying a mother selection interface according to the second clicking operation, wherein the mother selection interface displays the virtual pet owned by the current user account; and selecting the mother virtual pet in the mother selection interface according to the second selection signal.
3. The method of claim 1, wherein displaying a breeding result interface when breeding is successful comprises:
displaying a pickup interface of the child virtual pet when the breeding is successful;
receiving a pickup signal triggered on the pickup interface;
and displaying the breeding result interface according to the pickup signal, wherein a third role image of the child virtual pet is displayed on the breeding result interface.
4. The method of claim 1, further comprising:
when the current user account does not have the propagation house prop, displaying a purchase interface for purchasing the propagation house prop; the breeding house prop is a prop used for providing breeding places for the father virtual pet and the mother virtual pet;
receiving a purchase signal triggered on the purchase interface;
and purchasing the propagation room prop from a server according to the purchase signal.
5. The method of any one of claims 1 to 4, wherein the genetic rules further comprise: at least one of an inheritance rule and a variation rule;
the inheritance rule means that all or part of image materials of a third role image of the child virtual pet are copied from the first role image and/or the second role image;
the variation rule means that the third role image of the child virtual pet comprises image materials obtained by variation, and the image materials obtained by variation are image materials which are not possessed by the first role image and the second role image.
6. The method of any of claims 1 to 4, further comprising:
sending a breeding request to a server, wherein the breeding request comprises the information of the father virtual pet and the information of the mother virtual pet;
receiving a breeding response of the server, wherein the breeding response comprises the information of the child virtual pet.
7. A breeding method of virtual pets, which is characterized by comprising the following steps:
receiving a breeding request sent by a terminal, wherein the breeding request carries information of a father virtual pet and information of a mother virtual pet, the father virtual pet has a first role image, and the mother virtual pet has a second role image;
generating a third role image of the child virtual pet according to genetic rules according to the first role image of the father virtual pet and the second role image of the mother virtual pet, wherein the third role image is represented by a third role image parameter, the third role image parameter comprises parameters of extrinsic features and parameters of intrinsic features, the extrinsic features refer to features representing the third role image, the intrinsic features refer to intrinsic attributes of the third role image represented in a numerical form, the parameters of the extrinsic features comprise parameters of global features and parameters of local features, the global features are integrated role features used for covering a body model of the virtual pet, the local features refer to role features configuring local parts of the body model of the virtual pet, and the display priority of the global features is higher than that of the local features, the third character image parameter is a unique character parameter which is stored and authenticated through a consensus mechanism of a blockchain system, the genetic rule comprises a loss rule, and the loss rule refers to that when the first character image and/or the second character image have the character material with the global characteristic, the third character image does not have the character material with the global characteristic;
sending the information of the child virtual pet to the terminal, wherein the terminal is used for displaying a breeding result interface according to the information of the child virtual pet, and the breeding result interface displays a third role image of the child virtual pet;
the father virtual pet and the mother virtual pet are two virtual pets simultaneously owned by the current user account.
8. The method of claim 7, wherein the genetic rule comprises: the genetic rules further comprise: at least one of an inheritance rule and a variation rule;
the inheritance rule means that all or part of image materials of a third role image of the child virtual pet are copied from the first role image and/or the second role image;
the variation rule means that the third role image of the child virtual pet comprises image materials obtained by variation, and the image materials obtained by variation are image materials which are not possessed by the first role image and the second role image.
9. The method according to claim 7 or 8, characterized in that the method further comprises:
and when the breeding process meets the breeding conditions, executing the step of generating a third role image of the child virtual pet according to the first role image of the father virtual pet and the second role image of the mother virtual pet and the genetic rule.
10. The method of claim 9, wherein the breeding conditions include at least one of:
the current user account corresponding to the terminal is provided with a breeding house prop in an available state, wherein the breeding house prop is a prop used for providing a breeding place for the father virtual pet and the mother virtual pet;
the father virtual pet and the mother virtual pet have no close relationship;
the breeding time is longer than the pregnancy time corresponding to the mother virtual pet, and the breeding time is the breeding time of the child virtual pet after breeding.
11. The method of claim 10, further comprising:
and after the third triangular image is generated, deducting the propagation house prop from the current user account.
12. A breeding device for virtual pets, the device comprising:
the pet breeding interface comprises a father role column and a mother role column;
the interaction module is used for adding a father virtual pet in the father role column according to a first operation and adding a mother virtual pet in the mother role column according to a second operation; the father virtual pet has a first character image and the mother virtual pet has a second character image;
the display module is further configured to display a breeding result interface when breeding is successful, the breeding result interface displays a child virtual pet, the child virtual pet has a third role image, the third role image is generated according to the first role image and the second role image according to genetic rules, the third role image is represented by using third role parameters, the third role parameters include parameters of extrinsic features and parameters of intrinsic features, the extrinsic features refer to features representing the third role image, the intrinsic features refer to intrinsic attributes represented by the third role image in a numerical form, the parameters of the extrinsic features include parameters of global features and parameters of local features, the global features are integral image features for covering a body model of the virtual pet, and the local features refer to image features for configuring local parts of the body model of the virtual role, the display priority of the global feature is higher than that of the local feature, the third role parameter is a unique role parameter which is stored and authenticated through a consensus mechanism of a blockchain system, the genetic rule comprises a loss rule, and the loss rule refers to that when the first role figure and/or the second role figure have the role material of the global feature, the third role figure does not have the role material of the global feature;
the father virtual pet and the mother virtual pet are two virtual pets simultaneously owned by the current user account.
13. A breeding device for virtual pets, the device comprising:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a breeding request sent by a terminal, the breeding request carries information of a father virtual pet and information of a mother virtual pet, the father virtual pet has a first role image, and the mother virtual pet has a second role image;
a generating module, configured to generate a third role image of the child virtual pet according to a genetic rule according to the first role image of the father virtual pet and the second role image of the mother virtual pet, where the third role image is characterized by a third role parameter, the third role parameter includes a parameter of an extrinsic feature and a parameter of an intrinsic feature, the extrinsic feature indicates a feature representing the third role image, the intrinsic feature indicates an intrinsic attribute of the third role image represented in a numerical form, the parameter of the extrinsic feature includes a parameter of a global feature and a parameter of a local feature, the global feature is an integrated feature used for covering a body model of the virtual pet, the local feature indicates a feature configuring a local part of the body model of the virtual pet, and a display priority of the global feature is higher than the local feature, the third character image parameter is a unique character parameter which is stored and authenticated through a consensus mechanism of a blockchain system, the genetic rule comprises a loss rule, and the loss rule refers to that when the first character image and/or the second character image have the character material with the global characteristic, the third character image does not have the character material with the global characteristic;
the terminal is used for displaying a breeding result interface according to the information of the child virtual pet, and the breeding result interface displays a third role image of the child virtual pet;
the father virtual pet and the mother virtual pet are two virtual pets simultaneously owned by the current user account.
14. An electronic device, comprising a memory and a processor;
at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the breeding method of the virtual pet according to any one of claims 1 to 11.
15. A computer-readable storage medium, wherein at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the breeding method of virtual pets according to any one of claims 1 to 11.
CN201810971252.7A 2018-08-24 2018-08-24 Virtual pet breeding method, device, equipment and storage medium Active CN109189507B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810971252.7A CN109189507B (en) 2018-08-24 2018-08-24 Virtual pet breeding method, device, equipment and storage medium
CN201910690714.2A CN110399183B (en) 2018-08-24 2018-08-24 Virtual pet breeding method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810971252.7A CN109189507B (en) 2018-08-24 2018-08-24 Virtual pet breeding method, device, equipment and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910690714.2A Division CN110399183B (en) 2018-08-24 2018-08-24 Virtual pet breeding method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109189507A CN109189507A (en) 2019-01-11
CN109189507B true CN109189507B (en) 2020-07-28

Family

ID=64919454

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810971252.7A Active CN109189507B (en) 2018-08-24 2018-08-24 Virtual pet breeding method, device, equipment and storage medium
CN201910690714.2A Active CN110399183B (en) 2018-08-24 2018-08-24 Virtual pet breeding method, device, equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910690714.2A Active CN110399183B (en) 2018-08-24 2018-08-24 Virtual pet breeding method, device, equipment and storage medium

Country Status (1)

Country Link
CN (2) CN109189507B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2781790A1 (en) * 2019-03-04 2020-09-07 Fuentes Pedro Nogales METHOD, SYSTEM AND DEVICES FOR THE USE OF A DIGITAL ELEMENT AS AN ORNAMENTAL ELEMENT OR JEWEL (Machine-translation by Google Translate, not legally binding)
CN111729315B (en) * 2020-06-24 2024-02-09 网易(杭州)网络有限公司 Method, system, electronic device and storage medium for obtaining game virtual pet

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10314455A (en) * 1997-05-21 1998-12-02 C & C Commun:Kk Portable electronic game device
US20090167767A1 (en) * 2007-12-31 2009-07-02 Shoval Dror Growing and caring for a virtual character on a mobile device
CN101721250A (en) * 2008-10-21 2010-06-09 英业达股份有限公司 Display system and method for adjusting virtual pet appearance according to physiological states
CN103854192A (en) * 2012-12-06 2014-06-11 腾讯科技(深圳)有限公司 Online application virtual role automatic transaction method, device and system
CN107491946A (en) * 2017-07-10 2017-12-19 北京云知科技有限公司 It is a kind of to store virtual objects to the method, apparatus of block chain and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《一起来捉妖》腾讯区块链游戏白皮书;区块网;《区块网》;20180424;1-12页 *
以太小丑;金色财经;《金色财经》;20180612;1-8页 *
百度莱茨狗繁殖功能上线,赚取微积分的途径又多了一条!;王乐阳;《腾讯视频》;20180323;1-2页 *

Also Published As

Publication number Publication date
CN110399183B (en) 2021-02-26
CN109189507A (en) 2019-01-11
CN110399183A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
US11083966B2 (en) Method and apparatus for displaying virtual pet, terminal, and storage medium
KR102510194B1 (en) Virtual pet information display method, apparatus, terminal, server, recording medium, and system
CN109272380B (en) Transaction method, device, equipment and storage medium of virtual pet commodity
CN109107166B (en) Virtual pet breeding method, device, equipment and storage medium
CN112162671B (en) Live broadcast data processing method and device, electronic equipment and storage medium
CN110019918B (en) Information display method, device, equipment and storage medium of virtual pet
CN110420464B (en) Method and device for determining virtual pet image parameters and readable storage medium
CN110496392B (en) Virtual object control method, device, terminal and storage medium
CN111921197A (en) Method, device, terminal and storage medium for displaying game playback picture
CN109345616A (en) Two dimension rendering map generalization method, equipment and the storage medium of three-dimensional pet
CN109126136B (en) Three-dimensional virtual pet generation method, device, equipment and storage medium
CN109189507B (en) Virtual pet breeding method, device, equipment and storage medium
CN114432699A (en) Decoration method, device, equipment and medium for virtual room
CN109806583A (en) Method for displaying user interface, device, equipment and system
CN112306332A (en) Method, device and equipment for determining selected target and storage medium
CN113194329B (en) Live interaction method, device, terminal and storage medium
CN112711335B (en) Virtual environment picture display method, device, equipment and storage medium
CN109045690B (en) Virtual pet obtaining method and device, electronic device and storage medium
CN112827182A (en) Method, device, terminal and storage medium for setting attribute of virtual object
CN110119508A (en) Filter method, system and the equipment of chat messages
CN115512209A (en) Cooking state detection method and device, electronic equipment and medium
CN114267058A (en) Face recognition method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant