WO2019105352A1 - Procédé et dispositif de rafraichissement des bases de ressources dans une carte virtuelle et support de stockage - Google Patents

Procédé et dispositif de rafraichissement des bases de ressources dans une carte virtuelle et support de stockage Download PDF

Info

Publication number
WO2019105352A1
WO2019105352A1 PCT/CN2018/117769 CN2018117769W WO2019105352A1 WO 2019105352 A1 WO2019105352 A1 WO 2019105352A1 CN 2018117769 W CN2018117769 W CN 2018117769W WO 2019105352 A1 WO2019105352 A1 WO 2019105352A1
Authority
WO
WIPO (PCT)
Prior art keywords
map block
resource
map
refresh
level
Prior art date
Application number
PCT/CN2018/117769
Other languages
English (en)
Chinese (zh)
Inventor
潘弋
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2019105352A1 publication Critical patent/WO2019105352A1/fr

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5378Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for displaying an additional top view, e.g. radar screens or maps
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games

Definitions

  • the embodiments of the present invention relate to the field of computers, and in particular, to a method, an apparatus, and a storage medium for refreshing resource points on a virtual map.
  • Simulation Game is a game that provides several resource bases on a virtual map for players to collect virtual resources on resource sites to upgrade and develop their own building objects.
  • the refreshing method for the resource site on the virtual map is generally: refreshing each resource site on the virtual map in a preset manner every predetermined time period, and the preset manner is used to indicate that each resource site is evenly distributed in the virtual In the map, the player collects virtual resources on the resource base by dispatching virtual game characters in the building object.
  • the embodiment of the present invention provides a method, a device, and a storage medium for refreshing resource points on a virtual map, which can solve the problem that the refreshing efficiency of resource points in the related art is low.
  • the technical solution is as follows:
  • a method for refreshing a resource site on a virtual map comprising:
  • a method for refreshing a resource site on a virtual map comprising:
  • the first user interface includes a building object and a resource base on the map block when the virtual game character moves to the map block, and the map block corresponds to an area in the virtual map;
  • the first user interface is different from the number of bases and/or the level of the resource points of the resource points in the second user interface.
  • a refreshing device for a resource base on a virtual map which is disposed on the terminal, and the device includes:
  • An obtaining module configured to acquire attribute data of a building object in a map block, where the map block corresponds to an area in the virtual map, and the attribute data is used to indicate a current distribution of the building object in the map block ;
  • a determining module configured to determine, according to attribute data of the building object, refresh data of the resource site in the map block, where the refresh data is used to indicate a distribution of the resource site in the map block after refreshing ;
  • a refreshing module configured to refresh the resource base in the map block according to the refresh data.
  • a refreshing device for a resource base on a virtual map which is disposed on the terminal, and the device includes:
  • a first display module configured to display a first user interface, where the first user interface includes a building object and a resource base on the map block when the virtual game character moves to the map block, where the map block corresponds to the virtual map An area in the middle;
  • a refreshing module configured to refresh the resource base on the map block after detecting a change of the architectural object on the map block
  • a second display module configured to display a second user interface, where the second user interface includes a changed architectural object and a refreshed resource base on the map block when the virtual game character is located in the map block;
  • the first user interface is different from the number of bases and/or the level of the resource points of the resource points in the second user interface.
  • a terminal comprising a processor and a memory, the memory storing at least one instruction, the at least one instruction being loaded and executed by the processor to implement the first aspect or the second A refresh method for a resource site on a virtual map provided by the aspect.
  • a computer readable storage medium having stored therein at least one instruction loaded by the processor and executed to implement the first aspect or the second aspect A refresh method provided for a resource site on a virtual map.
  • the distribution is based on adaptive refreshing, which avoids the situation that the resource bases are evenly distributed on the virtual map in the related art, resulting in low refresh efficiency of the resource bases, reducing the refresh of the invalid resource bases, and improving the refreshing efficiency of the resource bases.
  • FIG. 1 is a schematic diagram of a virtual map provided in the related art
  • FIG. 2 is a schematic diagram of a virtual map provided by an exemplary embodiment of the present application.
  • FIG. 3 is a flowchart of a method for refreshing a resource site on a virtual map according to an embodiment of the present application
  • FIG. 4 is a flowchart of a method for refreshing a resource site on a virtual map according to another embodiment of the present application
  • FIG. 5 is a schematic diagram of a correspondence relationship between a total number of buildings and a total number of target sites according to another embodiment of the present application;
  • FIG. 6 is a flowchart of a method for refreshing a resource site on a virtual map according to another embodiment of the present application.
  • FIG. 7 is a schematic diagram of attribute data of a building object according to another embodiment of the present application.
  • FIG. 8 is a schematic diagram of a correspondence relationship between a building level range and a site level range according to another embodiment of the present application.
  • FIG. 9 is a flowchart of a method for refreshing a resource site on a virtual map according to another embodiment of the present application.
  • FIG. 10 is a schematic diagram of a correspondence relationship between a site level, a preset weight, and a second preset ratio according to another embodiment of the present application;
  • FIG. 11 is a schematic diagram of a principle for refreshing a resource site on a virtual map according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of an interface for refreshing a resource site on a virtual map according to an embodiment of the present application.
  • FIG. 13 is a flowchart of a method for refreshing a resource site on a virtual map according to another embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a refreshing apparatus for a resource base on a virtual map according to an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a refreshing apparatus for a resource base on a virtual map according to another embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a refreshing apparatus for a resource base on a virtual map according to another embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 18 is a schematic structural diagram of a server according to an embodiment of the present application.
  • Map block Corresponds to an area in the virtual map.
  • a virtual map can be divided into at least two map tiles.
  • the shape and size of each map block can be the same or different.
  • the virtual map may be a two-dimensional virtual map, or may be a 2.5D virtual map, or may be a three-dimensional virtual map. This embodiment of the present application does not limit this.
  • the virtual map is used as a three-dimensional virtual map, and the virtual map is used to display the geographical features of the three-dimensional virtual environment as an example for description.
  • the three-dimensional virtual environment is a three-dimensional virtual environment provided when the application runs on the terminal.
  • the three-dimensional virtual environment may be a real-world simulation environment, a semi-simulated semi-fiction environment, or a purely fictitious environment.
  • the map block includes at least one building object and/or at least one resource site.
  • the architectural object is a map point for manufacturing, camping, and/or training virtual game characters.
  • the building object is a city.
  • a resource base is a map point used to provide virtual resources.
  • the resource base can be a virtual farmland, a virtual iron mine, a virtual wood mine, and the like.
  • Attribute data of the building object used to indicate the current distribution of the building object in the map block.
  • the attribute data of the building object includes the total number of buildings currently in the map block.
  • the attribute data also includes the current building level range in the map block.
  • the building grade range includes n different building grades, and n is a positive integer.
  • the attribute data further includes: a number of buildings corresponding to each of the n building levels in the map block.
  • Refresh data of the resource base used to indicate the distribution of the resource bases in the map block after refreshing.
  • the refresh data of the resource base includes the total number of target sites in the map block.
  • the refresh data also includes a range of location levels in the map block.
  • the base level range includes m different base levels, and m is a positive integer.
  • the refreshing data further includes: the number of the corresponding points of the m location levels in the map block.
  • the total number of the target sites, the site level range, and the number of the data points corresponding to the m site levels are all refreshed data of the resource sites in the map block.
  • the total number of target sites does not refer to the resource sites in the map block.
  • the total number of current resource sites, but the total number of resource sites in the map block after the resource sites are refreshed.
  • the terminal in the present application may be a mobile phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, and a motion picture expert compressing a standard audio layer 4 (Moving Picture) Experts Group Audio Layer IV, MP4) Players, laptops and desktop computers, etc.
  • An application supporting a 3D virtual environment is installed and running in the terminal.
  • the application can be a virtual reality application, a three-dimensional map program, a military simulation program, a Third-Personal Shooting (TPS) game, a First-Person Shooting (FPS) game, a multiplayer gun battle survival game. Any of them.
  • At least one building object 14 and a plurality of resource points 16 are included in the virtual map 10.
  • a plurality of resource sites 16 are evenly distributed on the virtual map 10, that is, the distance between any two resource sites 16 of the plurality of resource sites 16 is the same.
  • the terminal refreshes each resource site 16 on the virtual map 10 in a preset manner every predetermined time period.
  • the preset manner is used to indicate that each resource site 16 is evenly distributed in the virtual map 10, so that the player sends the building object 14
  • the virtual game character collects virtual resources on the resource site 16.
  • the refreshing method of 16 does not consider the distribution of the building object 14.
  • the refreshed virtual map 10 still has a plurality of resource points 16 uniformly distributed, so that the number of resource points is far greater than the number of building objects, that is, part of the resource points 16 As an invalid resource base, the setting and continuous refresh of some invalid resource bases wastes the computing resources of the terminal, resulting in low efficiency of resource base refresh.
  • the distribution of the resource points that need to be refreshed in the map block is adaptively determined based on the current distribution of the building objects in the map block, thereby avoiding the resource points uniformly distributed in the virtual technology in the related art.
  • the situation that the refreshing efficiency of the resource base is low on the map enables the resource base to adaptively refresh based on the current distribution of the building object, which greatly reduces the refresh of the invalid resource base and improves the refreshing efficiency of the resource base.
  • FIG. 2 shows a schematic diagram of a virtual map 20 provided by an embodiment of the present application.
  • the virtual map 20 is divided into K map blocks 22, K being a positive integer or a positive integer greater than one.
  • the size of at least two map blocks 22 in the K map blocks 22 is the same, or the sizes of any two map blocks 22 are different, or the sizes of any two map blocks 22 are the same.
  • the map block 22 in which at least one map block 22 exists in the K map blocks 22 has a predetermined shape including at least one of a rectangle, a triangle, a circle, and an ellipse. This embodiment does not limit this. In the following, only K map tiles 22 having the same size and K rectangular map blocks 22 will be described as an example.
  • each map block 22 is of a predetermined size, and the predetermined size includes a predetermined length and a predetermined width.
  • each map block 22 is a rectangular area of 20*20.
  • the number of bases of the resource points 26 in the at least two map blocks 22 in the K map blocks 22 is different, and/or the base level ranges in the at least two map blocks 22 in the K map blocks 22 are different. .
  • the map block 22 in the embodiment of the present application is any one of the K map blocks 22. At least one building object 24 and/or at least one resource site 26 is included in map block 22.
  • the building object 24 is schematically represented by a triangular shape
  • the resource base 26 is schematically represented by a circular shape.
  • the embodiment of the present application is directed to the building object 24
  • the actual shape of the resource base 26 is not limited.
  • FIG. 3 is a flowchart of a method for refreshing a resource site on a virtual map according to an embodiment of the present application. This embodiment is used as an example for the virtual map 20 shown in FIG. 2 .
  • the method includes:
  • Step 301 Acquire attribute data of the architectural object in the map block, where the map block corresponds to an area in the virtual map, and the attribute data is used to indicate the current distribution of the architectural object in the map block.
  • the terminal determines a map block to be refreshed from the virtual map, and acquires attribute data of the architectural object in the map block.
  • the terminal divides the virtual map according to a predetermined size to obtain K map blocks, and the total number of the map blocks is K, and the map block to be refreshed from the virtual map includes but is not limited to the following two possible ways:
  • a possible method for determining the terminal randomly selects one of the K map blocks and determines the map block as the map block to be refreshed.
  • Another possible method of determining the terminal numbers the K map blocks, and determines one of the map blocks as the map block to be refreshed according to the number from small to large, that is, sequentially refreshes. This embodiment does not limit the manner in which the map block is determined.
  • the terminal acquires attribute data of the architectural object in the map block every predetermined refresh interval.
  • the predetermined refresh time interval is a value set in advance for cyclic refresh.
  • the refresh interval is 45 minutes or 1 hour. This embodiment does not limit this.
  • the attribute data of the building object is used to indicate the current distribution of the building object in the map block.
  • the attribute data of the building object is used to indicate the level and/or number of building objects included in the map block.
  • the attribute data of the building object includes at least one of the current total number of buildings in the map block, the current building level range in the map block, and the number of buildings corresponding to each of the n different building levels.
  • Step 302 Determine refresh data of the resource base in the map block according to the attribute data of the building object, where the refresh data is used to indicate the distribution of the resource base in the map block after the refresh.
  • the terminal determines, according to the attribute data of the building object, the refresh data of the resource base in the map block by using a preset refresh relationship, where the preset refresh relationship is used to indicate the correspondence between the attribute data and the refresh data.
  • the preset refresh relationship refer to the related description in the following embodiments, which will not be introduced here.
  • the refresh data of the resource base is used to indicate the distribution of the resource bases in the map block after refreshing.
  • the refresh data of the resource base is used to indicate the level and/or quantity of the resource points included in the map block.
  • the refresh data of the resource base includes the total number of target sites of the resource sites in the map block and/or the site level range of the resource sites in the map block.
  • Step 303 Refresh the resource base in the map block according to the refresh data.
  • the terminal refreshes the resource base in the map block according to the refresh data, and obtains the refreshed map block.
  • the refreshed map block includes at least two resource points, and at least two resource points are randomly distributed or evenly distributed in the refreshed map block.
  • the position of at least two resource points in the refreshed map block is not limited.
  • the terminal refreshes the resource points in the map block according to the total number of target sites of the resource points in the map block, and obtains the refreshed map block.
  • the number of resource points in the refreshed map block is the total number of target sites. .
  • the total number of target sites of the resource points in the map block A is 10, and the terminal refreshes the resource points in the map block A, and the number of resource points in the map block A to be refreshed is adjusted to 10.
  • the K map blocks in the virtual map block may be refreshed at the same time, or at least two map blocks may be refreshed at the same time, or any two map blocks in the K map blocks are refreshed at different times, that is, Each of the K map tiles is refreshed one by one.
  • the refreshing of each of the K map tiles one by one will be described below as an example.
  • the embodiment obtains the attribute data of the building object in the map block, determines the refresh data of the resource base in the map block according to the attribute data of the building object, and refreshes the resource base in the map block according to the refresh data;
  • the terminal can determine the distribution of the resource points that need to be refreshed in the map block based on the current distribution of the building objects in the map block, and avoid the fact that the resource points are evenly distributed on the virtual map in the related art, resulting in low refresh efficiency of the resource points.
  • the situation further enables the resource base to adaptively refresh based on the current distribution of the building object, greatly reducing the refresh of the invalid resource base and improving the refreshing efficiency of the resource base.
  • FIG. 4 is a flowchart of a method for refreshing a resource site on a virtual map according to an embodiment of the present application. This embodiment is used as an example for the virtual map 20 shown in FIG. 2 .
  • the method includes:
  • step 401 it is detected whether the current refresh countdown is over.
  • the terminal presets a refresh countdown according to a predetermined refresh time interval.
  • the refresh countdown is a cycle countdown, that is, when the refresh countdown ends, the countdown is restarted again.
  • the terminal presets the refresh countdown according to the predetermined refresh time interval, including: the terminal sets the value of the refresh countdown to a predetermined refresh time interval.
  • the predetermined refresh time interval is a value set in advance for cyclic refresh.
  • the scheduled refresh interval can be user-defined or set by the terminal. This embodiment does not limit this.
  • the terminal detects whether the current refresh countdown ends in real time, or detects whether the current refresh countdown ends every predetermined detection time interval.
  • the refresh countdown is 45 minutes or 1 hour
  • the predetermined detection interval is 30 seconds or 1 minute.
  • the values of the refresh countdown and the predetermined detection time interval are not limited in this embodiment.
  • step 402 When the terminal detects that the current refresh countdown is "0 minutes and 0 seconds", step 402 is performed; when the terminal detects that the current refresh countdown has not ended, step 401 is continued.
  • Step 402 When the refresh countdown ends, the virtual map is divided according to a predetermined size.
  • the terminal divides the virtual map according to a predetermined size to obtain K map blocks.
  • K map blocks are numbered, and K map blocks are numbered from “0" to "K-1".
  • step 403 the total number K of map blocks into which the virtual map is divided is counted.
  • the terminal statistics show that the total number of map blocks into which the virtual map is divided is K.
  • step 402 to step 403 may be performed after step 401, or may be performed before step 401, that is, the terminal first divides the virtual map according to a predetermined size, and counts the total number of map blocks into which the virtual map is divided, and then It is detected whether the current refresh countdown is over. When the refresh countdown ends, step 404 is performed.
  • step 404 the i-th map block is determined to be the refreshed map block, and the initial value of i is 0.
  • the terminal determines the i-th map block as the map block that is refreshed this time.
  • Step 405 Acquire a total number of current buildings in the map block.
  • the terminal detects the current building object in the map and obtains the current total number of buildings in the map block.
  • Step 406 Obtain a total number of target sites in the map block according to the total number of buildings and the first preset refresh relationship, where the first preset refresh relationship is used to indicate a correspondence between the total number of buildings and the total number of target sites.
  • the terminal obtains the total number of target sites in the map block according to the total number of buildings, including but not limited to the following two possible implementation manners.
  • the terminal pre-stores a correspondence between the total number of buildings and the total number of target sites, and the terminal searches for the total number of target sites corresponding to the total number of buildings according to the correspondence.
  • the correspondence is shown in FIG. 5.
  • the total number of buildings is “8”
  • the total number of target sites corresponding to "7” the total number of target sites is "10”
  • the total number of target sites is "10”
  • the total number of buildings is "10”.
  • the total number of target sites corresponding to the time is "11”.
  • the current total number of buildings is 10
  • the total number of target sites corresponding to the total number of buildings “10” by the terminal is “11”.
  • the terminal presets a first preset ratio, and when the terminal acquires the current total number of buildings in the map block, multiplies the total number of buildings by the first preset ratio to obtain a map block. The total number of target locations.
  • the terminal multiplies the total number of buildings by the first preset ratio by “10*120%”, and the total number of target sites in the map block is obtained. 12.
  • Step 407 refreshing the resource points in the map block according to the total number of target sites.
  • the terminal refreshes the resource points in the map block according to the total number of target sites, and obtains the refreshed map block.
  • the number of resource points in the refreshed map block is the total number of target sites.
  • the terminal acquires the total number of current target sites of the resource points in the map block, and determines the number of sites that need to be increased or decreased according to the total number of current target sites and the total number of target sites of the resource sites, and the resource sites in the map block. Refresh.
  • the total number of current target sites of the resource base in the map block A is 7 and the total number of target sites is 10.
  • the terminal determines that three resource bases need to be added to refresh the resource bases in the map block A, that is, the map block.
  • the number of resource sites in A is increased by three.
  • step 408 after i is incremented by 1, it is judged whether i is smaller than K.
  • the terminal After the terminal adds i to 1, it determines whether i is less than K.
  • step 404 that is, the step of determining the i-th map block as a map block.
  • i 0, K is 8, and i is incremented by 1 to get 1, and when it is judged that 1 is less than 8, the step of determining the first map block as a map block is performed.
  • step 401 is restarted, that is, the step of detecting whether the current refresh countdown is completed in real time.
  • i 7
  • K 8
  • i is incremented by 1 to obtain 8
  • the step of real-time detecting whether the current refresh count is over is restarted.
  • the embodiment of the present application further obtains the total number of target sites in the map block according to the total number of buildings and the first preset refresh relationship, and refreshes the resource bases in the map block according to the total number of target sites;
  • the total number of target sites of the resource points in the map block that need to be refreshed can be determined based on the total number of buildings in the map block, so that the number of resource points in the refreshed map block is substantially equal to the number of building objects, and the resources are improved.
  • the refresh rate of the base is based on the total number of buildings in the map block, so that the number of resource points in the refreshed map block is substantially equal to the number of building objects, and the resources are improved.
  • the attribute data further includes: the current building level range in the map block and the number of buildings corresponding to each of the n building levels, the above steps 405 to 407 can be replaced by the following steps, as shown in FIG. 6 :
  • step 601 the current total number of buildings in the map block and the current building level range are obtained.
  • the terminal acquires attribute data of the building object, where the attribute data includes a current total number of buildings in the map block and a building level range to which the current plurality of building objects belong, and the building level range includes n different building levels.
  • n different building grades are n consecutive different building grades or n discontinuous and different building grades.
  • the terminal acquires the current building level range in the map block as "10-18", and the building level range "10-18" includes 9 consecutive different building levels.
  • the terminal obtains the current building level range in the map block as “10-18”, and the building level range “10-18” includes five discontinuous building grades, respectively, the building level “10” and the building level “ 12", building level “13", building level “16” and building level “18".
  • the terminal acquires attribute data of the building object, where the attribute data further includes a number of buildings corresponding to each of the n building levels.
  • the attribute data of the building object acquired by the terminal is as shown in FIG. 7.
  • the map block includes five different building levels, namely building level “10", building level “12", building level “13", building level “16” and building level “18";
  • the number of buildings with a building level of "10” is "2", the number of buildings with a building level of "12” is “8”, and the number of buildings with a building level of "13” is "6".
  • the number of buildings with a building level of "16” is "3", and the number of buildings with a building level of "18” is "7".
  • Step 602 Obtain a total number of target sites in the map block according to the total number of buildings and the first preset refresh relationship, where the first preset refresh relationship is used to indicate a correspondence between the total number of buildings and the total number of target sites.
  • the related details of the total number of the target sites in the map block are obtained by the terminal according to the total number of the buildings and the first preset refresh relationship. For details, refer to the description in the foregoing embodiment, and details are not described herein again.
  • Step 603 According to the building level range, the second preset refresh relationship is used to obtain the location level range of the resource base in the map block, and the second preset refresh relationship is used to indicate the correspondence between the building level range and the base level range.
  • step 603 may be performed before step 602 or may be performed in parallel with step 602. This embodiment of the present application does not limit this.
  • the terminal obtains the location level range of the resource base in the map block according to the range of the building level, including but not limited to the following two possible implementation manners.
  • the terminal pre-stores a correspondence between a building level range and a site level range, and the terminal searches for a site level range corresponding to the building level range according to the correspondence.
  • the correspondence is as shown in FIG. In Figure 8, when the building level range is “1-9", the corresponding base level range is “2-10", and when the building level range is “10-18", the corresponding base level range is "11-19", the building When the level range is "19-27”, the corresponding base level range is "20-28".
  • the current building level range is “10-18”, and the terminal search is corresponding to the building level range “10-18”. "11-19”.
  • the terminal presets a preset threshold, and when the terminal acquires the number of buildings corresponding to each of the n building levels and the n building levels, each building level and the building of the n building levels are The product of the number of buildings of the rank is summed to obtain the first sum value; the first sum value is divided by the total number of buildings and rounded to obtain a grade evaluation value; the grade evaluation value is subtracted from the preset threshold value to obtain a grade minimum value And adding the level evaluation value to the preset threshold to obtain a level maximum value; according to the level minimum value and the level maximum value, obtaining a base level range of the resource base in the map block.
  • the level evaluation value is an average value of current building levels in the map block evaluated by the terminal, and the level evaluation value is used to indicate a concentrated trend of building levels of the plurality of building objects in the map block.
  • zone_level is used to indicate the rating value.
  • the preset threshold is set by the user or is set by the terminal by default.
  • the preset threshold is a positive integer greater than one.
  • 14.
  • zone_level
  • 14.
  • Step 604 refreshing the resource points in the map block according to the total number of target sites and the level of the site.
  • the terminal determines m different site levels according to the site level range, and refreshes the resource sites in the map block according to the total number of target sites and m site levels.
  • the terminal refreshes the resource points in the map block according to the total number of target sites and the m-site levels, and obtains the refreshed map block.
  • the number of resource points in the refreshed map block is the total number of target sites, and
  • the location level range in the refreshed map block includes m location levels.
  • m different spot levels are m consecutive different spot levels or m discontinuous and different spot levels.
  • the terminal determines 5 consecutive different spot levels according to the site level range "12-16".
  • the terminal randomly determines three discontinuous and different spot levels according to the site level range "12-16", which are the site level “13", the site level "15”, and the site level "16".
  • the terminal randomly determines the number of the corresponding data points of the m base level according to the total number of target sites and the number of the data points, so as to refresh the resource points in the map block.
  • the terminal refreshes the resource points in the map block to obtain the refreshed map block.
  • the number of resource points in the refreshed map block is the total number of target sites, and the resource points in the refreshed map block include m At least one site corresponding to each of the site levels.
  • the terminal randomly determines the number of base points corresponding to each of the five base level according to the total number of target sites "26" and five base levels, that is, the number of bases of the base level "12" is 2, and the number of bases of the base level "13" 3, the number of bases of the site level “14” is 5, the number of sites of the site level "15” is 10, and the number of sites of the site level “16” is 6.
  • the terminal refreshes the resource base in the map block to obtain the refreshed map block.
  • the number of resource bases in the refreshed map block is “26”, and the resource base in the refreshed map block includes two base levels of “12”.
  • the embodiment further obtains the location level range of the resource base in the map block according to the construction level range, and uses the second preset refresh relationship to select the resource level in the map block according to the total number of the target bases and the base level range. Refreshing the data base; enabling the terminal to determine the location level range of the resource bases to be refreshed in the map block based on the building level range in the map block, so that the building level range in the refreshed map block is substantially equal to the base level range, and the pair is improved.
  • the number of the corresponding data points corresponding to the m-point level randomly determined by the terminal has great randomness, and the proportion of each of the base points in the total number of target sites is not necessarily suitable, in order to be able to be more The proportion of the number of the bases in the total number of the target sites is determined.
  • the above steps 601 to 604 further include the following steps, as shown in FIG. 9 :
  • Step 901 The terminal acquires attribute data of the architectural object in the map block, where the attribute data includes the current total number of buildings, n building levels, and n building levels respectively corresponding to the number of buildings.
  • Step 902 The terminal obtains a total number of target sites in the map block according to the total number of buildings and the first preset refresh relationship, where the first preset refresh relationship is used to indicate a correspondence between the total number of buildings and the total number of target sites.
  • Step 903 The terminal obtains a base level range of the resource base in the map block according to the building level range, and uses a second preset refresh relationship to indicate a correspondence between the building level range and the base level range.
  • the site level range includes m different site levels.
  • step 904 the terminal obtains the proportion of each of the m location levels according to the m location level and the third preset refresh relationship, and the third preset refresh relationship is used to indicate the correspondence between the site level and the quantity ratio.
  • the terminal obtains the proportion of each of the m location levels according to the m location level and the third preset refresh relationship, including: for each of the m site levels, the preset weight corresponding to the site level and the first The two preset ratios are multiplied to obtain the product value of the site level, and the product values corresponding to the m site levels are summed to obtain a second sum value, and for each of the m site levels, the site level is The product value is divided by the second sum value to obtain the proportion of the number of the site levels.
  • the terminal pre-stores a correspondence between the location level, the preset weight, and the second preset ratio, and the terminal searches for the preset weight and the second preset ratio corresponding to the location level according to the correspondence.
  • the correspondence is as shown in FIG.
  • the preset weight corresponding to the point level “10” is “0.4”
  • the corresponding second preset ratio is “60%”
  • the preset weight corresponding to the point level “11” is “0.6”
  • corresponding to The second preset ratio is “80%”
  • the preset weight corresponding to the point level “12” is “0.5”
  • the corresponding second preset ratio is “120%”.
  • the site level is “10”.
  • the formula is calculated by the formula: 0.4*60%/(0.4*60%+0.6*80%+0.5*120%), and the number of the base level "10" is calculated.
  • step 905 the terminal obtains the number of bases corresponding to each of the m location levels according to the proportion of the total number of the target sites and the number of the respective site levels.
  • the total number of target sites is 100, the number of sites at the level of “10” is 19%, the number of sites at “10” is 36%, and the number of sites at “10” is 45%.
  • step 906 the terminal refreshes the resource points in the map block according to the number of the corresponding points of the m location levels.
  • the terminal refreshes the resource points in the map block according to the number of the corresponding data points of the m site levels, and the number of resource sites in the refreshed map block is the total number of target sites, and the total number of target sites includes m site levels respectively.
  • the number of strongholds are the number of strongholds.
  • the building object is a city pool, as shown in FIG.
  • the map block 110 originally includes two city pools 111 and two resource bases 112, and then there is a city pool 113 for migration, and moves into the map block 111.
  • the terminal acquires the total number of current city pools in the map block 110. 3, and according to the detected city level of the three cities, the current city pool level in the map block 110 is "10-11", that is, the number of cities including the three city pools and the city level "10" is 2.
  • the number of cities with a city level of “11” is “1”.
  • the terminal determines that the total number of target sites is "3" according to the current total number of cities, "3"; according to the number of cities corresponding to the two city pool levels and the two city pool levels, it is determined that the two site levels and the two site levels correspond to each other.
  • the number of bases that is, the number of cities with a site level of "11” is 2, and the number of cities with a site level of "12" is "1".
  • the terminal obtains the data level of the current two resource points 112 in the map block 110 as the site level "9” and the site level "10", respectively, so that the terminal determines the data according to the acquired data when starting the refresh.
  • the refresh data is adjusted to the current two resource points 112 to two resource sites 114 whose site levels are all "11", and a resource site 114 having a site level of "12" is added to the map block 110.
  • a schematic diagram of the interface of the refreshed map block 110 is shown in FIG.
  • the product value of the site level is obtained;
  • the product values corresponding to the levels are summed to obtain a second sum value; for each of the m point levels, the product value of the site level is divided by the second sum value to obtain the proportion of the number of the site levels;
  • the terminal determines that the proportion of the number of m points in the total number of target sites is more rationalized, and avoids randomly determining the proportion of the plurality of site levels in the map block may lead to poor refreshing effect, further ensuring the map.
  • the refresh effect of the resource base in the block is performed by multiplying the preset weight corresponding to the site level by the second preset ratio for each of the m site levels.
  • FIG. 13 is a flowchart of a method for refreshing a resource site on a virtual map according to another embodiment of the present application.
  • This embodiment uses the method for the virtual map 20 shown in FIG. 2 as an example. To illustrate, the method includes:
  • Step 1301 Display a first user interface, where the first user interface includes a building object and a resource base on the map block when the virtual game character moves to the map block, and the map block corresponds to an area in the virtual map.
  • an application supporting the 3D virtual environment is installed and running in the terminal.
  • the terminal displays the first user interface in an application supporting the three-dimensional virtual environment.
  • an application that supports a three-dimensional virtual environment is a game application.
  • the first user interface includes an environment picture when the virtual game character observes the three-dimensional virtual environment in a first view direction.
  • the environment picture includes at least one architectural object and at least one resource base on the map block.
  • the first viewing angle direction is a viewing angle direction observed according to a first person perspective of the virtual object or a third person perspective around the virtual object.
  • Step 1302 After detecting that a change occurs in the architectural object on the map block, refresh the resource base on the map block.
  • the terminal detecting whether the architectural object on the map block changes may include: the terminal detecting whether the number of buildings of the building object on the map block changes, and/or detecting whether the building level of the building object on the map block changes, and And/or, the terminal detects whether the number of buildings corresponding to each of the plurality of building levels of the building object on the map block changes.
  • the resource base on the map block is refreshed when the refresh instruction is detected.
  • the process of refreshing the resource site on the map block may refer to the foregoing embodiment, when the refresh countdown ends, determining the refresh of the resource site in the map block according to the attribute data of the building object.
  • the process of refreshing the resource points in the map block according to the refresh data is not described here.
  • Step 1303 displaying a second user interface, where the second user interface includes the changed architectural object on the map block and the refreshed resource base when the virtual game character is located in the map block, where the first user interface and the second user interface are The number of locations and/or the level of the locations of the resource locations are different.
  • the second user interface is displayed, and the second The user interface includes the changed building objects on the map block and the refreshed resource points.
  • the number of buildings and/or the building level of the building object in the first user interface and the second user interface are different, and the number of bases and/or the points of the resource points in the first user interface and the second user interface are different.
  • the levels are different.
  • the map is The resource base on the block is refreshed, and after refreshing, the second user interface is displayed, and the number of bases and/or the level of the resource points of the first user interface and the second user interface are different; so that the terminal can be based on the changed building
  • the object adaptively refreshes the resource bases in the map block, thereby avoiding the situation that the resource bases are uniformly distributed on the virtual map in the related art, resulting in low refresh efficiency of the resource bases, greatly reducing the refresh of the invalid resource bases, and improving the resource bases. Refresh efficiency.
  • FIG. 14 is a schematic structural diagram of a refreshing apparatus for a resource point on a virtual map according to an embodiment of the present application.
  • the refreshing device for the resource site on the virtual map may be implemented as a whole or a part of the refreshing device by using a dedicated hardware circuit or a combination of software and hardware.
  • the refreshing device for the resource site on the virtual map includes: an obtaining module 1210, determining Module 1220 and refresh module 1230.
  • the obtaining module 1210 is configured to implement at least one of the foregoing steps 301, 405, 601, and 901.
  • the determining module 1220 is configured to implement at least one of the foregoing steps 302, 406, 602, 603, 902, and 903.
  • the refresh module 1230 is configured to implement at least one of the foregoing steps 303, 407, and 604.
  • the building level range includes n different building levels, and the attribute data further includes: the number of buildings corresponding to each of the n building levels, n Is a positive integer;
  • the determining module 1220 further includes: a first processing unit 1221, a second processing unit 1222, and a third processing unit 1223;
  • the first processing unit 1221 is configured to sum product products of each of the n building levels and the number of buildings of the building level to obtain a first sum value; divide the first sum value by the total number of buildings and take Whole, get the grade evaluation value;
  • the second processing unit 1222 is configured to subtract the level evaluation value from the preset threshold to obtain a level minimum value, and add the level evaluation value to the preset threshold to obtain a level maximum value;
  • the third processing unit 1223 is configured to obtain a location level range of the resource base in the map block according to the level minimum value and the level maximum value.
  • the location level range includes m different location levels, and m is a positive integer;
  • the refreshing module 1230 further includes: a fourth processing unit 1231, a fifth processing unit 1232, and a refreshing unit 1233;
  • the fourth processing unit 1231 is configured to implement the above step 904.
  • the fifth processing unit 1232 is configured to implement the foregoing step 905.
  • the refreshing unit 1233 is configured to implement the above step 906.
  • the fourth processing unit 1231 is further configured to preset a preset corresponding to the site level for each of the m site levels. Multiplying the weight by the second preset ratio to obtain a product value of the site level; summing the product values corresponding to each of the m site levels to obtain a second sum value; for each of the m site levels, The product value of the site level is divided by the second sum value to obtain the proportion of the number of the site levels.
  • the obtaining module 1210 is further configured to implement any other implicit or disclosed function related to the obtaining step in the foregoing method embodiment;
  • the determining module 1220 is further configured to implement any other implicit or public and determining steps in the foregoing method embodiment.
  • the refresh module 1230 is further configured to implement any other implicit or publicly related functions related to the refreshing step in the foregoing method embodiments.
  • FIG. 16 is a schematic structural diagram of a refreshing apparatus for a resource site on a virtual map according to another embodiment of the present application.
  • the refreshing device for the resource site on the virtual map may be implemented as a whole or a part of the refreshing device by using a dedicated hardware circuit or a combination of software and hardware.
  • the refreshing device for the resource site on the virtual map includes: the first display module 1610 The refresh module 1620 and the second display module 1630.
  • the first display module 1610 is configured to implement the foregoing step 1301.
  • the refresh module 1620 is configured to implement the above step 1302.
  • the second display module 1630 is configured to implement the above step 1303.
  • the first display module 1610 and the second display module 1630 are further configured to implement any other implicit or disclosed function related to the display step in the foregoing method embodiment.
  • the refresh module 1620 is further configured to implement any other of the foregoing method embodiments. Implicit or publicly related functionality related to the refresh step.
  • a terminal comprising a processor and a memory, wherein the memory stores at least one instruction
  • the processor is configured to acquire attribute data of a building object in a map block, where the map block corresponds to an area in the virtual map, and the attribute data is used to indicate a current distribution of the building object in the map block;
  • the processor is further configured to determine refresh data of the resource base in the map block according to the attribute data of the building object, where the refresh data is used to indicate the distribution of the resource base in the map block after the refresh;
  • the processor is further configured to refresh the resource points in the map block according to the refresh data.
  • the attribute data includes the total number of buildings currently in the map block
  • the processor is further configured to obtain a total number of target sites in the map block according to the total number of buildings and the first preset refresh relationship, where the first preset refresh relationship is used to indicate a correspondence between the total number of buildings and the total number of target sites. relationship;
  • the processor is further configured to refresh the resource points in the map block according to the total number of target sites.
  • the attribute data further includes: a current building level range in the map block;
  • the processor is further configured to obtain a base level range of the resource base in the map block according to the building level range, and the second preset refresh relationship is used to indicate between the building level range and the base level range.
  • the processor is further configured to refresh the resource points in the map block according to the total number of target sites and the range of the site level.
  • the building level range includes n different building levels
  • the attribute data further includes: the number of buildings corresponding to each of the n building levels, and n is a positive integer;
  • the processor is further configured to sum product of each of the n building grades and the number of buildings of the building grade to obtain a first sum value; divide the first sum value by the total number of buildings and round up , get the grade evaluation value;
  • the processor is further configured to subtract the level evaluation value from the preset threshold to obtain a level minimum value, and add the level evaluation value to the preset threshold value to obtain a level maximum value;
  • the processor is further configured to obtain a range of the location level of the resource base in the map block according to the level minimum value and the level maximum value.
  • the location level range includes m different location levels, and m is a positive integer;
  • the processor is further configured to obtain, according to the m location level and the third preset refresh relationship, a proportion of the number corresponding to each of the m location levels, where the third preset refresh relationship is used to indicate between the location level and the quantity ratio.
  • the processor is further configured to obtain, according to the total number of the target sites and the number of the corresponding positions of the m site levels, the number of the sites corresponding to the m site levels;
  • the processor is further configured to refresh the resource points in the map block according to the number of the corresponding points of the m base levels.
  • the processor is further configured to multiply the preset weight corresponding to the site level by the second preset ratio for each of the m site levels to obtain a product value of the site level;
  • the product value corresponding to each of the point levels is summed to obtain a second sum value; for each of the m item levels, the product value of the spot level is divided by the second sum value to obtain the number of points of the spot level.
  • a terminal comprising a processor and a memory, wherein the memory stores at least one instruction
  • a processor configured to display a first user interface, where the first user interface includes a building object and a resource base on the map block when the virtual game character moves to the map block, and the map block corresponds to an area in the virtual map;
  • the processor is further configured to refresh the resource base on the map block after detecting a change of the architectural object on the map block;
  • the processor is further configured to display a second user interface, where the second user interface includes the changed architectural object and the refreshed resource base on the map block when the virtual game character is located in the map block;
  • the first user interface is different from the number of bases and/or the location of the resource points in the second user interface.
  • the processor is further configured to implement any other implied or disclosed functions related to the processing steps in the foregoing method embodiments.
  • the terminal may be the terminal 1400 provided in FIG. 17 as follows, or may be the server 1500 provided in FIG. 18 as follows.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores at least one instruction, and at least one instruction is loaded and executed by the processor to implement the virtual map provided by the foregoing method embodiments.
  • the refresh method of the resource base
  • FIG. 17 is a schematic structural diagram of a terminal 1400 according to an embodiment of the present application.
  • the terminal 1400 can be: a smartphone, a tablet, an MP3 player, an MP4 player, a laptop or a desktop computer. Terminal 1400 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, and the like.
  • the terminal 1400 includes a processor 1401 and a memory 1402.
  • Processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 1401 may be configured by at least one of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). achieve.
  • the processor 1401 may also include a main processor and a coprocessor.
  • the main processor is a processor for processing data in an awake state, which is also called a CPU (Central Processing Unit); the coprocessor is A low-power processor for processing data in standby.
  • the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and rendering of content that needs to be displayed on the display screen.
  • the processor 1401 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
  • AI Artificial Intelligence
  • Memory 1402 can include one or more computer readable storage media, which can be non-transitory.
  • the memory 1402 may also include high speed random access memory, as well as non-volatile memory such as one or more magnetic disk storage devices, flash memory storage devices.
  • the non-transitory computer readable storage medium in memory 1402 is configured to store at least one instruction for execution by processor 1401 to implement the methods provided by the method embodiments of the present application. The refresh method of the resource base on the virtual map.
  • the terminal 1400 optionally further includes: a peripheral device interface 1403 and at least one peripheral device.
  • the processor 1401, the memory 1402, and the peripheral device interface 1403 may be connected by a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 1403 via a bus, a signal line, or a circuit board.
  • the peripheral device includes at least one of a radio frequency circuit 1404, a touch display screen 1405, a camera 1406, an audio circuit 1407, a positioning component 1408, and a power source 1409.
  • Peripheral device interface 1403 can be used to connect at least one peripheral device associated with an I/O (Input/Output) to processor 1401 and memory 1402.
  • processor 1401, memory 1402, and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one of processor 1401, memory 1402, and peripheral interface 1403 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the RF circuit 1404 is configured to receive and transmit an RF (Radio Frequency) signal, also referred to as an electromagnetic signal.
  • Radio frequency circuit 1404 communicates with the communication network and other communication devices via electromagnetic signals.
  • the RF circuit 1404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal.
  • the radio frequency circuit 1404 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like.
  • the radio frequency circuit 1404 can communicate with other terminals via at least one wireless communication protocol.
  • the wireless communication protocols include, but are not limited to, the World Wide Web, a metropolitan area network, an intranet, generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks.
  • the RF circuit 1404 may also include NFC (Near Field Communication) related circuitry, which is not limited in this application.
  • the display 1405 is used to display a UI (User Interface).
  • the UI can include graphics, text, icons, video, and any combination thereof.
  • the display 1405 also has the ability to capture touch signals over the surface or surface of the display 1405.
  • the touch signal can be input to the processor 1401 as a control signal for processing.
  • the display 1405 can also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards.
  • the display screen 1405 can be one, and the front panel of the terminal 1400 is disposed; in other embodiments, the display screen 1405 can be at least two, respectively disposed on different surfaces of the terminal 1400 or in a folded design; In still other embodiments, display screen 1405 can be a flexible display screen disposed on a curved surface or a folded surface of terminal 1400. Even the display screen 1405 can be set to a non-rectangular irregular pattern, that is, a profiled screen.
  • the display 1405 can be made of a material such as an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode).
  • Camera component 1406 is used to capture images or video.
  • camera assembly 1406 includes a front camera and a rear camera.
  • the front camera is placed on the front panel of the terminal, and the rear camera is placed on the back of the terminal.
  • the rear camera is at least two, which are respectively a main camera, a depth camera, a wide-angle camera, and a telephoto camera, so as to realize the background blur function of the main camera and the depth camera, and the main camera Combine with a wide-angle camera for panoramic shooting and VR (Virtual Reality) shooting or other integrated shooting functions.
  • camera assembly 1406 can also include a flash.
  • the flash can be a monochrome temperature flash or a two-color temperature flash.
  • the two-color temperature flash is a combination of a warm flash and a cool flash that can be used for light compensation at different color temperatures.
  • the audio circuit 1407 can include a microphone and a speaker.
  • the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for processing to the processor 1401 for processing, or input to the RF circuit 1404 for voice communication.
  • the microphones may be multiple, and are respectively disposed at different parts of the terminal 1400.
  • the microphone can also be an array microphone or an omnidirectional acquisition microphone.
  • the speaker is then used to convert electrical signals from the processor 1401 or the RF circuit 1404 into sound waves.
  • the speaker can be a conventional film speaker or a piezoelectric ceramic speaker.
  • the audio circuit 1407 can also include a headphone jack.
  • the positioning component 1408 is configured to locate the current geographic location of the terminal 1400 to implement navigation or LBS (Location Based Service).
  • the positioning component 1408 can be a positioning component based on a US-based GPS (Global Positioning System), a Chinese Beidou system, or a Russian Galileo system.
  • a power supply 1409 is used to power various components in the terminal 1400.
  • the power source 1409 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
  • the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery.
  • a wired rechargeable battery is a battery that is charged by a wired line
  • a wireless rechargeable battery is a battery that is charged by a wireless coil.
  • the rechargeable battery can also be used to support fast charging technology.
  • terminal 1400 also includes one or more sensors 1410.
  • the one or more sensors 1410 include, but are not limited to, an acceleration sensor 1411, a gyro sensor 1412, a pressure sensor 1413, a fingerprint sensor 1414, an optical sensor 1415, and a proximity sensor 1416.
  • the acceleration sensor 1411 can detect the magnitude of the acceleration on the three coordinate axes of the coordinate system established by the terminal 1400.
  • the acceleration sensor 1411 can be used to detect components of gravity acceleration on three coordinate axes.
  • the processor 1401 can control the touch display screen 1405 to display the user interface in a landscape view or a portrait view according to the gravity acceleration signal collected by the acceleration sensor 1411.
  • the acceleration sensor 1411 can also be used for the acquisition of game or user motion data.
  • the gyro sensor 1412 can detect the body direction and the rotation angle of the terminal 1400, and the gyro sensor 1412 can cooperate with the acceleration sensor 1411 to collect the 3D motion of the user to the terminal 1400. Based on the data collected by the gyro sensor 1412, the processor 1401 can implement functions such as motion sensing (such as changing the UI according to the user's tilting operation), image stabilization at the time of shooting, game control, and inertial navigation.
  • functions such as motion sensing (such as changing the UI according to the user's tilting operation), image stabilization at the time of shooting, game control, and inertial navigation.
  • the pressure sensor 1413 can be disposed on a side border of the terminal 1400 and/or a lower layer of the touch display screen 1405.
  • the processor 1401 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1413.
  • the processor 1401 controls the operability control on the UI interface according to the user's pressure operation on the touch display screen 1405.
  • the operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 1414 is configured to collect the fingerprint of the user, and the processor 1401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1401 authorizes the user to perform related sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying and changing settings, and the like.
  • Fingerprint sensor 1414 can be provided with the front, back or side of terminal 1400. When the physical button or vendor logo is provided on the terminal 1400, the fingerprint sensor 1414 can be integrated with the physical button or the manufacturer logo.
  • Optical sensor 1415 is used to collect ambient light intensity.
  • the processor 1401 can control the display brightness of the touch display 1405 based on the ambient light intensity acquired by the optical sensor 1415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1405 is raised; when the ambient light intensity is low, the display brightness of the touch display screen 1405 is lowered.
  • the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 based on the ambient light intensity acquired by the optical sensor 1415.
  • Proximity sensor 1416 also referred to as a distance sensor, is typically disposed on the front panel of terminal 1400. Proximity sensor 1416 is used to capture the distance between the user and the front of terminal 1400. In one embodiment, when the proximity sensor 1416 detects that the distance between the user and the front side of the terminal 1400 is gradually decreasing, the touch screen 1405 is controlled by the processor 1401 to switch from the bright screen state to the interest screen state; when the proximity sensor 1416 detects When the distance between the user and the front side of the terminal 1400 gradually becomes larger, the processor 1401 controls the touch display screen 1405 to switch from the state of the screen to the bright state.
  • FIG. 17 does not constitute a limitation on the terminal 1400, and may include more or less components than those illustrated, or may combine some components or adopt different component arrangements.
  • FIG. 18 is a schematic structural diagram of a server 1500 according to an embodiment of the present application.
  • the server 1500 includes a central processing unit (CPU) 1501, a system memory 1504 including a random access memory (RAM) 1502 and a read only memory (ROM) 1503, and a system bus 1505 that connects the system memory 1504 and the central processing unit 1501.
  • the server 1500 also includes a basic input/output system (I/O system) 1506 that facilitates transfer of information between various devices within the computer, and mass storage for storing the operating system 1513, applications 1514, and other program modules 1515.
  • I/O system basic input/output system
  • the basic input/output system 1506 includes a display 1508 for displaying information and an input device 1509 such as a mouse or keyboard for user input of information.
  • the display 1508 and the input device 1509 are both connected to the central processing unit 1501 by an input/output controller 1510 connected to the system bus 1505.
  • the basic input/output system 1506 can also include an input output controller 1510 for receiving and processing input from a plurality of other devices, such as a keyboard, mouse, or electronic stylus.
  • the input and output controller 1510 also provides output to a display screen, printer, or other type of output device.
  • the mass storage device 1507 is connected to the central processing unit 1501 by a mass storage controller (not shown) connected to the system bus 1505.
  • the mass storage device 1507 and its associated computer readable medium provide non-volatile storage for the server 1500. That is, the mass storage device 1507 can include a computer readable medium (not shown) such as a hard disk or a CD-ROI drive.
  • the computer readable medium can include computer storage media and communication media.
  • Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data.
  • Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid state storage technologies, CD-ROM, DVD or other optical storage, tape cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices.
  • RAM random access memory
  • ROM read only memory
  • EPROM Erasable programmable read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • the server 1500 can also be operated by a remote computer connected to the network through a network such as the Internet. That is, the server 1500 can be connected to the network 1512 through the network interface unit 1511 connected to the system bus 1505, or can also be connected to other types of networks or remote computer systems (not shown) using the network interface unit 1511. .
  • the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the foregoing method embodiments.
  • the steps of implementing the refresh method for the resource site on the virtual map in the foregoing embodiment may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored.
  • the aforementioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the computer readable storage medium stores at least one instruction, at least one program, code set or instruction set, the at least one instruction, at least one program, code set or instruction set being loaded and executed by the processor to implement the above A refresh method for a resource site on a virtual map as described in various method embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Processing Or Creating Images (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

L'invention concerne un procédé et un dispositif de rafraichissement des bases de ressources (16) dans une carte virtuelle (20) et un support de stockage. Le procédé consiste à : acquérir des données d'attribut d'un objet de construction (14) dans un bloc de carte (22) ; le bloc de carte (22) correspond à une zone dans la carte virtuelle (20), et les données d'attribut sont utilisées pour indiquer la distribution actuelle de l'objet de construction (14) dans le bloc de carte (22) ; déterminer des données de rafraîchissement des bases de ressources (16) dans le bloc de carte (22) en fonction des données d'attribut de l'objet de construction (14) ; les données de rafraîchissement sont utilisées pour indiquer la distribution des bases de ressources (16) dans le bloc de carte (22) après le rafraîchissement ; et rafraîchir les bases de ressources (16) dans le bloc de carte (22) selon les données de rafraîchissement.
PCT/CN2018/117769 2017-11-30 2018-11-27 Procédé et dispositif de rafraichissement des bases de ressources dans une carte virtuelle et support de stockage WO2019105352A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711233543.8 2017-11-30
CN201711233543.8A CN107803030B (zh) 2017-11-30 2017-11-30 用于虚拟地图上资源据点的刷新方法及装置

Publications (1)

Publication Number Publication Date
WO2019105352A1 true WO2019105352A1 (fr) 2019-06-06

Family

ID=61581903

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117769 WO2019105352A1 (fr) 2017-11-30 2018-11-27 Procédé et dispositif de rafraichissement des bases de ressources dans une carte virtuelle et support de stockage

Country Status (2)

Country Link
CN (1) CN107803030B (fr)
WO (1) WO2019105352A1 (fr)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107803030B (zh) * 2017-11-30 2020-12-25 腾讯科技(成都)有限公司 用于虚拟地图上资源据点的刷新方法及装置
CN109806592B (zh) * 2019-01-18 2022-09-30 网易(杭州)网络有限公司 一种游戏资源的监控方法和装置
CN110102052B (zh) * 2019-05-08 2022-06-10 腾讯科技(上海)有限公司 虚拟资源投放方法、装置、电子装置及存储介质
CN111617484B (zh) * 2020-06-04 2023-09-05 珠海金山数字网络科技有限公司 一种地图处理的方法和装置
CN111744181A (zh) * 2020-07-01 2020-10-09 网易(杭州)网络有限公司 游戏中信息的显示方法、装置、游戏客户端及介质
CN111939566B (zh) * 2020-09-03 2024-01-26 网易(杭州)网络有限公司 一种虚拟物资部署方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566993A (zh) * 2008-04-22 2009-10-28 北京中食新华科技有限公司 一种具有平衡负载能力的物流WebGIS算法
US20110074769A1 (en) * 2009-09-28 2011-03-31 Nintendo Co., Ltd. Computer-readable storage medium having overhead map resource generation program stored therein, computer-readable storage medium having overhead map display program stored therein, overhead map resource generation apparatus, and overhead map display apparatus
CN106445588A (zh) * 2016-09-08 2017-02-22 腾讯科技(深圳)有限公司 属性信息的更新方法及装置
CN107803030A (zh) * 2017-11-30 2018-03-16 腾讯科技(成都)有限公司 用于虚拟地图上资源据点的刷新方法及装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4733870A (en) * 1986-09-03 1988-03-29 Ed Rinehart Strategy game emphasizing economical and political development
CN103544025A (zh) * 2012-07-10 2014-01-29 腾讯科技(深圳)有限公司 一种网络游戏资源获取方法及装置
US20150281144A1 (en) * 2014-03-28 2015-10-01 Microsoft Technology Licensing, Llc Cross-client subscription to groups
US20160092419A1 (en) * 2014-09-30 2016-03-31 Microsoft Technology Licensing, Llc Structured Sample Authoring Content
CN105589861B (zh) * 2014-10-22 2019-02-05 杭州海康威视系统技术有限公司 一种在地图数据中快速定位的方法
US10421017B2 (en) * 2015-12-04 2019-09-24 Sony Interactive Entertainment America Llc Balancing multiple team based games
CN107170033A (zh) * 2017-04-12 2017-09-15 青岛市光电工程技术研究院 基于激光雷达技术的智慧城市3d实景地图系统
CN107038050B (zh) * 2017-04-25 2020-05-12 合肥充盈信息科技有限公司 一种基于虚拟服务器的游戏配置加载方法
CN107085612A (zh) * 2017-05-15 2017-08-22 腾讯科技(深圳)有限公司 媒体内容展示方法、装置及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566993A (zh) * 2008-04-22 2009-10-28 北京中食新华科技有限公司 一种具有平衡负载能力的物流WebGIS算法
US20110074769A1 (en) * 2009-09-28 2011-03-31 Nintendo Co., Ltd. Computer-readable storage medium having overhead map resource generation program stored therein, computer-readable storage medium having overhead map display program stored therein, overhead map resource generation apparatus, and overhead map display apparatus
CN106445588A (zh) * 2016-09-08 2017-02-22 腾讯科技(深圳)有限公司 属性信息的更新方法及装置
CN107803030A (zh) * 2017-11-30 2018-03-16 腾讯科技(成都)有限公司 用于虚拟地图上资源据点的刷新方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YANG, YUANCHAO: "Design and Implementation of the Real Time Strategy Game based on HTML5", ELECTRONIC TECHNOLOGY & INFORMATION SCIENCE, 15 March 2016 (2016-03-15), pages 41 - 83 *

Also Published As

Publication number Publication date
CN107803030B (zh) 2020-12-25
CN107803030A (zh) 2018-03-16

Similar Documents

Publication Publication Date Title
US11224810B2 (en) Method and terminal for displaying distance information in virtual scene
US11703993B2 (en) Method, apparatus and device for view switching of virtual environment, and storage medium
US11565181B2 (en) Virtual object control method and apparatus, computer device, and storage medium
WO2019105352A1 (fr) Procédé et dispositif de rafraichissement des bases de ressources dans une carte virtuelle et support de stockage
CN108710525B (zh) 虚拟场景中的地图展示方法、装置、设备及存储介质
CN109529319B (zh) 界面控件的显示方法、设备及存储介质
CN109308205B (zh) 应用程序的显示适配方法、装置、设备及存储介质
EP3750609A1 (fr) Procédé et dispositif permettant de déterminer une attitude d'un objet virtuel dans un environnement virtuel, et support
WO2020207204A1 (fr) Dispositif et procédé d'observation d'un article virtuel dans un environnement virtuel, et support de stockage lisible
WO2019205881A1 (fr) Procédé et appareil d'affichage d'informations dans un environnement virtuel, un dispositif, et milieu de stockage
CN110694273A (zh) 控制虚拟对象使用道具的方法、装置、终端及存储介质
US11334214B2 (en) Method and apparatus for controlling object in virtual scene
WO2020151594A1 (fr) Procédé de rotation d'angle de visualisation, dispositif, appareil et support de stockage
JP7186901B2 (ja) ホットスポットマップの表示方法、装置、コンピュータ機器および読み取り可能な記憶媒体
US20230072762A1 (en) Method and apparatus for displaying position mark, device, and storage medium
CN112245912B (zh) 虚拟场景中的声音提示方法、装置、设备及存储介质
CN111589125A (zh) 虚拟对象控制方法、装置、计算机设备及存储介质
US20220291791A1 (en) Method and apparatus for determining selected target, device, and storage medium
WO2019105196A1 (fr) Procédé et appareil d'affichage d'informations d'un trajet sur une carte virtuelle
CN112755517A (zh) 虚拟对象控制方法、装置、终端及存储介质
CN113559494A (zh) 虚拟道具的显示方法、装置、终端及存储介质
CN113509729A (zh) 虚拟道具的控制方法、装置、计算机设备及存储介质
CN116263512A (zh) 炮点偏移信息的确定方法、装置、设备、存储介质及产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18882518

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18882518

Country of ref document: EP

Kind code of ref document: A1