Game interface display control method and device, equipment and storage medium

Through Blueprint node coding technology, three-dimensional displacement information is calculated in response to interactive operations, the problem of single dynamic effects of the game interface and difficulty in reusing code is solved, diversified and efficient game interface design is achieved, and the player's interactive experience is enhanced.

CN118925224APending Publication Date: 2024-11-12NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411111667.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The dynamic effects of the existing game interface mainly change in fixed positions or paths, resulting in a lack of diversity in the picture performance content, which can easily cause aesthetic fatigue among players, and the interaction method is single and lack of fun. It requires multiple codes to achieve the dynamic effect of the interface. Modification is expensive and difficult to reuse.

Method used

By using blueprint node encoding, the preset displacement ratio and operation parameters are obtained when the graphical user interface responds to interactive operations, calculate three-dimensional displacement information, realize dynamic displacement movement of interface elements, generate smooth interactive animation effects, and allow the same set to be reused. The code is adapted to different scenarios.

Benefits of technology

It realizes dynamic effects of quickly generating different game interfaces based on the same set of code, enhances the interactive fun and visual diversity of the game interface, reduces development costs, and improves the flexibility of interface design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118925224A_ABST
    Figure CN118925224A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a game interface display control method and device, equipment and a storage medium. The method comprises the steps that blueprint node coding information is acquired; the blueprint node coding information is used for indicating the hierarchical relationship of each interface element in the three-dimensional relationship; responding to an interaction operation acting on the graphical user interface, and obtaining a displacement proportion and an operation parameter of the interaction operation which are set in advance for each interface element with the hierarchical relationship; inputting the displacement proportion and the operation parameter into the blueprint node coding information in response to obtain three-dimensional displacement information aiming at each interface element with hierarchical relationship; and feeding back the displacement movement of each interface element on the game interface according to the three-dimensional displacement information. By utilizing blueprint node coding, three-dimensional displacement feedback of interface elements with hierarchical relationship is realized visually according to interactive operation of a user on a terminal, so that a smooth displacement effect is generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer graphics and human-computer interaction technology, and in particular to a display control method for a game interface, a display control device for a game interface, a corresponding electronic device, and a corresponding computer-readable storage medium. Background Art

[0002] In order to make the game screen dynamic, there is a motion effect presentation in the game interface. The motion effect presented in the game interface can usually be expressed as displaying the interface elements contained in the game interface according to the dynamic effect.

[0003] However, current game interface dynamic effects mainly change and present dynamics at fixed positions or on a set fixed path. In order to make the dynamics of the picture natural, the dynamic effects in the game interface are usually repeated animations, which to a certain extent limits the expressive content of the picture. In addition, for game interfaces that open the same dynamic effect content multiple times, it will easily cause aesthetic fatigue to players and lack content diversity. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a display control method for a game interface, a display control device for a game interface, a corresponding electronic device, and a corresponding computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0005] The embodiment of the present invention discloses a display control method for a game interface, wherein a graphical user interface is displayed by a terminal device, wherein the graphical user interface displays a game interface, and the game interface is formed by superimposing a plurality of interface elements at different interface levels. The method comprises:

[0006] Obtaining blueprint node coding information; the blueprint node coding information is used to indicate the hierarchical relationship of each of the interface elements in a three-dimensional relationship;

[0007] In response to an interactive operation on the graphical user interface, obtaining a displacement ratio pre-set for each of the interface elements having a hierarchical relationship and an operation parameter of the interactive operation;

[0008] In response to inputting the displacement ratio and the operation parameter into the blueprint node encoding information, three-dimensional displacement information for each interface element having a hierarchical relationship is obtained;

[0009] The displacement movement of each interface element is fed back on the graphical user interface according to the three-dimensional displacement information.

[0010] The embodiment of the present invention further discloses a display control device for a game interface, which displays a graphical user interface through a terminal device, wherein the graphical user interface displays a game interface, and the game interface is formed by superimposing multiple interface elements at different interface levels. The device includes:

[0011] A blueprint node code acquisition module, used to acquire blueprint node code information; the blueprint node code information is used to indicate the hierarchical relationship of each of the interface elements in a three-dimensional relationship;

[0012] An interactive operation response module, used to respond to the interactive operation acting on the graphical user interface, and obtain the displacement ratios pre-set for each of the interface elements having a hierarchical relationship and the operation parameters of the interactive operation;

[0013] A three-dimensional displacement information acquisition module, for obtaining three-dimensional displacement information for each interface element having a hierarchical relationship in response to inputting the displacement ratio and the operation parameter into the blueprint node encoding information;

[0014] The displacement feedback module is used to feedback the displacement of each interface element on the graphical user interface according to the three-dimensional displacement information.

[0015] An embodiment of the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, any one of the display control methods for the game interface is implemented.

[0016] The embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any one of the display control methods for the game interface is implemented.

[0017] The embodiments of the present invention include the following advantages:

[0018] In an embodiment of the present invention, by utilizing blueprint node coding, when responding to interactive operations acting on a graphical user interface, the displacement ratios and operating parameters of the interactive operations pre-set for each interface element with a hierarchical relationship are obtained, and in response to the displacement ratios and operating parameters being input into the blueprint node coding information, three-dimensional displacement information for each interface element with a hierarchical relationship is obtained, and then the displacement movement of each interface element is fed back on the game interface according to the obtained three-dimensional displacement information, so that the interface elements with a hierarchical relationship are visually fed back in three-dimensional displacement according to the interactive operations acting on the graphical user interface, thereby producing a smooth displacement effect, achieving the effect of quickly generating interactive animations, and then achieving the purpose of quickly realizing dynamic effects of different game interfaces based on the same set of codes. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of a method for controlling the display of a game interface according to an embodiment of the present invention;

[0020] Figure 2 is a flowchart of another embodiment of a display control method for a game interface of the present invention;

[0021] FIG. 3A to FIG. 3D It is a blueprint logic schematic diagram provided by an embodiment of the present invention;

[0022] FIG. 4A to FIG. 4B is a schematic diagram of parameter settings provided by an embodiment of the present invention;

[0023] Figure 5 It is a structural block diagram of an embodiment of a display control device for a game interface of the present invention. DETAILED DESCRIPTION

[0024] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0025] In the related art, the current dynamic effects of game interfaces are mainly to change and present dynamics at a fixed position or on a set fixed path. In order to make the dynamics of the picture natural, the dynamic effects in the game interface are usually repeated animations. Due to the need for dynamic loops in the game interface, the content displayed by the game interface is fixed when the animation is played repeatedly, which will limit the display content of the picture to a certain extent, making the presented game interface lack content diversity, and for game interfaces that open the same dynamic effects to present content multiple times, it will easily cause aesthetic fatigue to players; and the current interface dynamic effects only use the game interface as a flat information transmission medium, lacking interaction with players, such as the lack of interface counterattacks and interesting easter eggs hidden when users browse the game interface, and lack of fun. Even if there is interaction, it is only the interaction between the user and the game interface through clicking, dragging, etc. The interaction method is single, making it difficult for players to immerse themselves in even concrete scenes and environments. In addition, when implementing the design of real-time interaction between a graphical user interface and its content, it is usually necessary to write a separate set of codes for each graphical user interface. That is, in order to overcome the above problems, it is necessary to optimize the interface animation effect by modifying the program code multiple times. When reusing the same effect for another graphical user interface, it may be necessary to readjust the code values ​​and the different correspondences between multiple layers to adapt to changes in different scene spaces. Not only is the process time-consuming and costly, but the interface designer cannot intuitively control the effect presentation.

[0026] The embodiment of the present invention uses blueprint node coding to obtain the displacement ratio and interactive operation parameters pre-set for each interface element with a hierarchical relationship in response to the interactive operation acting on the graphical user interface, and responds to the displacement ratio and operation parameters input into the blueprint node coding information to obtain the three-dimensional displacement information for each interface element with a hierarchical relationship, and then feedback the displacement movement of each interface element on the game interface according to the obtained three-dimensional displacement information, so as to realize the interface elements with a hierarchical relationship to visually feedback the three-dimensional displacement according to the interactive operation of the user in the graphical user interface, thereby generating a smooth displacement effect, achieving the effect of quickly generating interactive animation, and then realizing the purpose of quickly realizing different game interface dynamic effects based on the same set of codes. Among them, according to the gravity of the user operating the terminal or the moving operation of the graphical user interface, visual three-dimensional displacement feedback can be provided in the game interface, so as to generate real-time interactive feedback according to the user operation in the game interface, so that the game interface can change the original fixed animation effect and generate rich screen content for the user's real-time operation; it can also allow the same set of blueprint node coding information to be reused, and the interface content changes in different scenes can be reused by modifying the parameters, thereby reducing. In addition, it can also be linked to the reward system to display feedback of the originally hidden interactive rewards on the game interface through the three-dimensional movement of interface elements, thereby enhancing the gaming experience and interactive fun between the user and the game interface.

[0027] Reference Figure 1 , shows a flowchart of a method for controlling the display of a game interface according to an embodiment of the present invention, which may specifically include the following steps:

[0028] Step 101, obtaining blueprint node encoding information;

[0029] In the embodiment of the present invention, the terminal device displays a graphical user interface, and a game interface may be displayed in the graphical user interface. The displayed game interface may be formed by superimposing multiple interface elements of different interface levels.

[0030] The blueprint node encoding information can be used to indicate the hierarchical relationship of each interface element in a three-dimensional relationship, and can be used to perform corresponding displacement control on each interface element with a hierarchical relationship on the game interface during execution.

[0031] Before obtaining the blueprint node encoding information, the blueprint node can be constructed. In order to realize the displacement control of each interface element with a hierarchical relationship on the interface, when constructing the blueprint node encoding, the hierarchy of the interface elements, coordinate system and transformation, animation and transition effects, user input and event processing, blueprint nodes and logic, etc. need to be considered. Among them, the hierarchy of interface elements mainly considers the hierarchical relationship between interface elements, such as which interface elements are located in front of or behind other interface elements; coordinate systems and transformations consider the coordinate systems used by games or applications, including screen coordinates, world coordinates or local coordinates, to determine how to control the position of elements through transformations (such as translation, rotation and scaling); animation and transition effects consider designing smooth animations and transition effects to ensure that the displacement of elements looks natural and conforms to the user experience, which may include using easing functions to simulate physical movement in the real world; user input and event processing consider how users interact with interface elements and the specific responses to the corresponding interactions, in order to write corresponding event processing logic to trigger the displacement of elements; blueprint nodes and logic consider using blueprint systems (such as Unreal Engine's blueprints or Unity's visual scripts) to create nodes and connections to implement the required displacement control logic, which may include using Timeline nodes to control the animation timeline, or using Vector nodes to process position data, etc.

[0032] It should be noted that the embodiments of the present invention do not limit the specific construction method and construction process of the blueprint node.

[0033] Step 102, in response to an interactive operation on the graphical user interface, obtaining displacement ratios and interactive operation parameters pre-set for each interface element having a hierarchical relationship;

[0034] The blueprint node encoding information has corresponding event processing and corresponding displacement control logic. At this time, it can respond to the user's interactive operation on the terminal where the interface is located, and obtain the displacement ratio of each interface element with a hierarchical relationship. Among them, the displacement ratio measures the relative measurement of the position change of the interface element caused by the user's interactive operation. In user interface design, the displacement ratio is usually used to control the movement distance of interface elements (such as buttons, icons, windows, etc.) on the screen. It is a unitless value that represents the proportional relationship between the actual displacement of the element and the displacement of the user operation.

[0035] For example, if a user drags an interface element by touching the screen, the specific offset of the interface element can be determined by combining the operation parameters of the interactive operation and the displacement ratio pre-set for the interface element. If the displacement ratio is set to 1, the interface element will move according to the actual distance the user drags; if the displacement ratio is set to 0.5, the interface element will only move half of the distance the user drags; if the displacement ratio is set to 2, the interface element will move twice the distance the user drags.

[0036] In practical applications, the displacement ratios of interface elements with different hierarchical relationships are different.

[0037] Step 103, in response to inputting the displacement ratio and the operation parameter into the blueprint node encoding information, obtaining three-dimensional displacement information for each interface element having a hierarchical relationship;

[0038] In blueprint node coding, nodes can be created to receive inputs of displacement scale and operation parameters. These nodes may include mathematical operation nodes (such as multiplication nodes) for applying the displacement scale to the current position of the element to determine the three-dimensional displacement information of the element in combination with the displacement scale and operation parameter interface.

[0039] In one embodiment of the present invention, blueprint node coding may be used to calculate the three-dimensional displacement information of each interface element.

[0040] Step 104: Feedback the displacement of each interface element on the game interface according to the three-dimensional displacement information.

[0041] After calculating the three-dimensional displacement information for each interface element with a hierarchical relationship, the calculated three-dimensional displacement information can be applied to the interface element to feed back the displacement movement of each interface element on the interface according to the three-dimensional displacement information.

[0042] In an embodiment of the present invention, by utilizing blueprint node coding, when responding to interactive operations acting on a graphical user interface, the displacement ratios and operating parameters of the interactive operations pre-set for each interface element with a hierarchical relationship are obtained, and in response to the displacement ratios and operating parameters being input into the blueprint node coding information, three-dimensional displacement information for each interface element with a hierarchical relationship is obtained, and then the displacement movement of each interface element is fed back on the game interface according to the obtained three-dimensional displacement information, so that the interface elements with a hierarchical relationship are visually fed back in three-dimensional displacement according to the interactive operations acting on the graphical user interface, thereby producing a smooth displacement effect, achieving the effect of quickly generating interactive animations, and then achieving the purpose of quickly realizing dynamic effects of different game interfaces based on the same set of codes.

[0043] Reference Figure 2, shows a flowchart of another embodiment of a display control method for a game interface of the present invention, which may specifically include the following steps:

[0044] Step 201, construct a blueprint node and obtain blueprint node encoding information;

[0045] In the embodiment of the present invention, blueprint node coding can be used to implement feedback of visual three-dimensional displacement of interface elements with a hierarchical relationship according to the user's interactive operation on the terminal.

[0046] In one embodiment of the present invention, the blueprint node may be constructed first, and then the blueprint node encoding information may be obtained.

[0047] Specifically, when building blueprint node coding, what needs to be considered are the hierarchy of interface elements, coordinate systems and transformations, animation and transition effects, user input and event processing, blueprint nodes and logic, etc.

[0048] The hierarchical structure of interface elements is specifically manifested in the hierarchical relationship between various interface elements.

[0049] In one embodiment of the present invention, the screen scene usually has different depth levels, and the depth information of the screen scene can be obtained at this time. The depth information can be used to indicate the front and back distance of the screen scene in the game interface, which can be specifically expressed as the distance between the object in the scene and the camera (or observer). In actual applications, the screen layers of each interface level can be divided according to the front and back distance of the screen scene in the game in the preset blueprint, and multiple interface nodes arranged in a preset order can be obtained to classify the various elements in the interface according to their position in the scene (i.e., the distance from the screen background), and create an interface node for each depth level, which can be used to organize and manage interface elements belonging to the same level.

[0050] Different interface nodes can be used to indicate different depth levels in the screen scene. After creating an interface node for managing interface elements, the distance between each interface element and the screen background in the screen scene can be obtained, and interface elements with the same distance can be placed in the same interface node, that is, elements with the same distance can be regarded as being at the same depth level, thereby determining the hierarchical relationship of each interface element.

[0051] It should be noted that the interface elements are placed in the corresponding interface nodes and arranged in a preset order. Generally, the principle followed by the preset order may be that elements farther from the observer are placed in a lower layer, while elements closer to the observer are placed in a higher layer.

[0052] For blueprint nodes and logic, it can be expressed as adding interface node configuration parameter items according to the number of interface nodes in the preset blueprint. Among them, each interface node configuration parameter item is used to control the interface elements under the interface node corresponding to each depth of field level, which helps to better control the depth information in the subsequent rendering and synthesis process.

[0053] The interface node configuration parameter items may include an interface node name item and a movement ratio configuration item.

[0054] In one embodiment of the present invention, after adding the same number of interface node configuration parameter items according to the number of interface nodes, the interface node names and displacement ratio values ​​of each interface node can also be input into the interface node name item and the movement ratio configuration item respectively in a preset order.

[0055] For example, you can enter the required displacement ratio value under the corresponding interface node. The displacement is the change on the X-axis, and the input value will be output proportionally. Among them, a positive value can represent movement in the direction of gravity sensing or mouse movement, a negative value can represent movement in the opposite direction, and 0 can represent stillness without sensing movement.

[0056] It should be noted that the displacement ratio values ​​of the interface nodes corresponding to different depth of field levels are different, where the displacement ratio value is positively correlated with the depth of field level, that is, as the distance between the picture and the background increases, the depth of field level increases, and the movement ratio increases; the numerical sign of the displacement ratio value can be used to indicate the movement direction of the interface elements under the corresponding interface node, which is the same or opposite to the interaction direction of the user's interactive operation on the terminal where the interface is located.

[0057] Exemplarily, different displacement ratio values ​​can be input according to the distance between the picture and the scene. For example, for the bottom layer, it needs to be opposite to the moving direction, and a negative value can be input, for example, a moving ratio of -0.12 can be input; for the second layer, assuming it is a beach layer, a moving ratio of 0.06 can be input, and the interface elements under this interface node can move with the gravity sensor and the mouse movement direction; for the third layer, assuming it is an amusement park facility 10 meters away from the background, the interface elements under this interface node can follow the gravity sensor and the mouse movement direction, and the moving ratio is 0.1; assuming that the strategy of increasing the input moving ratio by 0.04 for every 10 meters increase in distance from the background can be followed, then for the fourth layer, if it is an amusement park facility 20 meters away from the background, the interface elements under this interface node can follow the gravity sensor In response to the movement direction of the mouse, the movement ratio can be 0.14; for the fifth layer, if it is an amusement park facility 30 meters away from the background, the interface elements under this interface node can follow the gravity sensing and the movement direction of the mouse, and the movement ratio can be 0.18; for the sixth layer, if it is an amusement park facility 40 meters away from the background, the interface elements under this interface node can follow the gravity sensing and the movement direction of the mouse, and the movement ratio can be 0.22; for the seventh layer, assuming it is a toy and reward layer, in order to prompt rewards and shape a sense of three-dimensional scene, the movement direction of the interface elements under this interface node can be opposite to the sensing, and the input movement ratio can be -0.3; for the eighth layer, assuming it is a foreground layer 50 meters away from the background, the interface elements under this interface node can follow the movement direction, and the input movement ratio can be 0.3.

[0058] In practical applications, you can mainly create blueprint projects and write blueprint logic in turbo.

[0059] Specifically, FIG. 3A to FIG. 3D As shown, in the written blueprint logic, the required values ​​and the required corresponding relationships can be established in the blueprint.

[0060] like Figure 3AAs shown, the blueprint start event may refer to a related trigger event for blueprint node encoding, that is, the blueprint start event may be responded to to execute the subsequent blueprint logic. In the process of encoding the blueprint node, the blueprint start event may be set and the judgment of whether it is a mobile terminal may be set, so that the subsequent blueprint logic may be executed only after responding to the corresponding blueprint start event and determining it to be a mobile terminal (i.e. IsMobile); when it is determined to be a mobile terminal, the parameters may be set, specifically, the interface node (i.e. Panel_center) may be used as the root node to traverse the interface node (i.e. Panel_center) to set the parameters of the for loop, and the set parameter b is mainly used to indicate the different depth of field levels of the interface node in the screen scene. In actual applications, the container type of parameter b is an array. At this time, the node names of interface nodes with different depth of field levels in the picture scene can be found, such as Panel_bg_di, Panel_mid_beach, Panel_mid_0, Panel_mid_1, Panel_mid_2, Panel_mid_3, Panel_mid_5, Panel_ui_mengzai and Panel_front, etc., which can be obtained as elements in the array. In actual applications, this can be achieved through recursive search; then, each child node under a certain interface node, that is, each interface element, can be processed.

[0061] The processing of each interface element, such as Figure 3B As shown, the coordinates of the interface elements, i.e., the x-axis and y-axis coordinates, can be obtained and added to the array init_pos as array elements; a timer can be added to perform interaction detection based on the interval, number of repetitions, delay, and keywords set by the timer, such as interaction detection of gravity sensing operations or interface movement operations, to update the coordinates of the aforementioned interface elements and implement interactive feedback. In actual applications, the detection of interaction can be implemented through branch judgment, such as gravity, mouse position, etc.

[0062] like Figure 3CAs shown, for the interactive feedback of gravity sensing operation, the data calculated by using the built-in accelerometer data of the operating mobile terminal is mainly used for the lateral position of the UI node, and the x-coordinate of the mobile terminal device due to gravity can be obtained, that is, the x-coordinate of gravity can refer to the acceleration data on the x-axis. This data can be used to simulate the movement or tilt of the object in the x-axis direction. At this time, it can be multiplied with the displacement ratio to obtain the offset (i.e., new_offset) of the interface element due to gravity sensing; for the interactive feedback of the interface movement operation, if the mouse is in the window, the offset (i.e., new_offset) caused by the mouse movement to the interface element can be generated by obtaining the mouse position and the weight for the interface element, i.e., the displacement ratio; if the mouse is not in the window, the preset offset can be obtained at this time. In addition, when calculating the offset, smoothing can also be performed to make the image or data look more continuous and smooth, and reduce mutations and jagged edges. In practical applications, this can be achieved through the processing of smooth_acc.

[0063] For the specific interactive feedback implementation, the following interactive feedback logic can be written so that it can respond to the displacement ratio and operation parameters input into the blueprint node encoding information to obtain the three-dimensional displacement information for each interface element with a hierarchical relationship. Specifically, after responding to the displacement ratio and operation parameters input into the blueprint node encoding information, the parameter a for each interface node can be obtained, that is, the parameter a refers to the displacement ratio, and the container type of the parameter a can be an array. At this time, the child nodes under the corresponding interface node, that is, each interface element, can be searched recursively, and the displacement direction can be determined according to the gravity sensing direction or the mouse movement direction, and then the lateral displacement distance is calculated in combination with the operation parameters and the displacement ratio. Specifically, the displacement position of the corresponding interface element is obtained by calculating according to the offset of the corresponding child node and the corresponding displacement ratio.

[0064] Among them, Figure 4AAs shown, parameter b represents different depth levels of the interface node in the picture scene, the container type of parameter b is an array, and the data type can be BPVarString, that is, a string. For each array corresponding to each interface node, Index[X] can be used to represent it, where X=1, 2, 3, 4...8, etc., and the array element is parameter b, which can be the node name of the interface node with different depth levels in the picture scene, such as Panel_bg_di, Panel_mid_beach, Panel_mid_0, Panel_mid_1, Panel_mid_2, Panel_mid_3, Panel_mid_5, Panel_ui_mengzai and Panel_front, etc. The embodiment of the present invention does not limit the naming of the node name of the interface node.

[0065] like Figure 4B As shown, parameter a represents the displacement ratio of the interface node. The container type of parameter a is an array, and the data type can be BPVarFloat, that is, a floating point type. Each array corresponding to each interface node can be represented by Index[X], where X=1, 2, 3, 4...8, etc. The array element is parameter a, which can be the displacement ratio set for each interface node with different depth of field levels, such as -0.120, 0.060, 0.100, 0.140, 0.180, 0.220, 0.260, -0.300 and 0.300, etc. The embodiment of the present invention does not limit the specific displacement ratio.

[0066] In practical applications, when creating Figure 4A The property input box of parameter b shown in Figure 4B After the property input box of parameter a is shown, it means that the coding of the blueprint node has been completed. When used later, you can directly fill in the node name and corresponding value into the property input box, such as displacement ratio and other quick generation effects.

[0067] Step 202, in response to an interactive operation on the graphical user interface, obtaining displacement ratios and interactive operation parameters pre-set for each interface element having a hierarchical relationship;

[0068] In one embodiment of the present invention, the constructed blueprint node coding information can be obtained, and the blueprint node coding information can be used to indicate the hierarchical relationship of each interface element in a three-dimensional relationship, and can be used to perform corresponding displacement control on each interface element with a hierarchical relationship on the interface during execution.

[0069] The blueprint node encoding information has corresponding event processing and corresponding displacement control logic. At this time, it can respond to the interactive operation acting on the graphical user interface and obtain the displacement ratio and operation parameters of the interactive operation that are pre-set for each interface element with a hierarchical relationship. Among them, the displacement ratio measures the relative measurement of the position change of the interface element caused by the user's interactive operation. In user interface design, the displacement ratio is usually used to control the movement distance of interface elements (such as buttons, icons, windows, etc.) on the screen. It is a unitless value that represents the proportional relationship between the actual displacement of the element and the displacement of the user operation; the operation parameters of the interactive operation can be used to indicate the coordinate change information of the interactive operation.

[0070] In actual applications, there are interface nodes with different depth of field levels in the blueprint node encoding information, and the various interface elements under different interface nodes have different hierarchical relationships. The acquisition of the displacement ratio can mainly be manifested as responding to the user's interactive operations on the terminal where the interface is located, determining the target interface node where each interface element is located, and obtaining the displacement ratio corresponding to the target interface node.

[0071] The interactive operation includes one or more of the following: gravity sensing operation or interface movement operation. The interface movement operation can be expressed as a mouse movement operation, a touch movement operation, etc.

[0072] The acquisition of coordinate change information of interactive operations can mainly be manifested in providing event listeners to capture user interactive operations, such as listening to mouse events, listening to gravity sensing events, etc., so as to capture user input through event listeners, extract coordinate information from it, and then determine the coordinate change information at the previous and next moments.

[0073] Step 203, in response to inputting the displacement ratio and the operation parameter into the blueprint node encoding information, obtaining three-dimensional displacement information for each interface element having a hierarchical relationship;

[0074] In Blueprint node coding, you can create nodes that receive inputs for the displacement scale and operation parameters. These nodes may include mathematical operation nodes (such as multiplication nodes) to apply the displacement scale to the element's current position.

[0075] In one embodiment of the present invention, blueprint node coding may be used to calculate the three-dimensional displacement information of each interface element.

[0076] Specifically, the coordinate change information can be used to calculate the offset of each interface element with a hierarchical relationship, and then the target movement ratio of the target interface node and the offset of each interface element are multiplied to obtain the three-dimensional displacement information of each interface element, and then the position of each UI node after displacement is dynamically adjusted.

[0077] In the embodiment of the present invention, the adjustment of the horizontal position of each UI node is taken as an example. In practical applications, for the PC side, the offset of the UI element can be calculated by continuously capturing the change in the horizontal coordinates of the mouse in each frame; for mobile devices, the offset of the UI element can be obtained by using the data of the built-in accelerometer, based on which these data may be updated at a frequency lower than the main game frame rate. In order to avoid the problem of unsmooth animation caused by the low update frequency of the accelerometer data, the exponentially weighted moving average (EWMA) algorithm can be used to smooth the inter-frame data, thereby achieving a smooth and consistent dynamic effect regardless of the device. In this regard, the embodiment of the present invention is not limited.

[0078] Step 204: Feedback the displacement of each interface element on the game interface according to the three-dimensional displacement information.

[0079] After obtaining the three-dimensional displacement information of each interface element, the calculated three-dimensional displacement information can be applied to the interface element, and then the position of each UI node after displacement can be dynamically adjusted to feedback the displacement of each interface element on the interface according to the three-dimensional displacement information.

[0080] In a preferred embodiment of the present invention, the embodiment of the present invention can also realize the display of the originally hidden interactive rewards through the three-dimensional movement of the interface objects, thereby enhancing the game experience and interactive fun of the players. Specifically, it can be manifested as responding to the interactive operation acting on the graphical user interface, using the coordinate change information of the interactive operation to calculate the offset of the hidden interface element, and determining the offset direction of the hidden interface element, so as to display the hidden interface element on the game interface based on the offset of the hidden interface element and the offset direction of the hidden interface element. Among them, the offset direction of the hidden interface element is opposite to the offset direction of other interface elements.

[0081] For example, suppose that in the initial interface, the gift package reward position is hidden behind the wave element on the top layer of the interface. After gravity sensing or mouse movement, interactive feedback can be provided to the hidden gift package reward layer. In actual applications, the displacement direction of the gift package reward layer can be opposite to that of other elements. When providing feedback to the operation on the interactive end, when other elements of the interface move uniformly, the elements of the reward layer can move in the opposite direction, so that the hidden gift package reward layer can be displayed on the interface from behind the waves.

[0082] In an embodiment of the present invention, by utilizing blueprint node coding, when responding to interactive operations acting on a graphical user interface, the displacement ratio and operating parameters of the interactive operations pre-set for each interface element with a hierarchical relationship are obtained, and in response to the displacement ratio and operating parameters being input into the blueprint node coding information, three-dimensional displacement information for each interface element with a hierarchical relationship is obtained, and then the displacement movement of each interface element is fed back on the game interface according to the obtained three-dimensional displacement information, so that the interface elements with a hierarchical relationship are visually fed back with three-dimensional displacement according to the user's interactive operations in the graphical user interface, thereby producing a smooth displacement effect, achieving the effect of quickly generating interactive animations, and then achieving the purpose of quickly realizing different game interface dynamic effects based on the same set of codes.

[0083] Among them, according to the gravity of the user operating the terminal or the movement operation of the graphical user interface, the game interface can provide visual three-dimensional displacement feedback, so as to generate real-time interactive feedback according to the user operation in the game interface, so that the game interface can change the original fixed animation effect and generate rich screen content for the user's real-time operation; it can also allow the reuse of the same set of blueprint node encoding information, which can be reused in different scenes by modifying the parameters, reducing the changes in interface content. In addition, it can also be linked to the reward system to display the originally hidden interactive rewards on the game interface through the three-dimensional movement of the interface elements, thereby enhancing the game experience and interactive fun of the user and the game interface.

[0084] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0085] Reference Figure 5 , shows a structural block diagram of an embodiment of a display control device for a game interface of the present invention, wherein a graphical user interface is displayed through a terminal device, wherein the graphical user interface displays a game interface, and the game interface is formed by superimposing a plurality of interface elements at different interface levels, and specifically may include the following modules:

[0086] The blueprint node code acquisition module 501 is used to acquire blueprint node code information; the blueprint node code information is used to indicate the hierarchical relationship of each of the interface elements in the three-dimensional relationship;

[0087] An interactive operation response module 502 is used to respond to an interactive operation on the graphical user interface and obtain a displacement ratio pre-set for each of the interface elements having a hierarchical relationship and an operation parameter of the interactive operation;

[0088] The three-dimensional displacement information acquisition module 503 is used to obtain the three-dimensional displacement information for each interface element having a hierarchical relationship in response to the displacement ratio and the operation parameter being input into the blueprint node encoding information;

[0089] The displacement feedback module 504 is used to feedback the displacement of each interface element on the game interface according to the three-dimensional displacement information.

[0090] In one embodiment of the present invention, before obtaining the blueprint node encoding information, the embodiment of the present invention further includes the following modules:

[0091] A blueprint node construction module is used to divide the screen layers of each interface level in a preset blueprint according to the front and back distances of the screen scene in the game interface, so as to obtain a plurality of interface nodes arranged in a preset order; wherein different interface nodes are used to indicate different depth of field levels of the interface elements in the screen scene; obtain the distance between each of the interface elements in the screen scene and the screen background in the game interface; and place the interface elements with the same distance in the same interface node.

[0092] In one embodiment of the present invention, the blueprint node construction module is further used to add the same number of interface node configuration parameter items in the preset blueprint according to the number of the interface nodes; wherein each interface node configuration parameter item is used to respectively control the interface elements under the interface node corresponding to each depth of field level, and the interface node configuration parameter item includes an interface node name item and a movement ratio configuration item;

[0093] After adding the same number of interface node configuration parameter items according to the number of the interface nodes, the blueprint node construction module is also used to input the interface node names and displacement ratio values ​​of each interface node into the interface node name item and the movement ratio configuration item respectively according to the preset order.

[0094] In one embodiment of the present invention, the displacement ratio values ​​of the interface nodes corresponding to different depth of field levels are different, wherein the displacement ratio value is positively correlated with the depth of field level, and the numerical sign of the displacement ratio value is used to indicate the moving direction of the interface element under the corresponding interface node, which is the same as or opposite to the interaction direction of the user's interactive operation on the terminal where the interface is located.

[0095] In an embodiment of the present invention, there are interface nodes of different screen depth levels in the blueprint node encoding information, and each interface element under different interface nodes has a different hierarchical relationship; the interactive operation response module 502 may include the following submodules:

[0096] The displacement ratio determination submodule is used to respond to the interactive operation acting on the graphical user interface, determine the target interface node where each interface element is located, and obtain the displacement ratio value pre-set for the target interface node.

[0097] In an embodiment of the present invention, the operation parameter is used to indicate the coordinate change information of the interactive operation, and the three-dimensional displacement information acquisition module 503 may include the following submodules:

[0098] A three-dimensional displacement information generation submodule is used to respond to the displacement ratio and the coordinate change information of the interactive operation being input into the blueprint node encoding information, and use the coordinate change information to calculate the offset of each interface element with a hierarchical relationship; wherein the interactive operation includes one or more of the following: gravity sensing operation or interface movement operation; multiplying the target movement ratio of the target interface node and the offset of each interface element respectively to obtain the three-dimensional displacement information of each interface element.

[0099] In an embodiment of the present invention, the operation parameter is used to indicate the coordinate change information of the interactive operation, and the interface element includes a hidden interface element. The interactive operation response module 502 may also include the following submodules:

[0100] A hidden interface element display submodule is used to respond to interactive operations acting on the graphical user interface, use the coordinate change information to calculate the offset of the hidden interface element, and determine the offset direction of the hidden interface element; the offset direction of the hidden interface element is opposite to the offset direction of other interface elements; based on the offset of the hidden interface element and the offset direction of the hidden interface element, the hidden interface element is displayed on the interface.

[0101] In an embodiment of the present invention, a display control device for a game interface provided by an embodiment of the present invention obtains a displacement ratio and an operation parameter of the interactive operation pre-set for each interface element with a hierarchical relationship by utilizing blueprint node coding when responding to an interactive operation acting on a graphical user interface, and responds to inputting the displacement ratio and the operation parameter into the blueprint node coding information to obtain three-dimensional displacement information for each interface element with a hierarchical relationship, and then feeds back the displacement movement of each interface element on the game interface according to the obtained three-dimensional displacement information, so as to realize the visual three-dimensional displacement feedback of the interface elements with a hierarchical relationship according to the interactive operation acting on the graphical user interface, thereby producing a smooth displacement effect, achieving the effect of quickly generating an interactive animation, and then realizing the purpose of quickly realizing the dynamic effects of different game interfaces based on the same set of codes.

[0102] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0103] An embodiment of the present invention further provides an electronic device, including:

[0104] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the display control method embodiment of the above-mentioned game interface are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0105] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned game interface display control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0106] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0107] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0108] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0111] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0112] Finally, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0113] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0114] The above describes in detail a method for controlling a display interface of a game interface, a device for controlling a display interface of a game interface, a corresponding electronic device, and a corresponding computer-readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A display control method for a game interface, It is characterized in that Displaying a graphical user interface by a terminal device, wherein the graphical user interface displays a game interface, wherein the game interface is formed by superimposing a plurality of interface elements at different interface levels, the method comprising: Obtaining blueprint node coding information; the blueprint node coding information is used to indicate the hierarchical relationship of each of the interface elements in a three-dimensional relationship; In response to an interactive operation on the graphical user interface, obtaining a displacement ratio pre-set for each of the interface elements having a hierarchical relationship and an operation parameter of the interactive operation; In response to inputting the displacement ratio and the operation parameter into the blueprint node encoding information, three-dimensional displacement information for each interface element having a hierarchical relationship is obtained; The displacement movement of each interface element is fed back on the game interface according to the three-dimensional displacement information.

2. The method according to claim 1, It is characterized in that Before obtaining the blueprint node encoding information, the method further includes: In the preset blueprint, the screen layers of each interface level are divided according to the front and back distances of the screen scene in the game interface to obtain a plurality of interface nodes arranged in a preset order; wherein different interface nodes are used to indicate different depth of field levels of the interface elements in the screen scene; Obtaining the distance between each of the interface elements in the screen scene and the screen background in the game interface; Place UI elements with the same distance in the same UI node.

3. The method according to claim 2, It is characterized in that The method further comprises: In the preset blueprint, add the same number of interface node configuration parameter items according to the number of the interface nodes; Among them, each interface node configuration parameter item is used to control the interface elements under the interface node corresponding to each depth of field level respectively, and the interface node configuration parameter item includes an interface node name item and a movement ratio configuration item; After adding the same number of interface node configuration parameter items according to the number of the interface nodes, the method further includes: The interface node names and displacement ratio values ​​of the respective interface nodes are input into the interface node name item and the displacement ratio configuration item respectively according to the preset order.

4. The method according to claim 3, It is characterized in that The displacement ratio values ​​of the interface nodes corresponding to different depth of field levels are different, wherein the displacement ratio value is positively correlated with the depth of field level, and the numerical sign of the displacement ratio value is used to indicate the moving direction of the interface elements under the corresponding interface node, which is the same as or opposite to the interaction direction of the user's interactive operation on the terminal where the interface is located.

5. The method according to claim 1, It is characterized in that In the blueprint node encoding information, there are interface nodes of different screen depth levels, and the interface elements under different interface nodes have different hierarchical relationships; The step of responding to the interactive operation on the graphical user interface and obtaining the displacement ratios pre-set for the respective interface elements having a hierarchical relationship includes: In response to the interactive operation acting on the graphical user interface, the target interface node where each of the interface elements is located is determined, and the displacement ratio value pre-set for the target interface node is obtained.

6. The method according to claim 1, It is characterized in that The operation parameter is used to indicate the coordinate change information of the interactive operation. The response inputs the displacement ratio and the operation parameter into the blueprint node encoding information to obtain the three-dimensional displacement information for each interface element with a hierarchical relationship, including: In response to inputting the displacement ratio and the coordinate change information of the interactive operation into the blueprint node encoding information, the coordinate change information is used to calculate the offset of each interface element with a hierarchical relationship; wherein the interactive operation includes one or more of the following: gravity sensing operation or interface movement operation; The target movement ratio of the target interface node and the offset of each interface element are multiplied respectively to obtain the three-dimensional displacement information of each interface element.

7. The method according to claim 1 or 5, It is characterized in that The operation parameter is used to indicate the coordinate change information of the interactive operation, and the interface element includes a hidden interface element; the response to the interactive operation acting on the graphical user interface obtains the displacement ratio of each of the interface elements having a hierarchical relationship and the operation parameter of the interactive operation in advance, and also includes: In response to an interactive operation on the graphical user interface, the coordinate change information is used to calculate an offset of the hidden interface element, and to determine an offset direction of the hidden interface element; the offset direction of the hidden interface element is opposite to an offset direction of other interface elements; The hidden interface element is displayed on the game interface based on the offset of the hidden interface element and the offset direction of the hidden interface element.

8. A display control device for a game interface, It is characterized in that A graphical user interface is displayed by a terminal device, wherein a game interface is displayed in the graphical user interface, and the game interface is formed by superimposing a plurality of interface elements at different interface levels, and the device includes: A blueprint node code acquisition module, used to acquire blueprint node code information; the blueprint node code information is used to indicate the hierarchical relationship of each of the interface elements in a three-dimensional relationship; An interactive operation response module, used to respond to the interactive operation acting on the graphical user interface, and obtain the displacement ratios pre-set for each of the interface elements having a hierarchical relationship and the operation parameters of the interactive operation; A three-dimensional displacement information acquisition module, for obtaining three-dimensional displacement information for each interface element having a hierarchical relationship in response to inputting the displacement ratio and the operation parameter into the blueprint node encoding information; The displacement movement feedback module is used to feedback the displacement movement of each interface element on the game interface according to the three-dimensional displacement information.

9. An electronic device, It is characterized in that include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the display control method of the game interface as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the display control method of the game interface as described in any one of claims 1 to 7 is implemented.