CN113797539A - Method and device for constructing small map in game and electronic equipment - Google Patents

Method and device for constructing small map in game and electronic equipment Download PDF

Info

Publication number
CN113797539A
CN113797539A CN202111085287.9A CN202111085287A CN113797539A CN 113797539 A CN113797539 A CN 113797539A CN 202111085287 A CN202111085287 A CN 202111085287A CN 113797539 A CN113797539 A CN 113797539A
Authority
CN
China
Prior art keywords
component
current
game
interface
small map
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
CN202111085287.9A
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202111085287.9A priority Critical patent/CN113797539A/en
Publication of CN113797539A publication Critical patent/CN113797539A/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/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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/63Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by the player, e.g. authoring using a level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method and a device for constructing a small map in a game and electronic equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining the function requirements of a small map of a target game, establishing function components corresponding to the function requirements, determining the current interface component and the current frame component of the small map according to current game data of the target game, loading the function components to the current interface component or the current frame component, and constructing to obtain the current small map of the target game. According to the technical scheme, each function requirement is abstracted into a corresponding function component, so that the interface display and the function logic isolation of the small map can be realized when the small map of the game is developed, and the development efficiency is improved.

Description

Method and device for constructing small map in game and electronic equipment
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for constructing a small map in a game and electronic equipment.
Background
Minimaps are maps that are often placed at the corners of electronic game screens to assist game players in determining the location in the game world of the character they are operating on. It usually occupies only a small area of the game interface, displaying some information that is important in the game. With the iterative updating and the refined production of the game, the functions of the small map are more and more abundant, for example, unit information such as hero, soldier, defense tower and the like of a player can be displayed, and the small map can be used for communicating with teammates, informing the teammates to gather, attack and the like.
In the prior art, when a small map of a game is constructed, all nodes are usually placed in a User Interface (UI) node, and each node is maintained by using a set of codes. And when different requirements exist, selecting different nodes to display the small map.
However, in the map construction method used in the prior art, a situation of code overlapping occurs between each node, so that when a developer develops a small map, many functional codes need to be written repeatedly, and the development efficiency is low.
Disclosure of Invention
The method and the device for constructing the small map in the game and the electronic equipment are used for solving the problem that the small map in the prior art is low in development efficiency.
In a first aspect, an embodiment of the present application provides a method for constructing a mini map in a game, including:
acquiring a function requirement of a small map of a target game, and establishing a function component corresponding to the function requirement;
determining a current interface component and a current frame component of the small map according to the current game data of the target game, wherein the current interface component is used for displaying an interface of the small map, and the current frame component is used for a user to interact with the small map;
and loading the functional component to the current interface component or the current frame component to construct and obtain a current minimap of the target game, wherein the functional component loaded to the current interface component or the current frame component is used for realizing the functional requirement on the current interface component or the current frame component when triggered by a message event of the target game.
In a possible design of the first aspect, the determining a current interface component and a current frame component of a minimap according to current game data of the target game includes:
obtaining game map information and a frame display position of a small map according to the current game data;
determining to obtain the current interface component according to the game map information;
and creating and obtaining the current frame assembly according to the frame display position of the small map.
In another possible design of the first aspect, the creating the current frame component according to the frame display position of the minimap includes:
if the frame display position is the left side of the game interface of the target game, a first current frame component is created;
and if the frame display position is the right side of the game interface of the target game, creating to obtain a second current frame component, wherein the first current frame component is different from the second current frame component.
In yet another possible design of the first aspect, the loading the functional component to the current interface component or the current bezel component includes:
loading a functional component corresponding to the current interface component according to a preset corresponding relation;
loading a functional component corresponding to the current frame component;
and registering the functional components loaded to the current interface component and the current frame component to a preset message component, wherein the preset message component is used for acquiring message events of a target game and distributing the message events to the functional components.
In yet another possible design of the first aspect, the constructing obtains a current minimap of the target game, including:
displaying the current interface component at a preset position in a game interface of the target game;
determining a target display position of the current frame assembly in the game interface according to the preset position;
and displaying the current frame assembly at the target display position, and constructing to obtain a current small map of the target game.
In yet another possible design of the first aspect, after the loading the functional component to the current interface component or the current border component and constructing the current minimap of the target game, the method further includes:
acquiring a first message event distributed to a first functional component loaded on the current interface component by the preset message component;
according to the first message event, a next frame component of the small map is created, and the positions of the next frame component and the current frame component in a game interface of the target game are different;
and constructing and obtaining a next small map of the target game according to the current interface component and the next frame component.
In yet another possible design of the first aspect, after creating the next frame component of the minimap according to the first message event, the method further includes:
eliminating the current minimap from the game interface.
In yet another possible design of the first aspect, the determining, according to the current game data of the target game, that the current interface component and the current border component of the minimap are preceded further includes:
and obtaining the game data of the target game from the server of the target game and/or the local client of the target game.
In a second aspect, an embodiment of the present application provides a device for constructing a mini map in a game, including:
the demand acquisition module is used for acquiring the functional demand of the small map of the target game and establishing a functional component corresponding to the functional demand;
the component construction module is used for constructing a current interface component and a current frame component of the small map according to current game data of the target game, wherein the current interface component is used for displaying an interface of the small map, and the current frame component is used for interaction between a user and the small map;
and the map building module is used for loading the functional components to the current interface component or the current frame component to build a current small map of the target game, and the functional components loaded to the current interface component or the current frame component are used for realizing the functional requirements on the current interface component or the current frame component when triggered by a message event of the target game.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and at least one processor;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory, causing the at least one processor to perform the method as described above.
In a fourth aspect, the present application provides a readable storage medium, in which computer instructions are stored, and when executed by a processor, the computer instructions are used to implement the method described above.
In a fifth aspect, the present application provides a program product including computer instructions, which when executed by a processor implement the method as described above.
According to the method and the device for constructing the mini map in the game and the electronic equipment, each function requirement is abstracted into one corresponding function component, when the mini map in the game is constructed, the interface display and the function logic of the mini map can be isolated, a developer can conveniently develop the functions, the situation that each interface display uses one set of independent codes for maintenance, the codes are repeatedly written is avoided, and the development efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application;
FIG. 1 is a scene schematic diagram of a method for constructing a small map in a game according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a first embodiment of a method for constructing a small map in a game according to the embodiment of the present application;
FIG. 3 is a schematic view of a first game interface provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart of a second embodiment of a method for constructing a mini-map in a game according to the embodiment of the present application;
FIG. 5 is a schematic view of a second game interface provided by an embodiment of the present application;
FIG. 6 is a schematic view of a third game interface provided in an embodiment of the present application;
FIG. 7 is a schematic view of a first current bezel assembly according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating a second current bezel assembly according to an embodiment of the present application;
FIG. 9 is a block diagram of a component framework of a minimap provided in accordance with an embodiment of the present application;
FIG. 10 is a schematic illustration of a minimap provided in an embodiment of the present application;
FIG. 11 is a schematic illustration of a current interface component provided by an embodiment of the present application;
fig. 12 is a schematic diagram of switching positions of a small map according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a device for constructing a small map in a game according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms referred to in this application are explained first:
a small map:
a minimap is a map that is often placed at the corner of an electronic game screen to assist game players in determining the location in the game world of the character they are operating on. The elements shown in the minimap generally vary depending on the type of game, and may be, in particular, player characters, surrounding terrain, allied military units or structures, enemies, places of importance, or props. It is very common in electronic games and sports because small maps are responsible for indicating important elements throughout the game world. Most first-person shooter games also have some version or variation of a small map, usually showing an enemy in real time.
UI:
A User Interface (User Interface) is a medium for interaction and information exchange between a system of electronic devices and a User, and it implements conversion between an internal form of information and a human-acceptable form.
Fig. 1 is a scene schematic diagram of a method for constructing a minimap in a game according to an embodiment of the present disclosure, as shown in fig. 1, a mobile terminal 11 may be a mobile phone, some electronic games are installed in the mobile phone, when a user opens the electronic games to play the games, a game screen is displayed in a display screen of the mobile phone, and the user may click, slide, and the like on the display screen according to content displayed in the game screen to operate a virtual character in the game screen, and control the virtual character to move, attack, and the like. In order to improve the game experience of the user, a small map of the game world can be displayed on the display screen, and the user can judge the position of the virtual character in the game world according to the small map.
During game development, the small map is designed primarily to facilitate the user in determining the position of the virtual character in the game world and showing the overall appearance of the game world. However, with the iteration and refinement of the game, the existing small map design not only meets the information display, but also contains a great deal of interactive operation logic. For example, the current minimap is not only used for displaying various unit information such as virtual characters, soldiers/monsters, defense towers and the like, but also used for sending various information to facilitate communication between players, such as information for informing teammates of collection, initiating attack, withdrawing and the like. Generally, the current small map has richer bearing information and stronger functional requirements.
In the prior art, when a minimap is developed, developers generally design a set of program codes to maintain the interface display of the minimap. For example, the minimap can be displayed on the upper left corner of the display screen, or can be displayed on the upper right corner of the display screen, developers can respectively develop a set of program codes, when the minimap is required to be displayed on the upper left corner of the display screen, the first set of program codes is called, and when the minimap is required to be displayed on the upper right corner of the display screen, the other set of program codes is called. Thus, each interface display of the minimap corresponds to a set of program codes. Along with the increase of the functional requirement of the small map, the repeatability can appear in the program code, the code redundancy is caused, the maintenance and the management are inconvenient, the functional expansibility of the development mode is poor, the subsequent function expansion of developers is inconvenient, and the development efficiency is influenced.
In order to solve the above problems, embodiments of the present application provide a method and an apparatus for constructing a mini map in a game, and an electronic device, where a corresponding function component is created for each function requirement of a user, and then the function component is loaded into an interface component or a frame component, so that the interfaces, frames, and function components of the mini map can be isolated from each other, and a designer does not need to repeatedly write program codes of the interfaces and frames, thereby improving development efficiency, and facilitating function expansion and maintenance management of the designer.
Fig. 2 is a schematic flow chart of a first embodiment of a method for constructing a mini map in a game according to an embodiment of the present application, where the method may be applied to a computer device or a mobile terminal. As shown in fig. 2, the method may specifically include the following steps:
s201, acquiring function requirements of the small map of the target game, and establishing a function component corresponding to the function requirements.
In this embodiment, the functional requirement is used to improve the game experience of the player, for example, the functional requirement may be to display the position of a virtual character operated by the player in a small map, display the position of a target building in the small map, send information in the small map (for example, a certain player marks a position in the small map, notify other players that the player is heading to the position, or notify other players that the position is aggregated, or notify other players that the position is attacked, etc.).
The functional component may be implemented by a program code, and when the functional component is executed by a computer device or a mobile terminal device, the corresponding functional requirement may be implemented on a small map.
For example, fig. 3 is a schematic view of a first game interface provided in an embodiment of the present application, as shown in fig. 3, a small map is displayed on the upper right side of the game interface 31, the small map includes an interface component 321 and a frame component 322 surrounding the side of the interface component 321, a plurality of function keys are disposed in the frame component 322, each of the function keys corresponds to a function component, when a player clicks the function keys, the corresponding function component is triggered, and the function component realizes a corresponding function requirement in the interface component 321.
Illustratively, the function keys include an aggregation key, a query key, an attack key and a minimap closing key, and illustratively, a player can click on the aggregation key, and the function component corresponding to the aggregation key displays an aggregation prompt on the interface component 321 according to the click operation of the player, so as to inform other players of operating the respective virtual character aggregation.
Illustratively, functional components for displaying the avatar boxes of other players (for example, player a, player b, player c, player d, player e, player f, and player g) are also loaded in the frame component 322, and illustratively, when a certain player is killed, the avatar box is turned off, and after the player regenerates, the avatar box is turned on again, so that the other players can know the survival state of each player in real time conveniently.
For example, the interface component 321 is loaded with a function component that can display the position of the virtual character operated by the player in the interface component 321, for example, the positions of the virtual characters operated by the player a, the player b, the player c, the player d, the player e, the player f, and the player g.
S202, determining a current interface component and a current frame component of the small map according to current game data of the target game.
The current interface component is used for displaying an interface of the small map, and the current frame component is used for interaction between a user and the small map.
Specifically, the current interface component may be the interface component 321, the current bezel component may be the bezel component 322, and both the current interface component and the current bezel component are implemented by a piece of program code, and when the program code is executed by the computer device or the mobile terminal, the interface component 321 is displayed on a display screen of the computer device or the mobile terminal, and the bezel component 322 is displayed on the display screen.
It should be noted that, when neither the current interface component nor the current border component has a function component loaded, it may be regarded as a UI node that cannot fulfill the function requirement.
Illustratively, the target game may be a pre-downloaded multiplayer online competitive game in a computer device or a mobile terminal. For example, a plurality of maps are included in the multiplayer online competitive game, each game played by the player can only load one map, the loaded maps of different games can be different, and when the game starts, the player can set the display of the game content, for example, a small map is set to be displayed in the upper right corner of the display screen by default.
The current game data is game data included when the player plays the game, and illustratively, the current game data includes setting information of the player, map information loaded by the game, and the like.
In this embodiment, each map may be pre-designed and stored in the local or cloud, and the computer device or the mobile terminal determines the interface component corresponding to the loaded map by using the corresponding relationship according to the map that needs to be loaded in the current game, for example, the interface component 321 is displayed on the game interface 31.
In some implementations, the game data for the target game may be obtained from a server of the target game and/or a local client of the target game.
For example, the map information loaded in the long game in the game data may be acquired from a local client, and the setting information of the player may be acquired from a server. For example, a player may set a minimap to be displayed in the upper right of the game interface during the game, and the setting information generated by the player is first sent to the server, and then the server is forwarded to the computer device or the mobile terminal.
And S203, loading the functional component to the current interface component or the current frame component, and constructing to obtain the current minimap of the target game.
The function components loaded on the current interface component or the current frame component are used for realizing function requirements on the current interface component or the current frame component when triggered by a message event of a target game.
In this embodiment, the functional component is used to implement a specific function, and may be regarded as an abstraction of a specific type of requirement, and it needs to be loaded to the interface component or the border component to be able to implement the specific function. Illustratively, taking the position of the virtual character operated by the player displayed in the interface component 321 as a functional component as an example, the functional component needs to take the interface component 321 as a carrier when implementing its specific function.
Some function components are loaded in the current interface component, some function components are loaded in the current border component, and the position of the virtual character operated by the player is displayed, and the function components are loaded in the current interface component.
The message events of the target game can be divided into two types, one is a message event generated by the interaction of the player and the minimap, and the other is a notification message event of the server parameter. The messages generated by the interaction of the player and the small map mainly comprise clicks, long-time pressing, expansion and the like, and the message events are distributed to the corresponding functional components to trigger the corresponding functional components to realize the functional requirements. The notification message event of the server parameter is mainly a message event triggered by a player in a game and used for expressing a function, for example, a virtual character operated by the player a kills a virtual character operated by the player B in the game, the message event triggers a corresponding functional component, so that the corresponding functional component displays a prompt message on an interface component, wherein the prompt message comprises characters and/or pictures for prompting other players, and the virtual character operated by the player B is killed by the virtual character operated by the player a.
According to the method and the device, the corresponding functional components are established for each functional requirement, so that the functional components are isolated from the interface components and the frame components, the functional components are loaded into the interface components or the frame components when the small map is constructed, the interface components and the frame components can be reused when the functional requirements are increased subsequently, the development workload is reduced, and the development efficiency is improved.
Fig. 4 is a flowchart illustrating a second embodiment of a method for constructing a mini map in a game according to an embodiment of the present application, and as shown in fig. 4, S202 in the above step may be specifically implemented by the following steps:
s401, acquiring a function requirement of a small map of a target game, and establishing a function component corresponding to the function requirement;
s402, obtaining game map information and a frame display position of a small map according to current game data;
s403, determining to obtain a current interface component according to the game map information;
and S404, creating and obtaining a current frame component according to the frame display position of the small map.
S405, loading the functional components to the current interface component or the current frame component, and constructing to obtain a current minimap of the target game.
Step S401 and step S405 correspond to step S201 and step S203, and are not described herein again. This embodiment will explain S402 and S403.
In this embodiment, taking the target game as an example of a multiplayer online competitive game, the target game includes a plurality of different game maps, and when the game maps are different, the loaded interface component will also be changed.
For example, fig. 5 is a schematic diagram of a second game interface provided in the embodiment of the present application, and as shown in fig. 5, an interface component 521 displayed on the game interface 51 is different from the interface component 321 in fig. 3, because the game map used in fig. 3 is different from the game map used in fig. 5.
The frame component 522 is also different from the frame component 322 in fig. 3, in which the frame component 522 includes a zoom key and a setting key, which correspond to one functional component respectively, the functional component corresponding to the zoom key is used to implement zooming in or out of the size of the small map, and the functional component corresponding to the setting key is used for a player to set the small map, for example, setting the display position of the small map in the game interface 51.
For example, fig. 6 is a schematic view of a third game interface provided in the embodiment of the present application, as shown in fig. 6, a small map is displayed on the upper left of the game interface 61, the small map includes an interface component 621 and a frame component 622 surrounding the side of the interface component 621, some function keys, such as a set key and a zoom key, are arranged in the frame component 622, and the function keys all correspond to one function component, and when a player clicks the function keys, the corresponding function component is triggered to implement the function requirement. There are also some virtual buttons in the game interface 61 for the player to operate, such as "go back to town", "attack", "law", and "cure", etc.
In this embodiment, the frame display position may be set by the player, and the player sets the frame display position to be the upper left, as shown in fig. 6, the frame element 622 is displayed on the upper left of the game interface 61, and the player sets the frame display position to be the upper right, as shown in fig. 3, the frame element 322 is displayed on the upper right of the game interface 31.
For example, the bezel elements shown in different positions may be different, as shown in fig. 3 and fig. 6, the bezel element 322 and the bezel element 622 are different from each other in terms of the loaded functional elements, the bezel element 322 is loaded with an aggregation key, an inquiry key, an attack key, etc., and the bezel element 622 is loaded with a zoom key and a setup key, which correspond to different functional elements respectively.
In one game, the current interface component is not changed, but in one game, the frame components may be multiple, and the frame components may be dynamically loaded according to the requirements of the player during the running process of the game, such as loading the frame component 322 or loading the frame component 622.
In an embodiment, the creating of the current border component according to the border display position of the small map may be specifically implemented by the following steps:
if the frame display position is the left side of the game interface of the target game, a first current frame component is created;
and if the frame display position is the right side of the game interface of the target game, establishing to obtain a second current frame component.
And the first current frame component and the second current frame component are different.
Specifically, the frame display position is used to indicate a display position of the frame component in the game interface, and if the frame display position is on the left side of the game interface of the target game, the frame component needs to be displayed on the upper left side of the game interface, and at this time, a first current frame component needs to be created. Similarly, if the frame display position is to the right of the game interface of the target game, a second current frame component needs to be created.
For example, fig. 7 is a schematic illustration of a first current frame element provided by an embodiment of the present application, and as shown in fig. 7, a first current frame element 72 is shown on the upper left of a game interface 71. Fig. 8 is a schematic view illustrating a second current frame element according to an embodiment of the present application, and as shown in fig. 8, the second current frame element 82 is shown on the upper right of the game interface 81, and the first current frame element 72 is different from the second current frame element 82.
According to the method and the device, the position of the current frame component is further determined by determining the position of the current interface component, so that the current interface component in each game can be ensured not to change, the current frame component can be adjusted according to the position of the current interface component, program codes of the current interface component do not need to be repeatedly developed, and the development efficiency is improved.
Fig. 9 is a schematic component framework diagram of a minimap according to an embodiment of the present disclosure, as shown in fig. 9, which includes a preset message component 91, an interface component 92, a first border component 93, a second border component 94, and a function component 95. There is only one interface component 92 in each game, which is loaded with several functional components, and the frame components may be two or more, illustratively, include a first frame component 93 and a second frame component 94, each frame component is loaded with several functional components correspondingly. It should be noted that the functional requirements implemented by the functional components loaded in the interface component 92 and the functional components loaded in the bezel component 93 are different.
In the step S203, "loading the functional component to the current interface component or the current frame component" may be specifically implemented by the following steps:
loading a functional component corresponding to the current interface component according to a preset corresponding relation;
loading a functional component corresponding to the current frame component;
and registering the functional components loaded to the current interface component and the functional components loaded to the current frame component to a preset message component.
The preset message component is used for acquiring the message event of the target game and distributing the message event to the function component.
In this embodiment, the preset correspondence is used to instruct to load the functional component to the current interface component or the current bezel component. Illustratively, a function component that displays the position of the virtual character operated by the player in the interface component 321 should be loaded into the current interface component.
The current interface component is used for creating a current minimap UI object, and the function component loaded in the current interface component is used for realizing specific function requirements. The current frame component is mainly responsible for the current small map edge UI node, and the functional components loaded on the current frame component are used for realizing the small map edge UI node function, for example, the functional components comprise a zooming button used for realizing the zooming of the small map; an aggregation button for initiating an aggregation message.
Each functional component registered to the preset message component is responsible for realizing a specific function, and the preset message component is required to register and listen to an interested message, for example, each functional component can set a listening event in the preset message component and listen to whether the interested message event exists, if the interested message event exists, the functional component can be triggered, and the specific function is realized in the current interface component or the current frame component.
Illustratively, the message events obtained by the preset message component include the above two types, namely, one type is a message event generated by the interaction of the player and the minimap, and the other type is a notification message event of the server parameter.
Fig. 10 is a schematic illustration of a small map provided in the embodiment of the present application, and as shown in fig. 10, the small map displayed on the game interface 100 is located at the upper left of the game interface 100, and includes an interface component 1001 and a frame component 1002. Further, the "constructing a current minimap of the target game" in step S203 may be specifically implemented by the following steps:
displaying the current interface component at a preset position in a game interface of a target game;
determining a target display position of the current frame assembly in the game interface according to a preset position;
and displaying the current frame assembly at the target display position, and constructing to obtain a current small map of the target game.
Specifically, in a game, the position of the current interface component on the game interface may change, but the content actually contained in the current interface component does not change. When the position of the current frame element on the game interface changes, the content of the current frame element also changes (the content of the frame element in fig. 3 is different from the content of the frame element in fig. 7).
Fig. 11 is a schematic diagram illustrating a current interface component provided in an embodiment of the present application, that is, map information, as shown in fig. 11, the map information included in the current interface component 110 does not change in a game, and in different games, the interface components in different games may be different due to different game maps used.
Illustratively, the map information includes obstacles, monster locations, map boundaries, and the like.
In this embodiment, the preset position may be a position set by the player as a default. For example, the player defaults to having the current interface element to be presented in the upper left corner of the game interface, and after entering the game, the current interface element will be presented in the upper left corner. The current frame component needs to surround the current interface component, so that after the display position of the current interface component is determined, the target display position can be further obtained.
Illustratively, the target presentation position is the side region of the current interface element.
According to the method and the device, the frame component is attached to the interface component to be combined together, the display effect can be improved, and a game player cannot feel that the minimap is formed by combining two UI nodes (namely the interface component and the frame component).
Further, on the basis of the above embodiments, in some embodiments, the method for constructing a small map in a game further includes the following steps:
acquiring a first message event distributed to a first functional component loaded on a current interface component by a preset message component;
creating a next frame component of the small map according to the first message event;
and constructing and obtaining a next small map of the target game according to the current interface component and the next frame component.
And the positions of the next frame component and the current frame component in the game interface of the target game are different.
In this embodiment, the first message event may be generated by the player, and the first message event is used to indicate that the player needs to switch the display position of the minimap, for example, to switch the minimap from the upper left display to the upper right display.
In a game, there may be more than one frame component, but only one frame component is displayed on the game interface, namely the current frame component. And if the preset message component receives a first message event generated by the player, the first message event is distributed to a first functional component of the current interface component, and the first functional component is used for realizing the switching management of the small map.
The function specifically realized by the first function component is to select the next frame component from the plurality of frame components, then display the next frame component to the upper right of the game interface, and adjust the position of the current interface component to be matched with the next frame component.
For example, fig. 12 is a schematic diagram of switching positions of a minimap provided in this embodiment, as shown in fig. 12, what is initially displayed on the upper left of a game interface 1200 is a current interface component 1201 and a current border component 1202, and when a player generates a first message event indicating that it is necessary to switch the display position of the minimap, the first functional component selects a next border component 1203, displays the next border component 1203 on the upper right of the game interface 1200, and adjusts the position of the current interface component 1201 and fits the next border component 1203.
According to the method and the device for displaying the small map, the next small map is created, in the game process, if a user adjusts the small map to be displayed on the right side, only the frame component on the right side needs to be created again, the interface component of the small map on the left side is reused, two sets of function codes are not needed to be used for respectively maintaining the small map on the left side and the small map on the right side, and code redundancy is reduced.
Further, on the basis of the above embodiments, in some embodiments, the method for constructing a small map in a game further includes the following steps:
the current minimap is eliminated from the game interface.
In this embodiment, after the next minimap is created, the current minimap is eliminated from the game interface.
For example, the current minimap includes a current interface component, a current border component, and a function component loaded in the current interface component or the current border component, which are removed from the display interface to improve the display effect of the game interface.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 13 is a schematic structural diagram of a device for constructing a mini map in a game according to an embodiment of the present application, and as shown in fig. 13, the device 1301 includes a requirement obtaining module 1302, a component constructing module 1303, and a map constructing module 1304.
The requirement obtaining module 1302 is configured to obtain a functional requirement for a small map of a target game, and establish a functional component corresponding to the functional requirement. The component building module 1303 is configured to build a current interface component and a current frame component of the small map according to current game data of the target game. The map building module 1303 is configured to load the functional component to the current interface component or the current frame component, and build a current minimap of the target game.
The current interface component is used for displaying an interface of the small map, and the current frame component is used for interaction between a user and the small map. The function components loaded on the current interface component or the current frame component are used for realizing function requirements on the current interface component or the current frame component when triggered by a message event of the target game.
In some embodiments, the component building module 1303 may be specifically configured to:
obtaining game map information and a frame display position of a small map according to current game data;
determining to obtain a current interface component according to the game map information;
and creating to obtain a current frame component according to the frame display position of the small map.
Optionally, in some embodiments, the component building module 1303 may be specifically configured to:
if the frame display position is the left side of the game interface of the target game, a first current frame component is created;
and if the frame display position is the right side of the game interface of the target game, establishing to obtain a second current frame component.
And the first current frame component and the second current frame component are different.
In some embodiments, the mapping module 1304 may be specifically configured to:
loading a functional component corresponding to the current interface component according to a preset corresponding relation;
loading a functional component corresponding to the current frame component;
and registering the functional components loaded to the current interface component and the functional components loaded to the current frame component to a preset message component.
The preset message component is used for acquiring the message event of the target game and distributing the message event to the function component.
Optionally, in some embodiments, the mapping module 1304 may be specifically configured to:
displaying the current interface component at a preset position in a game interface of a target game;
determining a target display position of the current frame assembly in the game interface according to a preset position;
and displaying the current frame assembly at the target display position, and constructing to obtain a current small map of the target game.
In some embodiments, the building apparatus 1301 further includes a map switching module, configured to:
acquiring a first message event distributed to a first functional component loaded on a current interface component by a preset message component;
according to the first message event, a next frame component of the small map is created, and the positions of the next frame component and the current frame component in a game interface of the target game are different;
and constructing and obtaining a next small map of the target game according to the current interface component and the next frame component.
Optionally, in some embodiments, the building apparatus 1301 further includes a map elimination module, configured to:
the current minimap is eliminated from the game interface.
In some embodiments, the building apparatus 1301 further includes a data acquiring module, configured to:
game data of the target game is obtained from a server of the target game and/or a local client of the target game.
The apparatus provided in the embodiment of the present application may be used to execute the method in the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the map building module may be a processing element that is separately installed, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the map building module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
Fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 14, the electronic device 140 includes: at least one processor 1401, memory 1402, bus 1403, and communication interface 1404.
Wherein: the processor 1401, the communication interface 1404 and the memory 1402 communicate with each other via the bus 1403.
A communication interface 1404 for communicating with other devices. The communication interface comprises a communication interface for data transmission, a display interface or an operation interface for man-machine interaction and the like.
A processor 1401 for executing computer executable instructions stored in the memory 1402, such that at least one processor may perform the relevant steps of the methods described in the above embodiments.
The processor may be a central processing unit, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And the memory is used for storing computer execution instructions. The memory may comprise high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
The embodiment also provides a readable storage medium, in which computer instructions are stored, and when at least one processor of the electronic device executes the computer instructions, the electronic device executes the method for constructing the mini-map in the game provided by the above various embodiments.
The present embodiments also provide a program product comprising computer instructions stored in a readable storage medium. The computer program/instructions may be read by at least one processor of the electronic device from a readable storage medium, and the execution of the computer program/instructions by the at least one processor causes the electronic device to implement the method for constructing a minimap in a game provided by the various embodiments described above.
In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for convenience of description and distinction and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A method for constructing a small map in a game is characterized by comprising the following steps:
acquiring a function requirement of a small map of a target game, and establishing a function component corresponding to the function requirement;
determining a current interface component and a current frame component of the small map according to the current game data of the target game, wherein the current interface component is used for displaying an interface of the small map, and the current frame component is used for a user to interact with the small map;
and loading the functional component to the current interface component or the current frame component to construct and obtain a current minimap of the target game, wherein the functional component loaded to the current interface component or the current frame component is used for realizing the functional requirement on the current interface component or the current frame component when triggered by a message event of the target game.
2. The method of claim 1, wherein determining a current interface component and a current bounding box component of a minimap based on current game data for the target game comprises:
obtaining game map information and a frame display position of a small map according to the current game data;
determining to obtain the current interface component according to the game map information;
and creating and obtaining the current frame assembly according to the frame display position of the small map.
3. The method of claim 2, wherein the creating the current border element according to the border display position of the minimap comprises:
if the frame display position is the left side of the game interface of the target game, a first current frame component is created;
and if the frame display position is the right side of the game interface of the target game, creating to obtain a second current frame component, wherein the first current frame component is different from the second current frame component.
4. The method of claim 1, wherein the loading the functional component to the current interface component or the current bezel component comprises:
loading a functional component corresponding to the current interface component according to a preset corresponding relation;
loading a functional component corresponding to the current frame component;
and registering the functional components loaded to the current interface component and the current frame component to a preset message component, wherein the preset message component is used for acquiring message events of a target game and distributing the message events to the functional components.
5. The method of claim 4, wherein the constructing obtains a current minimap of the target game, comprising:
displaying the current interface component at a preset position in a game interface of the target game;
determining a target display position of the current frame assembly in the game interface according to the preset position;
and displaying the current frame assembly at the target display position, and constructing to obtain a current small map of the target game.
6. The method of claim 5, wherein after loading the functional component into the current interface component or the current frame component and building the current minimap of the target game, further comprising:
acquiring a first message event distributed to a first functional component loaded on the current interface component by the preset message component;
according to the first message event, a next frame component of the small map is created, and the positions of the next frame component and the current frame component in a game interface of the target game are different;
and constructing and obtaining a next small map of the target game according to the current interface component and the next frame component.
7. The method of claim 6, wherein after creating a next frame component of the minimap according to the first message event, further comprising:
eliminating the current minimap from the game interface.
8. The method of claim 1, wherein determining the current interface component and the current border component of the minimap is preceded by determining the current interface component and the current border component of the minimap based on current game data for the target game, further comprising:
and obtaining the game data of the target game from the server of the target game and/or the local client of the target game.
9. A device for constructing a small map in a game is characterized by comprising:
the demand acquisition module is used for acquiring the functional demand of the small map of the target game and establishing a functional component corresponding to the functional demand;
the component construction module is used for constructing a current interface component and a current frame component of the small map according to current game data of the target game, wherein the current interface component is used for displaying an interface of the small map, and the current frame component is used for interaction between a user and the small map;
and the map building module is used for loading the functional components to the current interface component or the current frame component to build a current small map of the target game, and the functional components loaded to the current interface component or the current frame component are used for realizing the functional requirements on the current interface component or the current frame component when triggered by a message event of the target game.
10. An electronic device comprising a memory and at least one processor;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any one of claims 1-8.
11. A readable storage medium having stored therein computer instructions, which when executed by a processor, are adapted to implement the method of any one of claims 1-5.
12. A program product comprising computer instructions, characterized in that the computer instructions, when executed by a processor, implement the method of any of claims 1-8.
CN202111085287.9A 2021-09-16 2021-09-16 Method and device for constructing small map in game and electronic equipment Pending CN113797539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111085287.9A CN113797539A (en) 2021-09-16 2021-09-16 Method and device for constructing small map in game and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111085287.9A CN113797539A (en) 2021-09-16 2021-09-16 Method and device for constructing small map in game and electronic equipment

Publications (1)

Publication Number Publication Date
CN113797539A true CN113797539A (en) 2021-12-17

Family

ID=78895538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111085287.9A Pending CN113797539A (en) 2021-09-16 2021-09-16 Method and device for constructing small map in game and electronic equipment

Country Status (1)

Country Link
CN (1) CN113797539A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101613368B1 (en) * 2014-10-10 2016-04-18 주식회사 엔씨소프트 Method of reproducing online game replay, and production system thereof
JP2017170110A (en) * 2016-11-17 2017-09-28 株式会社セガゲームス Information processing device
CN107715454A (en) * 2017-09-01 2018-02-23 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
CN107741819A (en) * 2017-09-01 2018-02-27 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
US20190076739A1 (en) * 2017-09-12 2019-03-14 Netease (Hangzhou) Network Co.,Ltd. Information processing method, apparatus and computer readable storage medium
CN110115837A (en) * 2019-05-10 2019-08-13 网易(杭州)网络有限公司 Signal creating method, display methods, device, equipment, medium in game

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101613368B1 (en) * 2014-10-10 2016-04-18 주식회사 엔씨소프트 Method of reproducing online game replay, and production system thereof
JP2017170110A (en) * 2016-11-17 2017-09-28 株式会社セガゲームス Information processing device
CN107715454A (en) * 2017-09-01 2018-02-23 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
CN107741819A (en) * 2017-09-01 2018-02-27 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
US20190076739A1 (en) * 2017-09-12 2019-03-14 Netease (Hangzhou) Network Co.,Ltd. Information processing method, apparatus and computer readable storage medium
CN110115837A (en) * 2019-05-10 2019-08-13 网易(杭州)网络有限公司 Signal creating method, display methods, device, equipment, medium in game

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
游戏小胡: "王者荣耀新手入门攻略之界面操作篇", HTTPS://PVP.QQ.COM/WEB201605/NEWSDETAIL.SHTML?TID=487787, pages 4 *
百度: "王者荣耀:自定义按键怎么用?自定义按键小技巧", HTTPS://BAIJIAHAO.BAIDU.COM/S?ID=1657170632218417664&WFR=SPIDER&FOR=PC, pages 2 *
百度: "王者荣耀在游戏内如何让小地图展开后在右侧?", HTTPS://JINGYAN.BAIDU.COM/ARTICLE/6B18230909381DFA58E159DE.HTML, pages 1 - 3 *

Similar Documents

Publication Publication Date Title
US20220122310A1 (en) Method and apparatus for processing avatar usage data, device, and storage medium
JP2023552212A (en) Display method, device, equipment and computer program for game payment interface
CN110801629B (en) Method, device, terminal and medium for displaying virtual object life value prompt graph
TWI803224B (en) Contact person message display method, device, electronic apparatus, computer readable storage medium, and computer program product
JP2019017662A (en) Game processing program, game processing method, and game processor
CN111905363A (en) Virtual object control method, device, terminal and storage medium
KR20240033087A (en) Control methods, devices, devices, storage media and program products of opening operations in hypothetical scenarios
WO2022083451A1 (en) Skill selection method and apparatus for virtual object, and device, medium and program product
JP7459297B2 (en) Effect generation method, device, equipment and computer program in virtual environment
CN113274731B (en) Virtual character selection sequence adjustment method, device, equipment and storage medium
TW202243711A (en) Virtual object controlling method, device, computer apparatus, and storage medium
CN111589114B (en) Virtual object selection method, device, terminal and storage medium
CN113244609A (en) Multi-picture display method and device, storage medium and electronic equipment
CN111151004B (en) Game unit deployment method and device, electronic equipment and storage medium
JP2023502074A (en) Generating server-based help maps in video games
CN113797539A (en) Method and device for constructing small map in game and electronic equipment
JP7404541B2 (en) Virtual object control method, device, computer device, and computer program
CN113244615A (en) Chat panel display control method and device, storage medium and electronic equipment
CN111589115A (en) Visual field control method and device for virtual object, storage medium and computer equipment
WO2019213879A1 (en) Output content processing method, outputting method, electronic device and storage medium
CN111318016A (en) Map element display method and device, storage medium and electronic device
CN113713369B (en) Function key mapping method, simulation control method, device and equipment for multiplayer game
CN114840285B (en) Processing method and device in game, terminal equipment and storage medium
WO2024060924A1 (en) Interaction processing method and apparatus for virtual scene, and electronic device and storage medium
CN110215711B (en) Information processing method and device in game and storage medium

Legal Events

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