CN111744194A - Virtual game control method, device and server - Google Patents

Virtual game control method, device and server Download PDF

Info

Publication number
CN111744194A
CN111744194A CN202010632190.4A CN202010632190A CN111744194A CN 111744194 A CN111744194 A CN 111744194A CN 202010632190 A CN202010632190 A CN 202010632190A CN 111744194 A CN111744194 A CN 111744194A
Authority
CN
China
Prior art keywords
building
target
shop
area
radiation
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.)
Pending
Application number
CN202010632190.4A
Other languages
Chinese (zh)
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.)
Guangzhou Yaowan Entertainment Network Technology Co ltd
Original Assignee
Guangzhou Yaowan Entertainment Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yaowan Entertainment Network Technology Co ltd filed Critical Guangzhou Yaowan Entertainment Network Technology Co ltd
Priority to CN202010632190.4A priority Critical patent/CN111744194A/en
Publication of CN111744194A publication Critical patent/CN111744194A/en
Pending legal-status Critical Current

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/55Controlling game characters or game objects based on the game progress
    • 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/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • 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/60Methods for processing data by generating or executing the game program
    • A63F2300/6045Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands
    • 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/8094Unusual game types, e.g. virtual cooking

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a virtual game control method, a device and a server, wherein the virtual game control method comprises the following steps: receiving an instruction to create a target store in a game environment, wherein the instruction to create the target store comprises coordinates of the target store; acquiring a radiation area of a target shop and a radiation area of a building around the target shop according to the coordinates of the target shop; confirming a first building overlapped with the radiation area of the target shop according to the radiation area of each building; and controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop. Compared with the prior art, the method and the device have the advantages that the control of the virtual game is related to the difference operation of the player, and the participation degree of the player is improved.

Description

Virtual game control method, device and server
Technical Field
The embodiment of the application relates to the technical field of game control, in particular to a virtual game control method, a virtual game control device and a server.
Background
With the development of game technology and the increase of life pressure, people often relax and relieve the stress through a game mode, and among the game, the business game is more and more popular among the players.
The existing control method of the business game is generally single, for example, the city business game generally obtains virtual benefits by ways of paving roads, building houses, making shops, investment management and the like, and simulates life which cannot be experienced in real life.
However, the control method is not closely combined with the operation of the user player, the way of adding the virtual profit to the player often depends only on the accumulation of time, the influence of different planning ways of different players on the virtual profit cannot be exerted, and the player cannot bring different game effects through more refined control.
Disclosure of Invention
The embodiment of the application provides a virtual game control method, a virtual game control device and a virtual game server, which can solve the problems that the game control method is single and is not tightly combined with player operation, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a virtual game control method, including:
receiving an instruction to create a target store in a game environment, wherein the instruction to create the target store comprises coordinates of the target store;
acquiring a radiation area of a target shop and a radiation area of a building around the target shop according to the coordinates of the target shop;
confirming a first building overlapped with the radiation area of the target shop according to the radiation area of each building;
and controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop.
Optionally, the acquiring, according to the coordinates of the target store, a radiation area of the target store and a radiation area of a building around the target store includes:
acquiring the floor area of the target shop and the coordinates and the floor area of buildings around the target shop;
acquiring the radiation radius of the target shop and the radiation radius of the building according to the occupied area of the target shop, the occupied area of the building and the corresponding relation between the preset occupied area and the radiation radius;
and acquiring the radiation area of the target shop according to the coordinates of the target shop and the radiation radius of the target shop, and acquiring the radiation area of a building around the target shop according to the coordinates of the building and the radiation radius of the building.
Optionally, the identifying a first building overlapping with the radiation area of the target store according to the radiation area of each building includes:
acquiring a first distance between each building and the target shop according to the coordinates of each building and the coordinates of the target shop;
and if the first distance is smaller than the sum of the radiation radius of the current building and the radiation radius of the target shop, marking the current building as a first building.
Optionally, the controlling the benefit of the target store according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target store includes:
acquiring a unit area population in a radiation area of the first building according to a preset configuration population of the first building and the area of the radiation area of the first building;
acquiring the overlapping area according to the radiation radius of the first building, the radiation radius of the target shop and the first distance;
acquiring the population number of the target shop from the first building according to the unit area population and the overlapping area;
and controlling the income of the target shop according to the population number and the preset per-capita consumption amount corresponding to the target shop.
Optionally, the obtaining the overlapping area according to the radiation radius of the first building, the radiation radius of the target store, and the first distance includes:
acquiring a first included angle and a second included angle according to the radiation radius of the first building, the radiation radius of the target shop, the first distance and a preset angle formula;
and acquiring the overlapping area according to the first included angle, the radiation radius of the first building, the second included angle and the radiation radius of the target shop.
Optionally, the virtual game control method further includes the steps of:
acquiring a radiation area of a shop around the target shop according to the coordinates of the target shop;
confirming a first shop overlapping with the radiation area of the target shop according to the radiation area of each shop;
acquiring the type of the first shop;
and if the type of the first shop is the same as that of the target shop, controlling to increase the income of the target shop according to a preset income adding formula.
Optionally, the radiation area of the shop is determined by coordinates of shops and radiation radius of shops, and the first shop overlapping with the radiation area of the target shop is identified according to the radiation area of each shop, including:
acquiring a second distance between each shop and the target shop according to the coordinates of each shop and the coordinates of the target shop;
and if the second distance is smaller than the sum of the radiation radius of the current shop and the radiation radius of the target shop, marking the current shop as a first shop.
In a second aspect, an embodiment of the present application provides a virtual game control apparatus, including:
an instruction receiving unit configured to receive an instruction to create a target store in a game environment in which the target store is created, wherein the instruction to create the target store includes coordinates of the target store;
a radiation area acquisition unit for acquiring a radiation area of a target store and a radiation area of a building around the target store according to the coordinates of the target store;
a first confirming unit for confirming a first building overlapped with the radiation area of the target shop according to the radiation area of each building;
and the first control unit is used for controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop.
In a third aspect, an embodiment of the present application provides a server, including: a processor, a memory and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the virtual game control method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the virtual game control method according to the first aspect.
In an embodiment of the present application, a targeted store is created in a gaming environment by receiving an instruction to create a targeted store in the gaming environment, wherein the instruction to create the targeted store includes coordinates of the targeted store; acquiring a radiation area of a target shop and a radiation area of a building around the target shop according to the coordinates of the target shop; confirming a first building overlapped with the radiation area of the target shop according to the radiation area of each building; and controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop. The control over the virtual game is associated with the difference operation of the player, the participation of the player is improved, the player can experience different game effects by planning the construction modes of the target shops and the buildings in the virtual game, the influence of the buildings in the actual scene on the shop income is comprehensively considered, and the sense of the substitution of the real scene of the player in the virtual game is greatly improved.
For a better understanding and implementation, the technical solutions of the present application are described in detail below with reference to the accompanying drawings.
Drawings
FIG. 1 is a schematic flow chart illustrating a method for controlling a virtual game according to an embodiment of the present application;
fig. 2 is a schematic flowchart of S102 in a virtual game control method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of S103 in the virtual game control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of S104 in the virtual game control method according to an embodiment of the present application;
FIG. 5 is a schematic flow chart illustrating a virtual game control method according to another embodiment of the present application;
fig. 6 is a schematic flowchart of S206 in a virtual game control method according to another embodiment of the present application;
FIG. 7 is a schematic structural diagram of a virtual game control apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if/if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 1, a schematic flow chart of a virtual game control method according to an embodiment of the present application is shown, where the method includes the following steps:
s101: an instruction to create a target store in a game environment is received, wherein the instruction to create the target store comprises coordinates of the target store.
In the embodiment of the application, the game environment is a game environment built in each electronic device, the type of the game environment can be end play, hand play or online play, and the electronic device can be a computer, a mobile phone or a tablet computer.
The server receives an instruction to create a target store in the gaming environment.
The instruction for creating the target shop comprises the coordinates of the target shop, and the coordinates of the target shop are the coordinates corresponding to the building position of the target shop selected by the player in the game environment.
Specifically, the electronic device equipped with the game environment receives a click or touch operation of a player, determines coordinates of the target store according to a position corresponding to the click or touch operation, packages information such as the coordinates of the target store as an instruction for creating the target store, and transmits the instruction to the server.
In an alternative embodiment, the instruction to create the targeted store may include not only the coordinates of the targeted store, but also the player identification, the identification of the targeted store, and the like.
In the embodiment of the application, the server receives the command of the target shop and analyzes the command of the target shop to obtain the coordinates of the target shop, and creates the target shop at the coordinates of the target shop in the game environment according to the coordinates of the target shop and the rendering information of the target shop.
The coordinate system used for the coordinates of the target store is not limited herein, and may be a virtual coordinate system set in advance in the game environment or another coordinate system that facilitates conversion.
And S102, acquiring the radiation area of the target shop and the radiation area of a building around the target shop according to the coordinates of the target shop.
And the server acquires the radiation area of the target shop and the radiation area of a building around the target shop according to the coordinates of the target shop.
The buildings around the target store may be buildings whose distance is smaller than a preset distance threshold value by calculating the distance between the coordinates of each building and the coordinates of the target store, with the coordinates of the target store as the center. Alternatively, the buildings around the target store may be all buildings in the same game scene in the game environment.
The irradiation area of the targeted shop and the irradiation area of the building may be various shapes.
In an alternative embodiment, the radiation area of the building and the radiation area of the targeted store may be regular in shape, such as circular, rectangular, etc. If the radiation area of the building and the radiation area of the target shop are circular, the radiation area is determined by the coordinates and the radiation radius of the building or the target shop; if the radiation area of the building and the radiation area of the target store are rectangles, the radiation area is determined by the coordinates of the building or the target store and the coordinates of any three vertexes of the rectangle.
In another alternative embodiment, the radiation area of the building and the radiation area of the targeted store may also be irregularly shaped. Specifically, the server may obtain the radiation area of the building or the target store in each direction according to the coordinates of the building or the target store and the preset population number of the building or the target store in each direction, so as to obtain the total radiation area of the building or the target store.
For example: the preset population number of the people flow inlet and the people flow outlet of the building is larger, correspondingly, the radiation area in the directions of the people flow inlet and the people flow outlet is larger, and the radiation area in the directions of the people flow inlet and the people flow outlet is integrated with the radiation area in other directions to obtain the radiation area with the irregular shape.
Referring to fig. 2, when the radiation area of the building and the radiation area of the target store are circular, step S102 includes steps S1021 to S1023, which are as follows:
s1021: and acquiring the floor area of the target shop and the coordinates and the floor area of buildings around the target shop.
The server acquires the floor area of the target shop and the coordinates and the floor area of buildings around the target shop.
Wherein the floor space of the target store and the floor space of the building are floor spaces configured in advance. The coordinates of the building around the target store are coordinates corresponding to the building position of the building selected by the player in the game environment.
S1022: and acquiring the radiation radius of the target shop and the radiation radius of the building according to the occupied area of the target shop, the occupied area of the building and the corresponding relation between the preset occupied area and the radiation radius.
The server stores the corresponding relation between the floor area and the radiation radius, so that the radiation radius of the target shop and the radiation radius of the building are obtained according to the floor area of the target shop, the floor area of the building and the corresponding relation between the preset floor area and the radiation radius.
S1023: and acquiring the radiation area of the target shop according to the coordinates of the target shop and the radiation radius of the target shop, and acquiring the radiation area of a building around the target shop according to the coordinates of the building and the radiation radius of the building.
Since the radiation area of the target store and the radiation area of the building are circular, the server acquires the radiation area of the target store according to the coordinates of the target store and the radiation radius of the target store, and acquires the radiation area of the building around the target store according to the coordinates of the building and the radiation radius of the building.
S103: and identifying a first building overlapped with the radiation area of the target shop according to the radiation area of each building.
And the server judges whether the radiation area of each building is overlapped with the radiation area of the target shop or not according to the radiation area of each building, so as to obtain a first building overlapped with the radiation area of the target shop.
Wherein the radiation zones overlap comprises the following: (1) the radiation area of the building and the radiation area of the target shop are all overlapped, namely the radiation area of the building covers the radiation area of the target shop, or the radiation area of the target shop covers the radiation area of the building; (2) the radiation area of the building and the radiation area of the target store are partially overlapped.
In an alternative embodiment, referring to fig. 3, step S103 includes steps S1031 to S1032 as follows:
s1031: and acquiring a first distance between each building and the target shop according to the coordinates of each building and the coordinates of the target shop.
In the embodiment of the application, the server acquires the first distance between each building and the target store according to the coordinates of the building and the coordinates of the target store.
Wherein the first distance represents a linear distance between each building and the targeted store.
S1032: and if the first distance is smaller than the sum of the radiation radius of the current building and the radiation radius of the target shop, marking the current building as a first building.
The server traverses all buildings around the target store in the game environment, obtains the radiation radius of the current building and the radiation radius of the target store, obtains the sum of the radiation radii of the current building and the target store, judges whether the first distance is smaller than the sum of the radiation radii, and marks the current building as the first building if the first distance is smaller than the sum of the radiation radii.
S104: and controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop.
The server is internally pre-stored with preset configuration population of each building, and the preset configuration population is uniformly distributed in the radiation area of the first building.
The more the preset configuration population of the first building is, the smaller the radiation area is, and the larger the population per unit area in the radiation area of the first building is. The larger the population per unit area and the larger the overlapping area, the higher the revenue of the targeted store, thereby realizing the control of the revenue of the targeted store.
Specifically, in an alternative embodiment, referring to fig. 4, step S104 includes steps S1041 to S1044, which are as follows:
s1041: and acquiring the unit area population in the radiation area of the first building according to the preset configuration population of the first building and the area of the radiation area of the first building.
And the server acquires the unit area population in the radiation area of the first building according to the preset configuration population of the first building and the area of the radiation area of the first building.
S1042: and acquiring the overlapping area according to the radiation radius of the first building, the radiation radius of the target shop and the first distance.
And the server acquires the overlapping area according to the radiation radius of the first building, the radiation radius of the target shop and the first distance.
In an optional embodiment, a first included angle and a second included angle are obtained according to the radiation radius of the first building, the radiation radius of the target store, the first distance and a preset angle formula;
specifically, the server inputs the radiation radius of the first building, the radiation radius of the target shop and the first distance into a preset angle formula.
Wherein the radius of the first building is denoted r1, the radius of the target store is denoted r2, and the first distance is denoted d, resulting in a first included angle a1 and a second included angle a 2.
The preset angle formula is as follows:
Figure BDA0002569450240000081
Figure BDA0002569450240000082
and then, acquiring the overlapping area according to the first included angle, the radiation radius of the first building, the second included angle and the radiation radius of the target shop.
And the server inputs the first included angle, the radiation radius of the first building, the second included angle and the radiation radius of the target shop into a preset area formula to obtain the overlapping area.
The preset area formula is as follows:
Figure BDA0002569450240000083
s1043: and acquiring the population number of the target shop from the first building according to the unit area population and the overlapping area.
And multiplying the unit area population by the overlapping area to obtain the population number existing in the overlapping radiation area between the first building and the target store, namely acquiring the population number consumed from the first building to the target store.
S1044: and controlling the income of the target shop according to the population number and the preset per-capita consumption amount corresponding to the target shop.
And the server is internally pre-configured with the per-person consumption amount of each target shop, and the income of the target shop is controlled according to the population number and the preset per-person consumption amount corresponding to the target shop.
In an embodiment of the present application, a targeted store is created in a gaming environment by receiving an instruction to create a targeted store in the gaming environment, wherein the instruction to create the targeted store includes coordinates of the targeted store; acquiring a radiation area of a target shop and a radiation area of a building around the target shop according to the coordinates of the target shop; confirming a first building overlapped with the radiation area of the target shop according to the radiation area of each building; and controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop. The control over the virtual game is associated with the difference operation of the player, the participation of the player is improved, the player can experience different game effects by planning the construction modes of the target shops and the buildings in the virtual game, the influence of the buildings in the actual scene on the shop income is comprehensively considered, and the sense of the substitution of the real scene of the player in the virtual game is greatly improved.
Please refer to fig. 5, which is a flowchart illustrating a virtual game control method according to another embodiment of the present application, the method includes steps S201 to S208, where steps S201 to S204 are the same as steps S101 to S104, and specifically include the following steps:
s201: an instruction to create a target store in a game environment is received, wherein the instruction to create the target store comprises coordinates of the target store.
S202: and acquiring the radiation area of the target shop and the radiation area of a building around the target shop according to the coordinates of the target shop.
S203: and identifying a first building overlapped with the radiation area of the target shop according to the radiation area of each building.
S204: and controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop.
S205: and acquiring the radiation area of the shop around the target shop according to the coordinates of the target shop.
The stores around the target store may be stores whose distance is smaller than a preset distance threshold value by calculating a distance between the coordinates of each store and the coordinates of the target store, with the coordinates of the target store as a center. Alternatively, the shops around the target shop may be all shops in the same game scene in the game environment.
S206: and confirming a first shop which is overlapped with the radiation area of the target shop according to the radiation area of each shop.
The server confirms a first shop overlapping with the radiation area of the target shop according to the radiation area of each shop. Wherein the first store does not include the targeted store itself.
In the present embodiment, the radiation region overlap includes the following cases: (1) the radiation area of a certain shop and the radiation area of a target shop are all overlapped, namely the radiation area of the certain shop covers the radiation area of the target shop, or the radiation area of the target shop covers the radiation area of the certain shop; (2) the radiation area of a certain shop partially overlaps with the radiation area of the target shop.
In an alternative embodiment, referring to fig. 6, step S206 further includes steps S2061 to S2062, which are as follows:
s2061: and acquiring a second distance between each shop and the target shop according to the coordinates of each shop and the coordinates of the target shop.
In the embodiment of the application, the radiation area of the shop is circular, and the radiation area is determined by the coordinates of the shop and the radiation radius of the shop.
And the server acquires a second distance between each shop and the target shop according to the coordinates of each shop and the coordinates of the target shop.
Wherein the second distance characterizes a straight-line distance between each store and a targeted store.
S2062: and if the second distance is smaller than the sum of the radiation radius of the current shop and the radiation radius of the target shop, marking the current shop as a first shop.
The server traverses all shops around a target shop in the game environment, obtains the radiation radius of the current shop and the radiation radius of the target shop, obtains the sum of the radiation radii of the current shop and the target shop, judges whether the first distance is smaller than the sum of the radiation radii, and marks the current building as the first building if the first distance is smaller than the sum of the radiation radii.
S207: obtaining the type of the first shop.
In the embodiment of the present application, the stores in the game environment have a plurality of types, and the server acquires the type of the first store.
S208: and if the type of the first shop is the same as that of the target shop, controlling to increase the income of the target shop according to a preset income adding formula.
And the server judges whether the type of the first shop is the same as that of the target shop, and controls to increase the income of the target shop according to a preset income adding formula if the type of the first shop is the same as that of the target shop.
In an optional embodiment, the preset profit addition formula is to multiply the profit of the target store by the addition ratio, and then accumulate the profit of the target store to control the final profit of the target store. Specifically, the server performs revenue addition once on the revenue of the target store according to a preset revenue addition formula every time one first store exists according to the number of the first stores, and controls the final revenue of the target store.
In another alternative embodiment, the addition ratio of the preset profit addition formula may also float according to the number of the first stores, that is, the final profit of the target store is controlled by different addition ratios according to the number of the first stores.
In the embodiment, the radiation area of the shop around the target shop is obtained according to the coordinates of the target shop; confirming a first shop overlapping with the radiation area of the target shop according to the radiation area of each shop; acquiring the type of the first shop; if the type of the first shop is the same as that of the target shop, the increase of the income of the target shop is controlled according to a preset income adding formula, so that the mode of increasing the virtual income by the player is related to the mode of planning the shop position by the player, the control method is more closely combined with the operation of the player of the user, the influence of the type of the peripheral shops on the income of the shop is comprehensively considered, and the sense of real-scene substitution of the player in the virtual game is further improved.
Fig. 7 is a schematic structural diagram of a virtual game control device according to an embodiment of the present application. The apparatus may be implemented as all or part of a virtual game control device in software, hardware or a combination of both. The apparatus 7 includes an instruction receiving unit 71, a radiation area acquiring unit 72, a first confirming unit 73, and a first control unit 74:
an instruction receiving unit 71 configured to receive an instruction to create a target store in a game environment in which the target store is created, wherein the instruction to create the target store includes coordinates of the target store;
a radiation area acquisition unit 72 configured to acquire a radiation area of a target store and a radiation area of a building around the target store, based on coordinates of the target store;
a first confirmation unit 73 for confirming a first building overlapping with the radiation area of the target shop, based on the radiation area of each of the buildings;
a first control unit 74, configured to control the benefit of the target store according to a preset configuration population of the first building, an area of a radiation area of the first building, and an overlapping area between the radiation area of the first building and the radiation area of the target store.
In an embodiment of the present application, a targeted store is created in a gaming environment by receiving an instruction to create a targeted store in the gaming environment, wherein the instruction to create the targeted store includes coordinates of the targeted store; acquiring a radiation area of a target shop and a radiation area of a building around the target shop according to the coordinates of the target shop; confirming a first building overlapped with the radiation area of the target shop according to the radiation area of each building; and controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop. The control over the virtual game is associated with the difference operation of the player, the participation of the player is improved, the player can experience different game effects by planning the construction modes of the target shops and the buildings in the virtual game, the influence of the buildings in the actual scene on the shop income is comprehensively considered, and the sense of the substitution of the real scene of the player in the virtual game is greatly improved.
Optionally, the radiation region acquiring unit 72 includes:
a first acquisition unit configured to acquire a floor area of the target store and coordinates and a floor area of a building around the target store;
the radiation radius acquisition unit is used for acquiring the radiation radius of the target shop and the radiation radius of the building according to the occupied area of the target shop, the occupied area of the building and the corresponding relation between the preset occupied area and the radiation radius;
and a second acquisition unit, configured to acquire the radiation area of the target store according to the coordinates of the target store and the radiation radius of the target store, and acquire the radiation area of a building around the target store according to the coordinates of the building and the radiation radius of the building.
Optionally, the first confirming unit 73 includes:
a first distance calculation unit configured to acquire a first distance between each of the buildings and the target store based on the coordinates of each of the buildings and the coordinates of the target store;
and the first marking unit is used for marking the current building as the first building if the first distance is less than the sum of the radiation radius of the current building and the radiation radius of the target shop.
Optionally, the first control unit 74 includes:
a unit area population obtaining unit, configured to obtain a unit area population in a radiation area of the first building according to a preset configuration population of the first building and an area of the radiation area of the first building;
an overlapping area acquisition unit configured to acquire the overlapping area based on a radiation radius of the first building, a radiation radius of the target store, and the first distance;
a population number calculation unit configured to acquire the number of populations consumed from the first building to the target store, based on the unit area population and the overlap area;
and the second control unit is used for controlling the income of the target shop according to the population number and the preset per-capita consumption amount corresponding to the target shop.
Optionally, the overlapping area obtaining unit includes:
the included angle acquisition unit is used for acquiring a first included angle and a second included angle according to the radiation radius of the first building, the radiation radius of the target shop, the first distance and a preset angle formula;
and the overlapping area calculation unit is used for acquiring the overlapping area according to the first included angle, the radiation radius of the first building, the second included angle and the radiation radius of the target shop.
Optionally, the apparatus 7 further comprises:
a third acquisition unit configured to acquire a radiation area of a store around the target store according to the coordinates of the target store;
a second confirmation unit configured to confirm a first shop overlapping the radiation area of the target shop, based on the radiation area of each of the shops;
a fourth acquisition unit configured to acquire a type of the first store;
and the third control unit is used for controlling and increasing the income of the target shop according to a preset income adding formula if the type of the first shop is the same as that of the target shop.
Optionally, the second confirming unit includes:
a second distance calculation unit configured to acquire a second distance between each of the stores and the target store based on the coordinates of each of the stores and the coordinates of the target store;
and the second marking unit is used for marking the current shop as the first shop if the second distance is less than the sum of the radiation radius of the current shop and the radiation radius of the target shop.
Please refer to fig. 8, which is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 8, the server 8 may include: a processor 80, a memory 81 and a computer program 82 stored in said memory 81 and executable on said processor 80, such as: a virtual game control program; the processor 80, when executing the computer program 82, implements the steps in the above-described method embodiments, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 71 to 74 shown in fig. 7.
The processor 80 may include one or more processing cores, among others. The processor 80 is connected to various parts in the control device 8 by various interfaces and lines, and executes various functions of the control device 8 and processes data by operating or executing instructions, programs, code sets or instruction sets stored in the memory 81 and calling data in the memory 81, and optionally, the processor 80 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable Logic Array (PLA). The processor 80 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing contents required to be displayed by the touch display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 80, but may be implemented by a single chip.
The Memory 81 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 81 includes a non-transitory computer-readable medium. The memory 81 may be used to store instructions, programs, code sets or instruction sets. The memory 81 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned method embodiments, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 81 may optionally be at least one memory device located remotely from the processor 80.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc.
The present invention is not limited to the above-described embodiments, and various modifications and variations of the present invention are intended to be included within the scope of the claims and the equivalent technology of the present invention if they do not depart from the spirit and scope of the present invention.

Claims (10)

1. A virtual game control method, comprising the steps of:
receiving an instruction to create a target store in a game environment, wherein the instruction to create the target store comprises coordinates of the target store;
acquiring a radiation area of a target shop and a radiation area of a building around the target shop according to the coordinates of the target shop;
confirming a first building overlapped with the radiation area of the target shop according to the radiation area of each building;
and controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop.
2. The virtual game control method according to claim 1, wherein the step of acquiring the radiation area of the target store and the radiation area of the building around the target store based on the coordinates of the target store comprises the steps of:
acquiring the floor area of the target shop and the coordinates and the floor area of buildings around the target shop;
acquiring the radiation radius of the target shop and the radiation radius of the building according to the occupied area of the target shop, the occupied area of the building and the corresponding relation between the preset occupied area and the radiation radius;
and acquiring the radiation area of the target shop according to the coordinates of the target shop and the radiation radius of the target shop, and acquiring the radiation area of a building around the target shop according to the coordinates of the building and the radiation radius of the building.
3. The virtual game control method according to claim 2, wherein the identifying a first building overlapping with a radiation area of a target store according to the radiation area of each of the buildings, comprises:
acquiring a first distance between each building and the target shop according to the coordinates of each building and the coordinates of the target shop;
and if the first distance is smaller than the sum of the radiation radius of the current building and the radiation radius of the target shop, marking the current building as a first building.
4. The virtual game control method according to claim 3, wherein the controlling of the benefit of the target store according to the preset configuration population of the first building, the area of the radiation area of the first building, and the overlapping area between the radiation area of the first building and the radiation area of the target store comprises:
acquiring a unit area population in a radiation area of the first building according to a preset configuration population of the first building and the area of the radiation area of the first building;
acquiring the overlapping area according to the radiation radius of the first building, the radiation radius of the target shop and the first distance;
acquiring the population number of the target shop from the first building according to the unit area population and the overlapping area;
and controlling the income of the target shop according to the population number and the preset per-capita consumption amount corresponding to the target shop.
5. The virtual game control method according to claim 4, wherein the step of obtaining the overlap area based on the radius of radiation of the first building, the radius of radiation of the target store, and the first distance includes the steps of:
acquiring a first included angle and a second included angle according to the radiation radius of the first building, the radiation radius of the target shop, the first distance and a preset angle formula;
and acquiring the overlapping area according to the first included angle, the radiation radius of the first building, the second included angle and the radiation radius of the target shop.
6. The virtual game control method of claim 1, further comprising the steps of:
acquiring a radiation area of a shop around the target shop according to the coordinates of the target shop;
confirming a first shop overlapping with the radiation area of the target shop according to the radiation area of each shop;
acquiring the type of the first shop;
and if the type of the first shop is the same as that of the target shop, controlling to increase the income of the target shop according to a preset income adding formula.
7. The virtual game control method according to claim 6, wherein the radiation area of the shop is determined by coordinates of shops and a radiation radius of a shop, and the first shop overlapping with the radiation area of the target shop is confirmed based on the radiation area of each shop, comprising the steps of:
acquiring a second distance between each shop and the target shop according to the coordinates of each shop and the coordinates of the target shop;
and if the second distance is smaller than the sum of the radiation radius of the current shop and the radiation radius of the target shop, marking the current shop as a first shop.
8. A virtual game control apparatus, comprising:
an instruction receiving unit configured to receive an instruction to create a target store in a game environment in which the target store is created, wherein the instruction to create the target store includes coordinates of the target store;
a radiation area acquisition unit for acquiring a radiation area of a target store and a radiation area of a building around the target store according to the coordinates of the target store;
a first confirming unit for confirming a first building overlapped with the radiation area of the target shop according to the radiation area of each building;
and the first control unit is used for controlling the income of the target shop according to the preset configuration population of the first building, the area of the radiation area of the first building and the overlapping area between the radiation area of the first building and the radiation area of the target shop.
9. A server, comprising: processor, memory and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 7 are implemented when the processor executes the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010632190.4A 2020-07-03 2020-07-03 Virtual game control method, device and server Pending CN111744194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010632190.4A CN111744194A (en) 2020-07-03 2020-07-03 Virtual game control method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010632190.4A CN111744194A (en) 2020-07-03 2020-07-03 Virtual game control method, device and server

Publications (1)

Publication Number Publication Date
CN111744194A true CN111744194A (en) 2020-10-09

Family

ID=72679035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010632190.4A Pending CN111744194A (en) 2020-07-03 2020-07-03 Virtual game control method, device and server

Country Status (1)

Country Link
CN (1) CN111744194A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018147594A1 (en) * 2017-02-10 2018-08-16 (주)원더피플 Method for providing board game by means of virtual irregular lottery module and server using same
CN109754106A (en) * 2017-11-07 2019-05-14 营利度富信息系统(上海)有限公司 A kind of prediction technique of shopping center shop distribution planning
CN110135913A (en) * 2019-05-20 2019-08-16 智慧足迹数据科技有限公司 Training method, shop site selecting method and the device of shop site selection model
CN110368688A (en) * 2019-07-10 2019-10-25 腾讯科技(深圳)有限公司 Display methods, device, storage medium and the electronic device of animation
CN111298431A (en) * 2020-02-26 2020-06-19 网易(杭州)网络有限公司 Construction method and device in game

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018147594A1 (en) * 2017-02-10 2018-08-16 (주)원더피플 Method for providing board game by means of virtual irregular lottery module and server using same
CN109754106A (en) * 2017-11-07 2019-05-14 营利度富信息系统(上海)有限公司 A kind of prediction technique of shopping center shop distribution planning
CN110135913A (en) * 2019-05-20 2019-08-16 智慧足迹数据科技有限公司 Training method, shop site selecting method and the device of shop site selection model
CN110368688A (en) * 2019-07-10 2019-10-25 腾讯科技(深圳)有限公司 Display methods, device, storage medium and the electronic device of animation
CN111298431A (en) * 2020-02-26 2020-06-19 网易(杭州)网络有限公司 Construction method and device in game

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
最有梦想的咸鱼: ""梦想商店街怎么玩 新手入门攻略"", pages 3 - 4, Retrieved from the Internet <URL:https://news.4399.com/gonglue/mxsdj/xinde/m/440356.html> *

Similar Documents

Publication Publication Date Title
US11450061B2 (en) Processing method and apparatus for virtual resource in game scene
CN104641396B (en) Delay preemption techniques for Dispatching Drawings processing unit command stream
JP4833674B2 (en) GAME DEVICE, GAME DEVICE CONTROL METHOD, AND PROGRAM
US10398978B2 (en) Computer control method, control program and computer
CN111330272B (en) Virtual object control method, device, terminal and storage medium
CN101447091A (en) Method and apparatus for processing graphics
US11192026B2 (en) Game apparatus and program
CN105099883B (en) A kind of instant communicating method and system for game
CN111383345B (en) Virtual content display method and device, terminal equipment and storage medium
CN104091140A (en) Information processing method and electronic device
CN113952720A (en) Game scene rendering method and device, electronic equipment and storage medium
CN106708483A (en) Generating method and generating device of control interface of internet-of-things equipment
JP2007195746A (en) Game apparatus and control method and program for the same
CN109985386B (en) Method and device for generating map
CN104995591A (en) Image processing device and program
WO2017047348A1 (en) Program, electronic device, system, and method for determining resource allocation for rendering by predicting player intention
US9489771B2 (en) Techniques for spatially sorting graphics information
CN111744194A (en) Virtual game control method, device and server
CN110743161B (en) Virtual object control method, device, terminal and storage medium
CN114885199B (en) Real-time interaction method, device, electronic equipment, storage medium and system
JP7219997B1 (en) How to output blueprints of block objects
KR20140112120A (en) Method for processing user gesture input in online game
CN113938513A (en) Interaction method, device and equipment based on virtual game object
CN115394170B (en) Electronic sand table construction method and device, electronic equipment and storage medium
KR20140059622A (en) Method and apparatus for compensating user input on touch-screen, method for compensating user input in on-line game

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