CN109731333A - Application method, equipment and the storage medium of virtual environment - Google Patents

Application method, equipment and the storage medium of virtual environment Download PDF

Info

Publication number
CN109731333A
CN109731333A CN201811646227.8A CN201811646227A CN109731333A CN 109731333 A CN109731333 A CN 109731333A CN 201811646227 A CN201811646227 A CN 201811646227A CN 109731333 A CN109731333 A CN 109731333A
Authority
CN
China
Prior art keywords
state
weather
virtual objects
virtual
resource
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.)
Granted
Application number
CN201811646227.8A
Other languages
Chinese (zh)
Other versions
CN109731333B (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 CN201811646227.8A priority Critical patent/CN109731333B/en
Publication of CN109731333A publication Critical patent/CN109731333A/en
Application granted granted Critical
Publication of CN109731333B publication Critical patent/CN109731333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

This application discloses a kind of application method of virtual environment, equipment and storage mediums, are related to virtual environment field.This method comprises: the first interface of display, it further includes status bar in the first interface that virtual environment, which is in target state of weather, and status bar changes according to target state of weather;When virtual objects are in dbjective state in virtual environment, maintain state value constant;When virtual objects are not in dbjective state in virtual environment, to the state value of status bar, according to target the corresponding speed of state of weather declines.The state of virtual objects is influenced by state of weather locating for virtual environment, and when virtual objects are not at dbjective state, state value is changed in the status bar in the first interface, realize interacting between weather environment and virtual objects in virtual environment, it avoids and is only capable of the interaction modes such as being attacked, followed between virtual objects in virtual battle, increase the interactive objects and interaction mode in virtual battle.

Description

Application method, equipment and the storage medium of virtual environment
Technical field
The invention relates to virtual environment field, in particular to a kind of application method of virtual environment, equipment and deposit Storage media.
Background technique
In the battle class application program based on virtual environment, user is carried out by the virtual role in control virtual environment Battle.Schematically, which can attack enemy by picking up the virtual firearms in virtual environment, such as: Third person shooting game (Third-Personal Shooting Game, TPS) or first person shooting game (First- Person shooting game, FPS) in, or, the virtual role has attack magic in virtual environment, pass through attack evil spirit Method attacks enemy, such as: in the online tactics competitive game of more people (Multiplayer Online Battle Arena Games, MOBA) in.
In general, the virtual role that player is controlled is corresponding with a blood volume item, the blood volume item in battle class application program For indicating the vital values of player.When player is by enemy attack, which is determined according to the weapon or magic of attacking the player The loss of vital values, and determine game result of the player in battle for failure when the vital values of player are 0.
However, in above-mentioned game result decision procedure, only more single in such a way that vital values are determined, battle Environment is more dull.
Summary of the invention
The embodiment of the present application provides application method, equipment and the storage medium of a kind of virtual environment, can solve and only leads to Cross that the mode that vital values are determined is more single, the more dull problem of battle environment.The technical solution is as follows:
On the one hand, a kind of application method of virtual environment is provided, which comprises
It shows the first interface, includes being observed according to the virtual objects the virtual environment in first interface Picture, it further includes that the virtual objects are corresponding in first interface that the virtual environment, which is in target state of weather, Status bar, the status bar change according to the target state of weather;
When the virtual objects are in dbjective state in the virtual environment, the state value of the status bar is maintained not Become, the dbjective state is for resisting the target state of weather;
When the virtual objects are not in the dbjective state in the virtual environment, to described in the status bar State value is declined by the corresponding speed of the target state of weather.
On the other hand, a kind of application apparatus of virtual environment is provided, described device includes:
Display module includes according to the virtual objects to the void in first interface for showing the first interface The picture that near-ring border is observed, the virtual environment are in target state of weather, further include described in first interface The corresponding status bar of virtual objects, the status bar change according to the target state of weather;
The display module maintains when being also used to be in dbjective state in the virtual environment when the virtual objects The state value of the status bar is constant, and the dbjective state is for resisting the target state of weather;
The display module is also used to be not in the dbjective state in the virtual environment when the virtual objects When, the state value of the status bar is declined by the corresponding speed of the target state of weather.
On the other hand, a kind of terminal is provided, the terminal includes processor and memory, is stored in the memory At least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, institute Code set or instruction set is stated to be loaded by the processor and executed to realize the virtual ring as provided in above-mentioned the embodiment of the present application The application method in border.
On the other hand, a kind of computer readable storage medium is provided, at least one finger is stored in the storage medium Enable, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or Instruction set is loaded by the processor and is executed the application side to realize the virtual environment as provided in above-mentioned the embodiment of the present application Method.
On the other hand, a kind of computer program product is provided, when the computer program product is run on computers When, so that computer executes the application method of the virtual environment as provided in above-mentioned the embodiment of the present application.
Technical solution bring beneficial effect provided by the embodiments of the present application includes at least:
The state of virtual objects is influenced by state of weather locating for virtual environment, and when virtual objects are not at When dbjective state, state value is changed in the status bar in the first interface, realizes the weather environment in virtual environment Interacting between virtual objects avoids and is only capable of the interactions side such as being attacked, followed between virtual objects in virtual battle Formula increases interactive objects and interaction mode in virtual battle, the problem for avoiding battle environment more dull.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the structural block diagram for the electronic equipment that one exemplary embodiment of the application provides;
Fig. 2 is the structural block diagram for the computer system that one exemplary embodiment of the application provides;
Fig. 3 is that one exemplary embodiment of the application provides the core rule schematic diagram of battle application program;
Fig. 4 is the application method flow chart for the virtual environment that one exemplary embodiment of the application provides;
Fig. 5 is the life state confirmation method process for the virtual objects that the application method of the virtual environment based on Fig. 4 provides Figure;
Fig. 6 is the application method flow chart for the virtual environment that another exemplary embodiment of the application provides;
Fig. 7 is the method flow diagram of lighting a fire that the application method of the virtual environment based on Fig. 6 provides;
Fig. 8 is the state value confirmation method flow chart for the virtual objects that the application method of the virtual environment based on Fig. 6 provides;
Fig. 9 is the interface schematic diagram for the method for lighting a fire that the application method of the virtual environment based on Fig. 6 provides;
Figure 10 is the application method flow chart for the virtual environment that another exemplary embodiment of the application provides;
Figure 11 is the resource method for refreshing flow chart that the application method of the virtual environment based on Figure 10 provides;
Figure 12 is the interface schematic diagram for the virtual environment map that the application method of the virtual environment based on Figure 10 provides;
Figure 13 is the application apparatus structural block diagram for the virtual environment that one exemplary embodiment of the application provides;
Figure 14 is the structural block diagram for the terminal that one exemplary embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Firstly, to the invention relates to several nouns explain:
Virtual environment: being the virtual environment of display when application program is run at the terminal (or offer).The virtual environment can To be the simulated environment to real world, it is also possible to the semifictional three-dimensional environment of half emulation, can also be pure imaginary three-dimensional Environment.Virtual environment can be any one in two-dimensional virtual environment, 2.5 dimension virtual environments and three-dimensional virtual environment, following Embodiment is that three-dimensional virtual environment comes for example, but being not limited to this with virtual environment.Optionally, the virtual environment is also For the virtual environment battle between at least two virtual roles.Optionally, which is also used at least two virtual angles It is fought between color using virtual firearms.Optionally, which is also used within the scope of target area, and at least two is empty It is fought between quasi- role using virtual firearms, which can elapse with the time in virtual environment and constantly become It is small.
Virtual objects: refer to the movable object in virtual environment.The movable object can be virtual portrait, virtual At least one of animal, cartoon character.Optionally, when virtual environment is three-dimensional virtual environment, virtual objects are based on dynamic Draw the three-dimensional stereo model of bone technology creation.Each virtual objects are in three-dimensional virtual environment with itself shape and body Product, occupies a part of space in three-dimensional virtual environment.
State of weather: refer to the corresponding state of weather characteristics that virtual environment is shown in the terminal, optionally, the weather State includes normal weather state and extreme weather state, wherein extreme weather state is to generate shadow to the state of virtual objects Loud state of weather in the embodiment of the present application, is illustrated so that the extreme weather state is target state of weather as an example.
Target state of weather: referring to the state of weather having an impact to the physical condition of virtual objects, optionally, the target State of weather is extreme weather state.Schematically, which includes snowstorm state, hot state, sandstorm At least one of state and blast state, when target state of weather is snowstorm state, which influences empty The body temperature of quasi- object;When target state of weather is hot state, which influences the very thirsty degree of virtual objects;Work as mesh When mark state of weather is sandstorm state, which influences imperial husky ability of virtual objects, that is, the sandstorm state Influence the health status of virtual objects;When target state of weather is blast state, which influences virtual objects Imperial wind energy power, that is, the blast state influence virtual objects physical strength.
Status bar: refer to the display control for indicating ability that virtual objects resist target state of weather.It can Selection of land, the status bar is for indicating the health status that virtual objects are showed in physiological characteristic.Schematically, which uses In body temperature, moisture, respiratory health degree, physical strength, the muscular degree etc. that indicate virtual objects.Optionally, when virtual When object is also corresponding with blood volume, the status bar and blood volume item are two controls with incidence relation.Wherein, blood volume item is used for Indicate the life state of virtual objects, and status bar is used to indicate the health status of virtual objects, when status bar drop to it is default When state value, the health status of the virtual objects influences the life state of the virtual objects, that is, status bar drops to preset state When value, blood volume item is begun to decline.Optionally, state value represented by the status bar is higher, then virtual objects are vaporous to target day The ability that state is resisted is stronger, conversely, state value represented by status bar is lower, then virtual objects to target state of weather into The ability that row is resisted is weaker.Schematically, when target state of weather is snowstorm state, the status bar is for indicating virtual right The body temperature of elephant, the state value represented by the status bar are higher, then it represents that the ability that the virtual objects keep out the cold is stronger;Work as mesh When to mark state of weather be hot state, what which was used to indicate virtual objects needs water degree, the shape represented by the status bar State value is higher, then the virtual objects need water degree lower namely the virtual objects to resist hot ability stronger;When target weather When state is sandstorm state, which is used to indicate imperial husky ability of virtual objects, the state value represented by the status bar Higher, then the imperial husky ability of virtual objects is stronger, such as: when virtual objects wear mask in virtual environment, the virtual objects Imperial sand ability is stronger, then, state value represented by status bar is higher, and when virtual objects do not wear mask and in outdoor When, imperial husky ability of the virtual objects gradually weakens, i.e., state value represented by status bar gradually reduces;When target state of weather When for blast state, which is used to indicate imperial wind energy power of virtual objects.
Terminal in the application can be desktop computer, pocket computer on knee, mobile phone, tablet computer, e-book Reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard Audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert Compression standard audio level 4) player etc..Installation and operation has the application program for supporting virtual environment in the terminal, such as Support the application program of three-dimensional virtual environment.The application program can be virtual reality applications program, three-dimensional map program, military affairs Simulated program, TPS game, FPS game, any one in MOBA game.Optionally, which can be standalone version Application program, such as the 3D games of standalone version, are also possible to the application program of network on-line version.
Fig. 1 shows the structural block diagram of the electronic equipment of one exemplary embodiment of the application offer.The electronic equipment 100 It include: operating system 120 and application program 122.
Operating system 120 is that the basic software of the secure access to computer hardware is provided for application program 122.
Application program 122 is to support the application program of virtual environment.Optionally, application program 122 is to support three-dimensional The application program of environment.The application program 122 can be virtual reality applications program, three-dimensional map program, Military Simulation program, Third person shooting game (Third-Personal Shooting Game, TPS), first person shooting game (First- Person shooting game, FPS), MOBA game, any one in more people's gunbattle class survival games.The application program 122 can be the application program of standalone version, such as the 3D games of standalone version.
Fig. 2 shows the structural block diagrams for the computer system that one exemplary embodiment of the application provides.The department of computer science System 200 includes: the first equipment 220, server 240 and the second equipment 260.
First equipment, 220 installation and operation has the application program for supporting virtual environment.The application program can be virtual existing Real application program, three-dimensional map program, Military Simulation program, TPS game, FPS game, MOBA game, the existence of more people's gunbattle classes Any one in game.First equipment 220 is the equipment that the first user uses, and the first user is controlled using the first equipment 220 The first virtual objects carry out activity in virtual environment, which includes but is not limited to: adjustment body posture creeps, walks At least one of go, run, ride, jump, drive, pick up, shoot, attack, throw.Schematically, the first virtual objects It is the first virtual portrait, such as artificial figure role or cartoon character role.
First equipment 220 is connected by wireless network or cable network with server 240.
Server 240 includes at least one in a server, multiple servers, cloud computing platform and virtualization center Kind.Server 240 is used to that the application program of three-dimensional virtual environment to be supported to provide background service.Optionally, server 240 undertakes Main to calculate work, the first equipment 220 and the second equipment 260 undertake secondary calculation work;Alternatively, server 240 undertake it is secondary Work is calculated, the first equipment 220 and the second equipment 260 undertake main calculating work;Alternatively, server 240, the first equipment 220 Cooperated computing is carried out using distributed computing architecture between 260 three of the second equipment.
Second equipment, 260 installation and operation has the application program for supporting virtual environment.The application program can be virtual existing Real application program, three-dimensional map program, Military Simulation program, FPS game, MOBA game, in more people's gunbattle class survival games Any one.Second equipment 260 is the equipment that second user uses, and second user is located at virtual using the control of the second equipment 260 The second virtual objects carry out activity in environment, which includes but is not limited to: adjustment body posture, creep, walking, run, At least one of ride, jump, drive, pick up, shoot, attack, throw.Schematically, the second virtual objects are the second void Anthropomorphic object, such as artificial figure role or cartoon character role.
Optionally, the first virtual portrait and the second virtual portrait are in same virtual environment.Optionally, the first visual human Object and the second virtual portrait may belong to the same troop, the same tissue, with friend relation or with provisional communication Permission.Optionally, the first virtual portrait and the second virtual portrait also may belong to different troops, different tissues or have hostile The Liang Ge group of property.
Optionally, the application program installed in the first equipment 220 and the second equipment 260 be identical or two equipment on The application program of installation is the same type application program of different control system platforms.First equipment 220 can refer to multiple set One in standby, the second equipment 260 can refer to one in multiple equipment, and the present embodiment is only with the first equipment 220 and second Equipment 260 illustrates.The device type of first equipment 220 and the second equipment 260 is identical or different, the device type packet It includes: game host, desktop computer, smart phone, tablet computer, E-book reader, MP3 player, MP4 player and knee At least one of mo(u)ld top half portable computer.Following embodiment is illustrated so that equipment is desktop computer.
Those skilled in the art could be aware that the quantity of above equipment can be more or less.For example above equipment can be with Only one perhaps above equipment be tens or several hundred or greater number.The embodiment of the present application to the quantity of equipment and Device type is not limited.
Optionally, the embodiment of the present application is applied in the battle application program for supporting virtual environment, the battle application program Follow at least one of rule as shown in Figure 3, wherein in Changes in weather rule, with adverse weather conditions (namely target day The influence of gaseity) be weather influence for be illustrated.As shown in figure 3, the core that the battle application program follows Heart rule 30 includes: game rule 31, map area rule 32, Changes in weather rule 33 and body temperature rule 34;
First, game rule 31 includes base rule 311, birth rule 312 and market settlement 313;
Base rule 311: it is used including number limitation, resource refresh control, personage's injury, resource.Wherein, number limits System is for indicating the quantity of virtual objects included in one innings of virtual battle within a preset range;Resource refresh control is used for table Show that the quantity of resource and resource are the location of in virtual environment in one innings of virtual battle;Personage injures for indicating virtual When object is under attack in virtual environment, the injury values for virtual objects are attacked every time, namely are attacked every time to virtual right The reduction amount of the blood volume value of elephant;Resource uses the usage mode for indicating every kind of resource.
Birth rule 312: indicating that virtual objects appear in the position in virtual environment when game starts, optionally, should Position is determined by the received selection operation of terminal.It optionally, include that selectable region and not may be selected in the virtual environment Region, terminal are only capable of receiving the selection operation in selectable region.Optionally, for same position range, what is selected is secondary Number is limited, such as: when in the range of 5 virtual objects selecting present position A when game starts, the 6th model to position A It encloses and carries out the player of selection and can be prompted " this position number is excessive, please don't select ".
Market settlement 313: determine including victory or defeat judgement and ranking etc..Wherein, victory or defeat determines for indicating virtual objects Whether survival is at the time of game over, and ranking determines the survival row for indicating virtual objects in current virtual battle Name, such as: having 3 virtual objects survivals to virtual battle finish time, then the corresponding player of 3 virtual objects is that this is virtual First place in battle, and not surviving to the virtual nearest superseded virtual objects for fighting finish time is fourth, with This analogizes.
Second, map area rule 32 includes: movable region 321 and night/source region 322;
Movable region 321: for indicating that virtual objects can carry out movable region, and movable region 321 is corresponded to It further include non-movable region, which is the region for accelerating the damage of virtual objects blood volume value, that is, at virtual objects When non-movable region, which produces bigger effect the blood volume value of virtual objects.
Night/source region 322: region for indicating to show as night environment in virtual environment and in night environment In be provided with light source to increase the region of field range.
Third, Changes in weather rule 33 include multistage weather cycle 331 and adverse weather conditions 332;
Multistage weather cycle 331: refer to according to the progress monitoring target state of weather and normal weather shape virtually fought Switching between state.Optionally, when virtual battle starts, virtual environment is in normal weather state, and virtual battle starts to preset After duration, virtual environment is in initial target state of weather, and the influence of the initial target state of weather to virtual objects is smaller;Just After phase target state of weather continues preset duration, which restores normal weather state, and continues in normal weather state After preset duration, adjustment virtual environment is in medium-term goal state of weather, shadow of the medium-term goal state of weather to virtual objects It rings and is greater than influence of the initial target state of weather to virtual objects;After medium-term goal state of weather continues preset duration, this is virtual Environment restoration normal weather state, and after normal weather state continues preset duration, adjustment virtual environment is in later period target State of weather, influence of the later period target state of weather to virtual objects are greater than medium-term goal state of weather to the shadow of virtual objects It rings.
It optionally, include initial target state of weather, medium-term goal state of weather with target state of weather in the example above And be illustrated for later period target state of weather, the cycle alternation between the target state of weather and normal weather state Number can also be less or more, and the embodiment of the present application is not limited this.
Adverse weather conditions 332: refer to the influence that the target state of weather in virtual environment generates virtual objects.With sudden and violent For wind and snow state, which indicates snowstorm state to the body temperature of virtual objects and the influence of blood volume.
4th, body temperature rule 34 includes that sendible temperature influences 341, food effect 342 and campfire influence 343;
Sendible temperature influences 341: indicating the body temperature of the ambient temperature effect virtual objects in virtual environment, such as: virtual ring When border is in normal weather state, the environment temperature of virtual environment has no significant effect virtual objects, and when virtual environment is in When snowstorm state, the environment temperature of virtual environment is lower, and for virtual objects due to the influence of environment temperature, body temperature is lower.
Food effect 342: indicate that the food resource in virtual environment has an impact the body temperature of virtual objects.Optionally, After virtual objects pick up food resource in virtual environment, the virtual objects food resource can be carried out using, When the body temperature of the status bar of virtual objects expression virtual objects is lower, can be gone up to body temperature by the food resource.
Campfire influences 343: referring to that campfire resource has an impact the body temperature of virtual objects.Optionally, at virtual environment When snowstorm state, the body temperature of virtual objects can decline since environment temperature is lower, and when virtual objects are in campfire money When in the preset range in source, the body temperature of the virtual objects may remain in normal body temperature without being influenced by snowstorm state.
In conjunction with above-mentioned explanation of nouns and core rule, to the application method of virtual environment provided by the embodiments of the present application into Row explanation.Referring to FIG. 4, Fig. 4 is the application method flow chart for the virtual environment that one exemplary embodiment of the application provides, It is applied to be illustrated in terminal 100 as shown in Figure 1 in this way in the present embodiment, the application method of the virtual environment Include:
Step 401, it shows the first interface, includes the picture observed according to virtual objects virtual environment in the first interface Face, virtual environment are in target state of weather.
It optionally, further include the corresponding status bar of virtual objects in first interface, the status bar is vaporous according to target day State and change.
Optionally, which is the state of weather having an impact to the physical condition of virtual objects, the state Item is for indicating the ability that virtual objects resist target state of weather.
Schematically, when target state of weather includes snowstorm state, which is used to indicate the body of virtual objects Temperature, the state value represented by the status bar are higher, then it represents that the ability that the virtual objects keep out the cold is stronger;When target weather When state includes hot state, what which was used to indicate virtual objects needs water degree, the state value represented by the status bar It is higher, then the virtual objects need water degree lower namely the virtual objects to resist hot ability stronger;When target state of weather When including sandstorm state, which is used to indicate imperial husky ability of virtual objects, and the state value represented by the status bar is got over Height, then the imperial husky ability of virtual objects is stronger, such as: when virtual objects wear mask in virtual environment, which is driven Husky ability is stronger, then, state value represented by status bar is higher, and when virtual objects do not wear mask and are in outdoor, Imperial husky ability of the virtual objects gradually weakens, i.e., state value represented by status bar gradually reduces;When target state of weather packet When including blast state, which is used to indicate imperial wind energy power of virtual objects.
Step 402, when being in dbjective state in virtual environment when virtual objects, maintain the state value of status bar constant.
Optionally, the dbjective state is for resisting target state of weather.
Schematically, when target state of weather includes snowstorm state, which is that virtual objects are in campfire State in the preset range of resource, the campfire resource is for maintaining the body temperature of virtual objects;When target state of weather When including hot state, which is that virtual objects are in the state in water source, which is used for the drink to virtual objects Water is supplemented;When target state of weather includes sandstorm state, which is the state that virtual objects wear mask, The mask is for resisting sandstorm;When target state of weather includes blast state, which is virtual objects In indoor state.
Step 403, when virtual objects are not in dbjective state in virtual environment, according to target to the state value of status bar The corresponding speed of state of weather is declined.
Optionally, which includes prior target state of weather, medium-term goal state of weather and later period mesh Mark state of weather, wherein prior target state of weather is vaporous for the target day occurred for the first time after virtual battle beginning preset duration State, medium-term goal state of weather is the target state of weather of the next appearance of prior target state of weather, and later period target day gas State is the target state of weather of the next appearance of medium-term goal state of weather.
Optionally, the corresponding state value decrease speed of prior target state of weather is First Speed;Medium-term goal day is vaporous The corresponding state value decrease speed of state is second speed;The corresponding state value decrease speed of later period target state of weather is third speed Degree;And First Speed is less than second speed, second speed is less than third speed.Schematically, state value full value is 100 points, then The corresponding First Speed of prior target state of weather is 10 points per second, and the corresponding second speed of medium-term goal state of weather is 20 points Per second, the corresponding third speed of later period target state of weather is 30 points per second.
Optionally, one innings of duration virtually fought controls within preset duration, such as: within 30 minutes, including three Target state of weather is taken turns, schematically, fighting in 5 minutes after starting is normal state of weather, is within the 6th minute to the 10th minute Prior target state of weather, the 11st minute to the 15th minute is normal state of weather, and the 16th minute to the 20th minute is mid-term mesh State of weather is marked, the 21st minute to the 25th minute is normal state of weather, and the 26th minute to the 30th minute is later period target weather State.If all virtual objects in sometime battle in 30 minutes are all eliminated, the order eliminated according to virtual objects Inverted order determines the ranking of virtual objects, and when battle carries out 30 minutes, there are multiple virtual objects to survive in virtual battle, then The virtual objects of survival are listed as first place.
It optionally, further include blood volume item in first interface, after declining to the state value of status bar, when the state When item drops to preset state value, to the blood volume value of blood volume item, according to target the corresponding speed of state of weather declines.Optionally, The blood volume full value is 100 points.Optionally, can be consistent with the decrease speed to status bar to the decrease speed of blood volume item, It can be inconsistent with the decrease speed to status bar.Schematically, to state value with 10 points it is per second decline, and after 10 seconds After dropping to 0, blood volume item is declined with 5 points of speed per second.
Optionally, when virtual objects are influenced by target state of weather, the preferential state value declined in status bar, state value After dropping to preset value (such as :) at 0 point, the blood volume value in blood volume item is declined;When virtual objects are attacked, directly to void The blood volume value of quasi- object is declined, such as: virtual objects A is attacked by virtual objects B by firearms a in virtual battle Afterwards, blood volume value declines at 29 points.
Optionally, the mode virtually fought difference, life state locating for the virtual objects are participated according to virtual objects Difference carries out respectively for participating in virtually fighting in such a way that virtual objects participate in virtually fighting with individual in the way of war Illustrate:
First, virtual objects are participated in a manner of war virtually to wartime, which includes normal condition, dying shape Three kinds of life states of state and superseded state.Wherein, normal condition is that the blood volume value of virtual objects is greater than 0 state, Ye Jixu The state of quasi- object survival;Transition state of the moribund condition between normal condition and superseded state, virtual objects are in being on the point of When death situation state, normal condition can be reverted in such a way that teammate assists, revert to the virtual objects blood volume item of normal condition Default blood volume value is shown as, if teammate assists not in time, which switchs to eliminate state;Superseded state, that is, virtual Object can not continue to participate in the state that this innings is virtually fought, and optionally, player can be by way of watching with the visual angle of teammate The combat situations for watching teammate, can also be with the combat situations in the view place of enemy;
Second, virtual objects are participated in a manner of personal virtually to wartime, which only includes normal condition and wash in a pan Eliminate state, wherein normal condition and superseded state all in above-mentioned group's war mode normal condition and superseded state consistency.
Optionally, influence of the target state of weather to virtual objects is referring to FIG. 5, as shown in figure 5, step 51, to target Switching between state of weather and normal weather state is controlled.Step 52, determined to state value according to battle duration and/or The decrease speed of blood volume value.Step 53, when fight duration it is shorter when, injure it is low, to the decline of state value and/or blood volume value compared with Slowly;Step 54, when battle duration is medium, injury is medium, medium to the decrease speed of state value and/or blood volume value;Step 55, When battle duration is longer, injury is high, very fast to the decline of state value and/or blood volume value.Step 56, according to state value and/or The decline of blood volume value determines the injury to virtual objects and determines that virtual objects are in normal condition 57, moribund condition 58, wash in a pan Eliminate one of state in state 59.
In conclusion the application method of the virtual environment provided in the present embodiment, vaporous by day locating for virtual environment State influences the state of virtual objects, and the status bar when virtual objects are not at dbjective state, in the first interface In state value is changed, realize interacting between weather environment and virtual objects in virtual environment, avoid virtual Be only capable of the interaction modes such as being attacked, followed between virtual objects in battle, increase the interactive objects in virtual battle with And interaction mode, the problem for avoiding battle environment more dull.
In one optionally embodiment, after state value decline, it can be restored by restoring resource, referring to FIG. 6, Fig. 6 is the application method for the virtual environment that another exemplary embodiment of the application provides, and is applied in this way as shown in Figure 1 Terminal 100 in for, this method comprises:
Step 601, it shows the first interface, includes the picture observed according to virtual objects virtual environment in the first interface Face, virtual environment are in target state of weather.
It optionally, further include the corresponding status bar of virtual objects in first interface, the status bar is vaporous according to target day State and change.
Optionally, which is the state of weather having an impact to the physical condition of virtual objects, the state Item is for indicating the ability that virtual objects resist target state of weather.
Step 602, when being in dbjective state in virtual environment when virtual objects, maintain the state value of status bar constant.
Optionally, the dbjective state is for resisting target state of weather.
Step 603, when virtual objects are not in dbjective state in virtual environment, according to target to the state value of status bar The corresponding speed of state of weather is declined.
Step 604, resource consumption operation is received.
It optionally, further include restoring resource in virtual environment, which is used for blood volume value and/or shape to blood volume item The state value of state item is restored.
Optionally, when terminal is mobile terminal, it is right on the mobile terminal display screen that resource consumption operation can be The selection operation for restoring resource, when terminal is desktop computer or portable lap-top laptop, resource consumption operation can To be the operation realized by external input device, such as: shortcut key being inputted by keyboard and realizes that the resource consumption operates.
Step 605, it is consumed according to the recovery resource that virtual objects are held in resource consumption operation.
Optionally, it is virtually subsidiary to wartime in entrance to can be virtual objects for the corresponding recovery resource of resource consumption operation , it is also possible to virtual objects and picks up in virtual environment obtain.
It optionally, should when target state of weather is snowstorm state, and status bar is used to indicate the body temperature of virtual objects Restoring resource includes at least one of food resource and charcoal fire resource;When target state of weather is hot state, the state What item was used to indicate virtual objects needs water degree, then the recovery resource includes at least one of bottled water, sports drink;Work as mesh When mark state of weather is sandstorm state, which is used to indicate imperial husky ability of the virtual objects, then restoring resource includes At least one of mask, gas mask;When target state of weather is blast state, status bar is for indicating virtual objects Imperial wind energy power, restoring resource includes at least one of on-slip shoes, food resource.
Step 606, the state value of the blood volume value of blood volume item and/or status bar is restored according to resource is restored.
Optionally, the recovery resource can with recovered part blood volume value and/or state value, can also restore blood volume value and/or State value can also restore state value to full value and hold mode value is continuously in full value state to full value.
Schematically, it is illustrated, then recovery resource is applied so that target state of weather is snowstorm state as an example Mode include at least one of such as under type:
The first, recovery resource is food resource, is applied according to resource consumption operation to food resource, to blood volume item Restore blood volume value corresponding with food resource, and state value corresponding with food resource is restored to status bar;
Optionally, which can be divided into different types, such as: chicken leg can restore 75 blood volume values and at 50 points State value, cake can restore 50 blood volume values and 30 dotted state value, and fruit drops can restore 20 blood volume values and at 10 points State value.Optionally, food resource restores blood volume value and/or state value to preset value to multipotency, such as: food resource to multipotency Blood volume value is restored to 80 points, state value can be restored to 90 points.Schematically, the current blood volume value of virtual objects is 50 points, shape State value is 0, and after virtual objects use chicken leg, the blood volume value of the virtual objects is restored to 80 points (preset value), the virtual objects State value restore to 50 points.
Second, recovery resource is charcoal fire resource, then before receiving resource consumption operation, receives signal of lighting a fire, according to Signal of lighting a fire generates kindling material to be applied, after receiving resource consumption operation, according to resource consumption operation by charcoal fire resource act on to Using kindling material, campfire resource is obtained, when virtual objects are in the preset range of campfire resource, the status bar of virtual objects is protected It holds in full value state.
Optionally, when terminal, which receives, lights a fire signal, environment locating for virtual objects is determined according to the signal of lighting a fire, when When virtual objects are in outdoor environment, virtual objects are prompted to light a fire unsuccessfully, and when virtual objects are in indoor environment, according to life Fiery signal generates kindling material to be applied.
Optionally, charcoal fire resource is corresponding with burn time duration, and the different corresponding burn time durations of charcoal fire resource is different, signal Property, big charcoal fire burn time duration is 20 seconds, and small charcoal fire burn time duration is 10s.When charcoal fire resource after-flame, the campfire is resource continuous Extinguish after preset duration.Optionally, according to the difference for the charcoal fire resource burnt for the last time in campfire resource, the preset duration Difference, such as: final combustion is big charcoal fire in campfire resource, then after big charcoal fire burns 20 seconds, the resource continuous burning 10 of the campfire Extinguish after second;When the small charcoal fire of final combustion in campfire resource, then small charcoal fire burns 10 second afterburnt, the resource continuous combustion of the campfire Extinguish after burning 5 seconds.Optionally, after kindling material to be applied generates, the kindling material to be applied is acted on if not receiving in preset duration Charcoal fire resource, then the kindling material to be applied extinguishes.
Optionally, which is also in night environment or daylight environment, when virtual environment is in night environment When, above-mentioned campfire resource is more obvious in night environment.
Schematically, the process of generation kindling material to be applied and application charcoal fire resource is as shown in fig. 7, step 71, receives It lights a fire signal.Step 72, regional determination is carried out.Step 73, when virtual objects are in locating for outdoor environment or the virtual objects It lights a fire unsuccessfully in preset range there are when campfire resource around position.Step 74, when virtual objects are in indoor environment and surrounding When campfire resource being not present in preset range, success of lighting a fire, that is, obtain kindling material to be applied.Step 75, sustained combustion.Step 76, Carry out resource quantity judgement.Step 77, there are when charcoal fire resource, step 75 is repeated.Step 78, when charcoal fire resource is not present, battalion Fiery resource is extinguished.
Schematically, restore the process of the state value of virtual objects according to campfire resource and food resource as shown in figure 8, Step 81, weather determines.Step 82, when being in non-severe cold environment, restore the state value of virtual objects.Optionally, restore empty The state value of quasi- object is to full value.Optionally, which is the environment that virtual environment is not at snowstorm state.Step 83, when being in severe cold environment, carry out indoor judgement.Step 84, when virtual objects are not at indoor environment, it is virtual right to reduce The state value of elephant.Step 85, when virtual objects are in indoor environment, campfire judgement is carried out.Step 86, when virtual objects are in When campfire resource side, restore the state value of virtual objects.Step 87, when virtual objects are not at campfire resource side, drop The state value of low virtual objects.Step 88, food resource is carried out when virtual objects in application, restoring the state of virtual objects Value.Step 89, the state value of virtual objects is determined.
Schematically, referring to FIG. 9, including being observed by virtual objects 91 virtual environment in the first interface 90 Picture further includes the corresponding status bar 92 of virtual objects 91 and blood volume item 93, the shape of current state item 92 in first interface 90 State value is 50, and the blood volume value of blood volume item 93 is 80, virtual objects 91 carry out in environment lighting a fire indoors obtain after operation it is to be applied Kindling material 94 obtains campfire resource 96 after charcoal resource 95 is acted on the kindling material 94 to be applied, according to the campfire resource 96, virtually The status bar 92 of object 91 restores to full value state.
Optionally, the corresponding flow chart of above-mentioned Fig. 8 and Fig. 9 is realized in the server, and by server by judging result It is sent to terminal, is shown by terminal.
In conclusion the application method of the virtual environment provided in the present embodiment, vaporous by day locating for virtual environment State influences the state of virtual objects, and the status bar when virtual objects are not at dbjective state, in the first interface In state value is changed, realize interacting between weather environment and virtual objects in virtual environment, avoid virtual Be only capable of the interaction modes such as being attacked, followed between virtual objects in battle, increase the interactive objects in virtual battle with And interaction mode, the problem for avoiding battle environment more dull.
Method provided in this embodiment, by consuming the state value of food resource and/or charcoal fire resource recovery virtual objects, Formation reduces the state value of virtual objects according to target state of weather, and the interaction restored according to resource is restored Mode increases interactive objects and interaction mode in virtual battle, the problem for avoiding battle environment more dull.
It in an alternative embodiment, include restoring resource in the virtual environment, which is used for blood volume item Blood volume value and/or the state value of status bar restored, further include Map OCX in the first interface, referring to FIG. 10, Figure 10 It is the application method for the virtual environment that another exemplary embodiment of the application provides, is applied in this way as shown in Figure 1 For in terminal 100, this method comprises:
Step 1001, the selection operation of to map control is received.
Optionally, which can be implemented as the small map for carrying out Planar Mapping in the first interface to virtual environment, The small map is for mapping the environment in the preset range of virtual objects present position;The Map OCX also can be implemented as An interface button in first interface.Optionally, when terminal is mobile terminal, the selection operation for receiving to map control can To be clicked in the interface screen of the terminal to the Map OCX, when terminal is computer or above-knee portable notebook electricity When brain, the selection operation of the to map control can be realized by external input device, such as: it is real to input shortcut key by keyboard It is existing, it is realized or, being clicked by mouse.
Step 1002, virtual environment map is shown according to selection operation.
Optionally, the virtual environment map for mapping virtual environment in the plane, in the virtual environment map Resource identification is shown, the resource identification is for indicating that position corresponding with resource identification has recovery resource in virtual environment.
Step 1003, when the recovery resource of target position corresponding with resource identification in virtual environment, which is picked up, to be finished, Cancel resource identification corresponding with target position in display map.
Optionally, the display mode of the resource identification is as shown in figure 11, and step 1101, resource refreshes, optionally, the resource Refresh step may be implemented before virtual battle starts, and also may be implemented in virtual battle carries out, optionally, the resource brush It newly can only carry out once, can also carry out repeatedly, optionally, the total quantity that resource refreshes is less than preset quantity.Step 1102, Carry out resource quantity judgement.Optionally, the resource quantity judgement is carried out for the target position for refreshing resource.Step 1103, when When target position has recovery resource, display restores resource.Step 1104, when target position is there is no resource is restored, cancel Display restores resource.Step 1105, resource pickoff signals are received.Step 1106, resource quantity is reduced according to resource pickoff signals, And repeat step 1102.Optionally, after receiving resource pickoff signals, the step of resource quantity determines can be executed again, Have confirmed that the target position with the presence or absence of recovery resource.
Optionally, judgment part is applied to server end in method shown in Figure 11, will after being judged by server end Judging result is sent to terminal, and is shown by terminal according to judging result.
Schematically, Figure 12 is please referred to, includes virtual objects 121, Map OCX 122 and recovery resource in the first interface 12 123, after terminal receives the selection operation of to map control 122, display virtual environment ground Figure 124, the virtual environment map In show resource identification 125, which indicates that the location of virtual objects 121 exist and restores resource 123.
It is worth noting that, above-mentioned Figure 10 the embodiment described can be with above-mentioned Fig. 4 and/or Fig. 6 the embodiment described knot It closes and realizes.
In conclusion the application method of the virtual environment provided in the present embodiment, vaporous by day locating for virtual environment State influences the state of virtual objects, and the status bar when virtual objects are not at dbjective state, in the first interface In state value is changed, realize interacting between weather environment and virtual objects in virtual environment, avoid virtual Be only capable of the interaction modes such as being attacked, followed between virtual objects in battle, increase the interactive objects in virtual battle with And interaction mode, the problem for avoiding battle environment more dull.
Method provided in this embodiment prompts user's virtual environment by showing resource identification in virtual environment map Middle to there is the position for restoring resource, the virtual objects Relatively centralized in virtual battle accelerates the progress and promotion virtually fought The militancy virtually fought.
Figure 13 is the structural block diagram of the application apparatus for the virtual environment that one exemplary embodiment of the application provides, such as Figure 13 It is shown, it is illustrated so that the device is applied in terminal 100 as shown in Figure 1 as an example, which includes: display module 131;
Display module 131 includes according to the virtual objects to described in first interface for showing the first interface The picture that virtual environment is observed, the virtual environment are in target state of weather, further include institute in first interface The corresponding status bar of virtual objects is stated, the status bar changes according to the target state of weather;
The display module 131, when being also used to be in dbjective state in the virtual environment when the virtual objects, dimension The state value for holding the status bar is constant, and the dbjective state is for resisting the target state of weather;
The display module 131 is also used to be not in the target-like in the virtual environment when the virtual objects When state, the state value of the status bar is declined by the corresponding speed of the target state of weather.
In an alternative embodiment, the target state of weather is to generate shadow to the physical condition of the virtual objects Loud state of weather, the status bar is for indicating the ability that the virtual objects resist the target state of weather.
In an alternative embodiment, the target state of weather includes snowstorm state, and the status bar is used for table Show the body temperature of the virtual objects, the dbjective state is that the virtual objects are in the shape in the preset range of campfire resource State, the campfire resource is for maintaining the body temperature of the virtual objects;Or,
The target state of weather includes hot state, and what the status bar was used to indicate the virtual objects needs water journey Degree, the dbjective state are that the virtual objects are in the state in water source, and the water source is used for the drink to the virtual objects Water is supplemented;Or,
The target state of weather includes sandstorm state, and the status bar is used to indicate imperial husky energy of the virtual objects Power, the dbjective state are the state that the virtual objects wear mask, and the mask is for resisting the sandstorm; Or,
The target state of weather includes blast state, and the status bar is used to indicate imperial wind energy of the virtual objects Power, the dbjective state are that the virtual objects are in indoor state.
It in an alternative embodiment, further include the corresponding blood volume item of the virtual objects in first interface;
The display module 131 is also used to when the status bar drops to preset state value, to the blood of the blood volume item Magnitude is declined by the corresponding speed of the target state of weather.
In an alternative embodiment, further include in the virtual environment restore resource, the recoverys resource be used for pair The blood volume value of the blood volume item and/or the state value of status bar are restored;
Described device, further includes:
Receiving module 132, for receiving resource consumption operation;
Consumable module 133, the recovery for being held according to resource consumption operation to the virtual objects provide Source is consumed, and the state value of the blood volume value and/or the status bar to the blood volume item is carried out according to the recovery resource Restore.
It in an alternative embodiment, further include Map OCX in first interface;
The receiving module 132, is also used to receive the selection operation to the Map OCX;
The display module 131 is also used to show virtual environment map, the virtual ring condition according to the selection operation Figure shows resource identification, the money for mapping the virtual environment in the plane in the virtual environment map Source is identified for indicating that there are the recovery resources for position corresponding with the resource identification in the virtual environment;
The display module 131 is also used to when target position corresponding with the resource identification in the virtual environment The recovery resource is picked up when finishing, and is cancelled and is shown the resource identification corresponding with the target position in the map.
In an alternative embodiment, the target state of weather is snowstorm state, and the status bar is for indicating The body temperature of the virtual objects, the recovery resource includes food resource;
The consumable module 133 is also used to be operated according to the resource consumption and apply to the food resource;
The display module 131 is also used to restore blood volume value corresponding with the food resource to the blood volume item, and State value corresponding with the food resource is restored to the status bar.
In an alternative embodiment, the target state of weather is snowstorm state, and the recovery resource includes charcoal Fiery resource;
The receiving module 132 is also used to receive signal of lighting a fire;
The display module 131, the signal that is also used to light a fire according to generate kindling material to be applied;
Described device, further includes:
The charcoal fire resource is acted on the fire to be applied for operating according to the resource consumption by application module 134 Kind, obtain campfire resource;
The display module 131 is also used to when the virtual objects are in the preset range of the campfire resource, by institute It states status bar and is maintained at full value state.
In an alternative embodiment, the display module 131, comprising:
Determination unit 1311 determines environment locating for the virtual objects for signal of lighting a fire according to;
Generation unit 1312 prompts the virtual objects to light a fire mistake for when the virtual objects are in outdoor environment It loses;
The generation unit 1312 is also used to when the virtual objects are in indoor environment, according to the signal of lighting a fire Generate the kindling material to be applied.
In an alternative embodiment, the target state of weather includes prior target state of weather, medium-term goal day Gaseity and later period target state of weather;
The corresponding state value decrease speed of the prior target state of weather is First Speed;
The corresponding state value decrease speed of the medium-term goal state of weather is second speed;
The corresponding state value decrease speed of the later period target state of weather is third speed;
Wherein, the First Speed is less than the second speed, and the second speed is less than the third speed.
It is worth noting that, above-mentioned display module 131 can be and be realized by terminal display screen, it is also possible to be shown by terminal What screen and processor were implemented in combination with;Above-mentioned receiving module 132, consumable module 133 and application module 134 can be by processor It realizes, is also possible to be implemented in combination with by terminal display screen and processor.
Figure 14 shows the structural block diagram of the terminal 1400 of an illustrative embodiment of the invention offer.The terminal 1400 can To be: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 1400 is also Other titles such as user equipment, portable terminal, laptop terminal, terminal console may be referred to as.
In general, terminal 1400 includes: processor 1401 and memory 1402.
Processor 1401 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 1401 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1401 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 1401 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1401 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 1402 may include one or more computer readable storage mediums, which can To be non-transient.Memory 1402 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1402 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 1401 for realizing this Shen Please in embodiment of the method provide virtual environment application method.
In some embodiments, terminal 1400 is also optional includes: peripheral device interface 1403 and at least one periphery are set It is standby.It can be connected by bus or signal wire between processor 1401, memory 1402 and peripheral device interface 1403.It is each outer Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1403.Specifically, peripheral equipment includes: In radio circuit 1404, touch display screen 1405, camera 1406, voicefrequency circuit 1407, positioning component 1408 and power supply 1409 At least one.
Peripheral device interface 1403 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 1401 and memory 1402.In some embodiments, processor 1401, memory 1402 and periphery Equipment interface 1403 is integrated on same chip or circuit board;In some other embodiments, processor 1401, memory 1402 and peripheral device interface 1403 in any one or two can be realized on individual chip or circuit board, this implementation Example is not limited this.
Radio circuit 1404 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal. Radio circuit 1404 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1404 is by telecommunications Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 1404 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution Code chipset, user identity module card etc..Radio circuit 1404 can by least one wireless communication protocol come with it is other Terminal is communicated.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (, Wireless Fidelity) and network.In some embodiments, radio circuit 1404 Can also include NFC (Near Field Communication, wireless near field communication) related circuit, the application to this not It is limited.
Display screen 1405 is for showing UI (User Interface, user interface).The UI may include figure, text, Icon, video and its their any combination.When display screen 1405 is touch display screen, display screen 1405 also there is acquisition to exist The ability of the touch signal on the surface or surface of display screen 1405.The touch signal can be used as control signal and be input to place Reason device 1401 is handled.At this point, display screen 1405 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press Button and/or soft keyboard.In some embodiments, display screen 1405 can be one, and the front panel of terminal 1400 is arranged;Another In a little embodiments, display screen 1405 can be at least two, be separately positioned on the different surfaces of terminal 1400 or in foldover design; In still other embodiments, display screen 1405 can be flexible display screen, is arranged on the curved surface of terminal 1400 or folds On face.Even, display screen 1405 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1405 can be with Using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1406 is for acquiring image or video.Optionally, CCD camera assembly 1406 includes front camera And rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.? In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide Pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angle Shooting function.In some embodiments, CCD camera assembly 1406 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light Lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for Light compensation under different-colour.
Voicefrequency circuit 1407 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and It converts sound waves into electric signal and is input to processor 1401 and handled, or be input to radio circuit 1404 to realize that voice is logical Letter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1400 to be multiple. Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1401 or radio frequency will to be come from The electric signal of circuit 1404 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1407 may be used also To include earphone jack.
Positioning component 1408 is used for the current geographic position of positioning terminal 1400, to realize navigation or LBS (Location Based Service, location based service).Positioning component 1408 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 1409 is used to be powered for the various components in terminal 1400.Power supply 1409 can be alternating current, direct current Electricity, disposable battery or rechargeable battery.When power supply 1409 includes rechargeable battery, which can be line charge Battery or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is to pass through The battery of wireless coil charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1400 further includes having one or more sensors 1410.One or more sensing Device 1410 includes but is not limited to: acceleration transducer 1411, gyro sensor 1412, pressure sensor 1413, fingerprint sensing Device 1414, optical sensor 1415 and proximity sensor 1416.
Acceleration transducer 1411 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1400 Size.For example, acceleration transducer 1411 can be used for detecting component of the acceleration of gravity in three reference axis.Processor The 1401 acceleration of gravity signals that can be acquired according to acceleration transducer 1411, control touch display screen 1405 with transverse views Or longitudinal view carries out the display of user interface.Acceleration transducer 1411 can be also used for game or the exercise data of user Acquisition.
Gyro sensor 1412 can detecte body direction and the rotational angle of terminal 1400, gyro sensor 1412 Acquisition user can be cooperateed with to act the 3D of terminal 1400 with acceleration transducer 1411.Processor 1401 is according to gyro sensors The data that device 1412 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clapped Image stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1405 in terminal 1400 can be set in pressure sensor 1413.When When the side frame of terminal 1400 is arranged in pressure sensor 1413, user can detecte to the gripping signal of terminal 1400, by Reason device 1401 carries out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1413 acquires.Work as pressure sensor 1413 when being arranged in the lower layer of touch display screen 1405, is grasped by processor 1401 according to pressure of the user to touch display screen 1405 Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control, At least one of icon control, menu control.
Fingerprint sensor 1414 is used to acquire the fingerprint of user, is collected by processor 1401 according to fingerprint sensor 1414 Fingerprint recognition user identity, alternatively, by fingerprint sensor 1414 according to the identity of collected fingerprint recognition user.Knowing Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation by processor 1401, which grasps Make to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1414 can be set Set the front, the back side or side of terminal 1400.When being provided with physical button or manufacturer Logo in terminal 1400, fingerprint sensor 1414 can integrate with physical button or manufacturer Logo.
Optical sensor 1415 is for acquiring ambient light intensity.In one embodiment, processor 1401 can be according to light The ambient light intensity that sensor 1415 acquires is learned, the display brightness of touch display screen 1405 is controlled.Specifically, work as ambient light intensity When higher, the display brightness of touch display screen 1405 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1405 is turned down Show brightness.In another embodiment, the ambient light intensity that processor 1401 can also be acquired according to optical sensor 1415, is moved The acquisition parameters of state adjustment CCD camera assembly 1406.
Proximity sensor 1416, also referred to as range sensor are generally arranged at the front panel of terminal 1400.Proximity sensor 1416 for acquiring the distance between the front of user Yu terminal 1400.In one embodiment, when proximity sensor 1416 is examined When measuring the distance between the front of user and terminal 1400 and gradually becoming smaller, by processor 1401 control touch display screen 1405 from Bright screen state is switched to breath screen state;When proximity sensor 1416 detect the distance between front of user and terminal 1400 by When gradual change is big, touch display screen 1405 is controlled by processor 1401 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1400 of structure shown in Figure 14 Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, the meter Calculation machine readable storage medium storing program for executing can be computer readable storage medium included in the memory in above-described embodiment;It can also be with It is individualism, without the computer readable storage medium in supplying terminal.Be stored in the computer readable storage medium to Few an instruction, at least a Duan Chengxu, code set or instruction set, it is at least one instruction, an at least Duan Chengxu, described Code set or instruction set are loaded by the processor and are executed the application to realize the virtual environment as described in Fig. 1 to Figure 11 is any Method.
Optionally, the computer readable storage medium may include: read-only memory (ROM, Read Only Memory), Random access memory (RAM, Random Access Memory), solid state hard disk (SSD, Solid State Drives) or light Disk etc..Wherein, random access memory may include resistive random access memory body (ReRAM, Resistance Random Access Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).Above-mentioned Apply for that embodiment sequence number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (15)

1. a kind of application method of virtual environment, which is characterized in that the described method includes:
It shows the first interface, includes the picture observed according to the virtual objects the virtual environment in first interface Face, the virtual environment are in target state of weather, further include the corresponding state of the virtual objects in first interface Item, the status bar change according to the target state of weather;
When the virtual objects are in dbjective state in the virtual environment, maintain the state value of the status bar constant, The dbjective state is for resisting the target state of weather;
When the virtual objects are not in the dbjective state in the virtual environment, to the state of the status bar Value is declined by the corresponding speed of the target state of weather.
2. the method according to claim 1, wherein
The target state of weather is the state of weather having an impact to the physical condition of the virtual objects, and the status bar is used In the ability for indicating that the virtual objects resist the target state of weather.
3. according to the method described in claim 2, it is characterized in that,
The target state of weather includes snowstorm state, and the status bar is used to indicate the body temperature of the virtual objects, described Dbjective state is that the virtual objects are in the state in the preset range of campfire resource, and the campfire resource is used for the void The body temperature of quasi- object is maintained;Or,
The target state of weather includes hot state, and what the status bar was used to indicate the virtual objects needs water degree, institute Stating dbjective state is the state that the virtual objects are in water source, and the water source is used to carry out the drinking-water of the virtual objects Supplement;Or,
The target state of weather includes sandstorm state, and the status bar is used to indicate imperial husky ability of the virtual objects, The dbjective state is the state that the virtual objects wear mask, and the mask is for resisting the sandstorm;Or,
The target state of weather includes blast state, and the status bar is used to indicate imperial wind energy power of the virtual objects, institute Stating dbjective state is that the virtual objects are in indoor state.
4. the method according to claim 1, wherein further including that the virtual objects are corresponding in first interface Blood volume item;
After the state value to the status bar is declined by the corresponding speed of the target state of weather, also wrap It includes:
It is corresponding by the target state of weather to the blood volume value of the blood volume item when the status bar drops to preset state value Speed declined.
5. the method according to claim 1, wherein further include in the virtual environment restore resource, it is described extensive Multiple resource is for restoring the blood volume value of the blood volume item and/or the state value of status bar;
After the state value to the status bar is declined by the corresponding amplitude of the target state of weather, also wrap It includes:
Receive resource consumption operation;
It is consumed according to the recovery resource that the virtual objects are held in resource consumption operation, and to the blood The state value of the blood volume value and/or the status bar of measuring item is restored according to the recovery resource.
6. according to the method described in claim 5, it is characterized in that, further including Map OCX in first interface;
The method also includes:
Receive the selection operation to the Map OCX;
Show that virtual environment map, the virtual environment map are used for the virtual environment in plane according to the selection operation On mapped, show resource identification in the virtual environment map, the resource identification is for indicating the virtual environment In there are the recovery resources for position corresponding with the resource identification;
When the recovery resource of target position corresponding with the resource identification in the virtual environment, which is picked up, to be finished, take Disappear and shows the resource identification corresponding with the target position in the map.
7. according to the method described in claim 5, it is characterized in that, the target state of weather is snowstorm state, the shape State item is used to indicate the body temperature of the virtual objects, and the recovery resource includes food resource;
The blood volume held according to resource consumption operation to the virtual objects is restored resource and is consumed, and The state value of blood volume value and/or the status bar to the blood volume item restores, comprising:
The food resource is applied according to resource consumption operation;
Blood volume value corresponding with the food resource is restored to the blood volume item, and the status bar is restored and the food The corresponding state value of resource.
8. according to the method described in claim 5, it is characterized in that, the target state of weather be snowstorm state, it is described extensive Multiple resource includes charcoal fire resource;
Before the reception resource consumption operation, further includes:
Reception is lit a fire signal;
Kindling material to be applied is generated according to the signal of lighting a fire;
The blood volume held according to resource consumption operation to the virtual objects is restored resource and is consumed, and The state value of blood volume value and/or the status bar to the blood volume item restores, comprising:
It is operated according to the resource consumption and the charcoal fire resource is acted on into the kindling material to be applied, obtain campfire resource;
When the virtual objects are in the preset range of the campfire resource, the status bar is maintained at full value state.
9. according to the method described in claim 8, it is characterized in that, the signal of lighting a fire according to generates kindling material to be applied, Include:
Environment locating for the virtual objects is determined according to the signal of lighting a fire;
When the virtual objects are in outdoor environment, the virtual objects is prompted to light a fire unsuccessfully;
When the virtual objects are in indoor environment, the kindling material to be applied is generated according to the signal of lighting a fire.
10. method according to any one of claims 1 to 9, which is characterized in that the target state of weather includes prior target State of weather, medium-term goal state of weather and later period target state of weather;
The corresponding state value decrease speed of the prior target state of weather is First Speed;
The corresponding state value decrease speed of the medium-term goal state of weather is second speed;
The corresponding state value decrease speed of the later period target state of weather is third speed;
Wherein, the First Speed is less than the second speed, and the second speed is less than the third speed.
11. a kind of application apparatus of virtual environment, which is characterized in that described device includes:
Display module includes according to the virtual objects to the virtual ring in first interface for showing the first interface The picture that border is observed, the virtual environment are in target state of weather, further include described virtual in first interface The corresponding status bar of object, the status bar change according to the target state of weather;
The display module, when being also used to be in dbjective state in the virtual environment when the virtual objects, described in maintenance The state value of status bar is constant, and the dbjective state is for resisting the target state of weather;
The display module is also used to when the virtual objects are not in the dbjective state in the virtual environment, right The state value of the status bar is declined by the corresponding speed of the target state of weather.
12. device according to claim 11, which is characterized in that
The target state of weather is the state of weather having an impact to the physical condition of the virtual objects, and the status bar is used In the ability for indicating that the virtual objects resist the target state of weather.
13. device according to claim 12, which is characterized in that
The target state of weather includes snowstorm state, and the status bar is used to indicate the body temperature of the virtual objects, described Dbjective state is that the virtual objects are in the state in the preset range of campfire resource, and the campfire resource is used for the void The body temperature of quasi- object is maintained;Or,
The target state of weather includes hot state, and what the status bar was used to indicate the virtual objects needs water degree, institute Stating dbjective state is the state that the virtual objects are in water source, and the water source is used to carry out the drinking-water of the virtual objects Supplement;Or,
The target state of weather includes sandstorm state, and the status bar is used to indicate imperial husky ability of the virtual objects, The dbjective state is the state that the virtual objects wear mask, and the mask is for resisting the sandstorm;Or,
The target state of weather includes blast state, and the status bar is used to indicate imperial wind energy power of the virtual objects, institute Stating dbjective state is that the virtual objects are in indoor state.
14. a kind of terminal, which is characterized in that the terminal includes processor and memory, is stored at least in the memory One instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the generation Code collection or instruction set are loaded by the processor and are executed to realize answering for the virtual environment as described in claims 1 to 10 is any Use method.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction Collection is loaded by the processor and is executed the application method to realize the virtual environment as described in claims 1 to 10 is any.
CN201811646227.8A 2018-12-29 2018-12-29 Application method and device of virtual environment and storage medium Active CN109731333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811646227.8A CN109731333B (en) 2018-12-29 2018-12-29 Application method and device of virtual environment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811646227.8A CN109731333B (en) 2018-12-29 2018-12-29 Application method and device of virtual environment and storage medium

Publications (2)

Publication Number Publication Date
CN109731333A true CN109731333A (en) 2019-05-10
CN109731333B CN109731333B (en) 2023-02-10

Family

ID=66362792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811646227.8A Active CN109731333B (en) 2018-12-29 2018-12-29 Application method and device of virtual environment and storage medium

Country Status (1)

Country Link
CN (1) CN109731333B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110339564A (en) * 2019-08-16 2019-10-18 腾讯科技(深圳)有限公司 Virtual objects display methods, device, terminal and storage medium in virtual environment
CN110801628A (en) * 2019-10-30 2020-02-18 腾讯科技(深圳)有限公司 Method, device, equipment and medium for controlling virtual object to restore life value
CN111013142A (en) * 2019-11-19 2020-04-17 腾讯科技(深圳)有限公司 Interactive effect display method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108211362A (en) * 2017-12-26 2018-06-29 浙江大学 A kind of non-player role fight policy learning method based on depth Q learning networks
CN108939553A (en) * 2018-06-27 2018-12-07 朱轶卿 The method of adjustment and device of the attribute data of game role

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108211362A (en) * 2017-12-26 2018-06-29 浙江大学 A kind of non-player role fight policy learning method based on depth Q learning networks
CN108939553A (en) * 2018-06-27 2018-12-07 朱轶卿 The method of adjustment and device of the attribute data of game role

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
RAYXX: "《明日之后天气信息详解》", 《HTTPS://M.9K9K.COM/MINGRIZHHOU/GL/102087.HTML》 *
ZZPB001001: "明日之后健康值有什么用,只是作用是什么,恢复的方法我知道,求各位明日玩家解答", 《HTTPS://M.WENDA.SO.COM/Q/1542557431216624》 *
互联网: "《《明日之后》怎么躲避暴风雪,暴风雪御寒技巧分享》", 《HTTPS://A.9GAME.CN/NEWS/2696843.HTML》 *
互联网: "《刺激战场》动态天气***讲解,动态天气***玩法攻略", 《HTTPS://A.9GAME.CN/NEWS/2423279.HTML》 *
竞核: "《明日之后》评测:人民币玩家的自由杀戮世界", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/49154160》 *
趣趣手游网: "明日之后感冒感染冻伤怎么办,负面状态解除途径一览", 《HTTPS://M.QUQUYOU.COM/DHSURVIVE/59464.HTML》 *
逍遥子: "《明日之后下雨怎么生火?下雨天的时候如何生火呢?》", 《HTTPS://M.WANDOUJIA.COM/STRATEGY/7724105/A_8466357551545413274.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110339564A (en) * 2019-08-16 2019-10-18 腾讯科技(深圳)有限公司 Virtual objects display methods, device, terminal and storage medium in virtual environment
CN110801628A (en) * 2019-10-30 2020-02-18 腾讯科技(深圳)有限公司 Method, device, equipment and medium for controlling virtual object to restore life value
CN111013142A (en) * 2019-11-19 2020-04-17 腾讯科技(深圳)有限公司 Interactive effect display method and device, computer equipment and storage medium
CN111013142B (en) * 2019-11-19 2021-10-12 腾讯科技(深圳)有限公司 Interactive effect display method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109731333B (en) 2023-02-10

Similar Documents

Publication Publication Date Title
CN108888956B (en) Display method, equipment and storage medium of virtual backpack display interface
CN110755841B (en) Method, device and equipment for switching props in virtual environment and readable storage medium
US11656755B2 (en) Method and apparatus for controlling virtual object to drop virtual item and medium
CN110427111A (en) The operating method of virtual item, device, equipment and storage medium in virtual environment
US20210387087A1 (en) Method for controlling virtual object and related apparatus
CN109126129A (en) The method, apparatus and terminal that virtual objects are picked up in virtual environment
CN108434736A (en) Equipment display methods, device, equipment and storage medium in virtual environment battle
CN110613938B (en) Method, terminal and storage medium for controlling virtual object to use virtual prop
CN109350964A (en) Control method, apparatus, equipment and the storage medium of virtual role
CN110413171A (en) Control method, apparatus, equipment and medium that virtual objects carry out prompt operation
CN109045695A (en) Accessory selection method, equipment and storage medium in virtual environment
JP2022517337A (en) How to control a virtual object to mark a virtual item and its equipment and computer program
CN108815851A (en) Interface display method, equipment and storage medium when being shot in virtual environment
CN111659119B (en) Virtual object control method, device, equipment and storage medium
CN111330274B (en) Virtual object control method, device, equipment and storage medium
CN110755844B (en) Skill activation method and device, electronic equipment and storage medium
CN110465098A (en) Control method, apparatus, equipment and medium that virtual objects use virtual item
CN110478904B (en) Virtual object control method, device, equipment and storage medium in virtual environment
CN109731333A (en) Application method, equipment and the storage medium of virtual environment
CN110448905B (en) Virtual object control method, device, equipment and storage medium in virtual environment
CN111744186A (en) Virtual object control method, device, equipment and storage medium
CN111475029A (en) Operation method, device, equipment and storage medium of virtual prop
CN111249726B (en) Operation method, device, equipment and readable medium of virtual prop in virtual environment
CN110448908A (en) The application method of gun sight, device, equipment and storage medium in virtual environment
CN110448907A (en) The display methods of virtual element, device and readable storage medium storing program for executing in virtual environment

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