CN113426099B - Display control method and device in game - Google Patents

Display control method and device in game Download PDF

Info

Publication number
CN113426099B
CN113426099B CN202110770557.3A CN202110770557A CN113426099B CN 113426099 B CN113426099 B CN 113426099B CN 202110770557 A CN202110770557 A CN 202110770557A CN 113426099 B CN113426099 B CN 113426099B
Authority
CN
China
Prior art keywords
touch
detection
game
areas
determining
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.)
Active
Application number
CN202110770557.3A
Other languages
Chinese (zh)
Other versions
CN113426099A (en
Inventor
张炫宜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202110770557.3A priority Critical patent/CN113426099B/en
Publication of CN113426099A publication Critical patent/CN113426099A/en
Application granted granted Critical
Publication of CN113426099B publication Critical patent/CN113426099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • 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/20Input arrangements for video game devices
    • A63F13/23Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
    • 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/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1068Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad
    • A63F2300/1075Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad using a touch screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Abstract

The embodiment of the invention provides a display control method and a device in a game, wherein the method comprises the following steps: displaying a detection area on a graphical user interface of the game in response to a start detection instruction for the game; responding to a detection instruction aiming at the detection area, and determining a target touch distance according to one or more touch areas in the detection instruction; and adjusting the size of the virtual unit displayed in the game according to the target touch space. Solves the problem of different sizes and habits of buttons caused by different sizes of the people in different areas, and is more beneficial to the release of games from sea.

Description

Display control method and device in game
Technical Field
The present invention relates to the field of game technologies, and in particular, to a method and an apparatus for controlling display in a game.
Background
With the rapid development of computer technology, electronic games are a common recreation mode in life of people, and as an important branch of electronic games, card games have a great audience group due to the interestingness and intelligence. When playing a card game, a player usually needs to select different cards by triggering to construct different card-playing combinations, so that the purpose of winning the game is achieved, each card can be selected, and the size of the card can directly influence the speed of selecting the card by the player when the player interacts with the card.
Currently, the size of cards in card games is usually designed for a common size of users, for example, the size of cards is set for the finger size and operation mode of general adult users. However, the general card size designed in this way is not suitable for users of different ages and/or countries, such as juveniles, adults, elderly people, yellow-breeds, white-breeds, black-breeds and blood-mixed people, and the lack of personalized designs for users of different sizes can easily result in poor game experience for some users and can not attract users to lose users very easily.
Disclosure of Invention
In view of the above-mentioned problem that the size of cards in a card game cannot be individually designed according to the physical size of users, which easily results in poor game experience for some users and is not attractive to users, and is also very easy to lose users, embodiments of the present invention have been proposed to provide a display control method in a game and a display control device in a corresponding game that overcome or at least partially solve the above-mentioned problem.
The embodiment of the invention discloses a display control method in a game, which comprises the following steps:
Displaying a detection area on a graphical user interface of the game in response to a start detection instruction for the game;
responding to a detection instruction aiming at the detection area, and determining a target touch distance according to one or more touch areas in the detection instruction;
and adjusting the size of the virtual unit displayed on the graphical user interface according to the target touch space.
Optionally, the detection instruction is generated by the user touching the detection area for multiple times, where each time the detection area corresponds to a first touch area, and the detection instruction includes multiple times the user touching the detection area respectively corresponding to multiple first touch areas;
the responding to the detection instruction aiming at the detection area, determining the target touch distance according to one or more touch areas in the detection instruction, comprises the following steps:
and responding to a detection instruction aiming at the detection area, and determining the target touch distance according to the plurality of first touch areas.
Optionally, the detection area includes a plurality of sub-detection areas, the detection instruction is generated by respectively touching the plurality of sub-detection areas by a user, wherein the touch for each sub-detection area corresponds to a second touch area, and the detection instruction includes a plurality of second touch areas corresponding to the plurality of sub-detection areas by the user;
The responding to the detection instruction aiming at the detection area, determining the target touch distance according to one or more touch areas in the detection instruction, comprises the following steps:
and responding to detection instructions aiming at the plurality of sub-detection areas, and determining target touch intervals according to the plurality of second touch areas.
Optionally, the responding to the detection instruction for the detection area, determining the target touch distance according to one or more touch areas in the detection instruction includes:
responding to a detection instruction aiming at a detection area, calculating the median of the one or more touch areas, and determining the median as a target touch interval; or alternatively, the first and second heat exchangers may be,
and responding to a detection instruction aiming at the detection area, calculating the average value of the one or more touch areas, and determining the average value as a target detection interval.
Optionally, the detection area includes a first detection area and a second detection area, the responding to the detection instruction for the detection area determines the target touch distance according to one or more touch areas in the detection instruction, and the method includes:
responding to a first detection instruction aiming at the first detection area, and determining a maximum touch interval according to one or more touch areas in the first detection instruction;
Responding to a second detection instruction aiming at the second detection area, and determining a minimum touch distance according to one or more touch areas in the second detection instruction;
and calculating to obtain a target touch distance according to the maximum touch distance and the minimum touch distance.
Optionally, the responding to the first detection instruction for the first detection area determines a maximum touch distance according to one or more touch areas in the first detection instruction, including:
responding to a first detection instruction aiming at the first detection area, and determining a coordinate range of one or more touch areas in the first detection instruction;
and determining the maximum touch control distance according to the coordinate range.
Optionally, the responding to the second detection instruction for the second detection area determines a minimum touch distance according to one or more touch areas in the second detection instruction, including:
determining a minimum area in one or more touch areas in the second detection instruction in response to a second detection instruction for the second detection area;
and determining the minimum touch distance according to the minimum area.
Optionally, the calculating to obtain the target touch distance according to the maximum touch distance and the minimum touch distance includes:
Calculating an average value of the maximum touch distance and the minimum touch distance;
and calculating according to the average value to obtain the target touch control distance.
Optionally, the calculating according to the average value to obtain the target touch distance includes:
multiplying the average value with a preset parameter to obtain a target touch distance;
wherein the preset parameters are determined according to at least one of the following: the current game type, the country in which the user is located, and the age group of the user.
Optionally, the method further comprises:
displaying a third detection area;
responding to a third detection instruction aiming at the third detection area, and judging whether the target touch space meets a condition or not;
and if the target touch distance does not meet the condition, returning to execute the response to the detection instruction of the detection area, and determining the target touch distance according to one or more touch areas in the detection instruction.
Optionally, the determining whether the target touch distance meets a condition includes:
extracting a plurality of test areas in the third detection instruction;
calculating a first number of the plurality of test areas greater than or equal to the target touch pitch, and calculating a second number of the plurality of test areas less than the target touch pitch;
When the first number is larger than the second number, judging that the target touch distance meets a condition; or alternatively, the first and second heat exchangers may be,
and when the first number is smaller than the second number, judging that the target touch distance does not meet the condition.
Optionally, the method further comprises:
displaying a game interface, wherein the content displayed by the game interface comprises a confirm use control and a redetect control;
when a trigger instruction of a user for confirming the use control is received, playing the game according to the adjusted size of the virtual unit;
and when a trigger instruction of the user for the re-detection control is received, returning to the step of executing the detection instruction of the response for the detection area and determining the target touch distance.
Optionally, the method further comprises:
responding to a user-defined setting instruction on a graphical user interface aiming at the game, and displaying a setting interface;
responding to a setting instruction aiming at the setting interface, and determining the size and/or the spacing of the custom virtual units;
and adjusting the size and/or the virtual unit spacing of the virtual units displayed in the game according to the size and/or the spacing of the customized virtual units.
The embodiment of the invention also discloses a display control device in the game, which comprises the following steps:
a detection area display module for displaying a detection area on a graphical user interface of the game in response to a start detection instruction for the game;
the target touch distance determining module is used for responding to the detection instruction aiming at the detection area and determining the target touch distance according to one or more touch areas in the detection instruction;
and the size adjustment module is used for adjusting the size of the virtual unit displayed on the graphical user interface according to the target touch space.
The embodiment of the invention also discloses an electronic device, which comprises:
a processor and a storage medium storing machine-readable instructions executable by the processor, the processor executing the machine-readable instructions when the electronic device is running to perform a method according to any one of the embodiments of the invention.
The embodiment of the invention also discloses a computer readable storage medium, wherein the storage medium is stored with a computer program, and the computer program is executed by a processor to execute the method according to any one of the embodiments of the invention.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the detection area is displayed on the graphical user interface of the game in response to the start detection instruction for the game, the target touch interval is determined according to one or more touch areas in the detection instruction in response to the detection instruction for the detection area, and the size of the virtual unit displayed on the graphical user interface is adjusted according to the target touch interval. The problem that the sizes of people in different areas are different, and the button size and habit are different is solved, so that the game is more favorable to being released from the sea, meanwhile, the clicking modes, the touch accuracy and the touch areas of children, adults, boys, girls, young people, the elderly and the like are greatly different, and the scheme well solves the difference, provides differentiated designs for different crowds, and enables players to obtain higher experience in the game. Moreover, more sexualization experiences are provided for the player through intelligent detection adaptation and user-defined operation, and the operation can be adjusted according to the own preference of the player, so that the game experience of the user is improved, and the user loss caused by poor game experience of the player is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of steps of a method for controlling display in a game according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a touch pitch according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a detection area according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another detection region provided by an embodiment of the present invention;
FIG. 5 is a flowchart showing steps of another method for controlling display in a game according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a third detection region according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a game interface provided by an embodiment of the present invention;
FIG. 8 is a schematic diagram of a setup interface provided by an embodiment of the present invention;
fig. 9 is a block diagram showing the structure of a display control device in a game according to an embodiment of the present invention;
Fig. 10 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 11 is a block diagram of a storage medium according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to solve the problems that in the prior art, the size of a card in a card game is usually designed according to a general size of a user, so that the size of the card in the card game cannot be individually designed according to the physical size of the user, the game experience of a part of users is poor, and users cannot be attracted and lost easily, the invention provides a scheme capable of adjusting the size of a virtual unit in the game according to the requirements of the users. The problem that the sizes of people in different areas are different, and the button size and habit are different is solved, so that the game is more favorable to being released from the sea, meanwhile, the clicking modes, the touch accuracy and the touch areas of children, adults, boys, girls, young people, the elderly and the like are greatly different, and the scheme well solves the difference, provides differentiated designs for different crowds, and enables players to obtain higher experience in the game. Moreover, more sexualization experiences are provided for the player through intelligent detection adaptation and user-defined operation, and the operation can be adjusted according to the own preference of the player, so that the game experience of the user is improved, and the user loss caused by poor game experience of the player is avoided.
Specifically, the scheme provided by the embodiment of the invention can be applied to card games, so that the sizes of cards in the card games are personalized, and the operation can be adjusted according to the own preference of players, thereby improving the core experience of card game combat. Among them, card games, also called card games, belong to one type of table games. The card game comprises a collection-exchange card game and a non-collection-exchange card game, wherein the collection-exchange card game is CCG (Collectible card game) or TCG (Trading card game), the collection-exchange card game is based on collecting cards, players need to collect cards by purchasing a randomly packaged supplementary package, and then flexibly use different cards to form a set of cards conforming to rules according to own strategies to play the game. The scheme of the embodiment of the invention can intelligently adjust the size of the card, so that the interaction speed of a player and the card can be improved.
The display control method in the game in one embodiment of the present invention may be run on a terminal device or a server. The terminal device may be a local terminal device. When the in-game display control method runs on the server, the in-game display control method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presentation main body are separated, the storage and running of the display control method in the game are completed on the cloud game server, and the function of the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a first terminal device, a television, a computer, a palm computer and the like; however, the terminal device of the display control method in the game is a cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a display control method in a game according to the present invention may specifically include the following steps:
step 101, responding to a start detection instruction for the game, and displaying a detection area on a graphical user interface of the game;
the embodiment of the invention can be applied to a mobile terminal with a pressure sensor, the mobile terminal can comprise various mobile devices, such as a mobile Phone, a tablet personal computer, a game console, a PDA and the like, and an operating system of the mobile terminal can comprise Android (Android), IOS, windows Phone, windows and the like, and can generally support the running of various games. By running a game application on the mobile terminal and rendering a graphical User Interface (UI) on a touch display screen of the mobile terminal, the content displayed by the graphical User Interface may include at least one virtual unit, which may be a virtual unit of the game played by the player, for example, in a card game, the virtual unit may be a card, or any interactive control displayed on the graphical User Interface in the touch display screen, for example, various virtual keys in software/game APP, a brush eraser in a drawing tool, and so on.
The graphical user interface may also include a setup control for conducting personalized settings for the game, through which the player may initiate an open detect instruction for the game. After receiving a start detection instruction for a game, in response to the start detection instruction, a detection area for detecting a touch pitch of a user is displayed on a graphical user interface. In one or more embodiments of the invention, the detection area may be one or more of various shapes (e.g., square, circular, etc.) on a graphical user interface in a touch display screenWhen the operation medium performs touch operation in the detection area, the area is provided with a corresponding touch area, and the touch area is an area covered by the operation medium in the detection area. The touch space may be the width of the operation medium, and the operation medium may include a user's finger, a stylus, etc. for inputting instructions, as shown in fig. 2, and described by taking the operation medium as the user's finger as an example, the touch space may be the width d of the finger on the X-axis when the finger touches the touch display screen 1 (i.e. the maximum width of the fingerprint in the horizontal direction), or the width d of the fingerprint in the Y-axis 2 (i.e., the maximum width of the fingerprint in the vertical direction), or the maximum width of the diagonal of the fingerprint, or the area occupied by the fingerprint, etc.
In a specific implementation, the display position of the detection area may be preset, and after receiving the start detection instruction for the game, the detection area is displayed on the graphical user interface according to the preset display position, so as to detect the touch pitch of the user through the detection area.
Step 102, responding to a detection instruction aiming at the detection area, and determining a target touch interval according to one or more touch areas in the detection instruction;
specifically, the player may initiate a detection instruction by touching the detection area multiple times, where the detection instruction is used to detect the touch distance of the user. In a specific implementation, a screen pressure sensing Touch technology Z-Touch can be utilized to detect Touch operation of a user on a detection area, and the principle is that the position of an operation medium can be accurately identified through sensing from top to bottom, so that the pressing force of the operation medium is realized, and the positions of multi-point input and the detection of the pressure are identified. After detecting multiple touch operations performed on the detection area, the mobile terminal generates a detection instruction, wherein the detection instruction can comprise one or more touch areas where an operation medium acts on the detection area.
After receiving the detection instruction for the detection area, the game application can respond to the detection instruction, and determine a target touch interval according to one or more touch areas in the detection instruction, wherein the target touch interval can be used for representing the touch interval of a user under a general condition. For example, an average value of one or more touch areas is calculated as a target touch pitch, or a median of one or more touch areas is calculated as a target touch pitch, or a maximum value and a minimum value are calculated from one or more touch areas, and then an average value of the maximum value and the minimum value is calculated as the target touch pitch.
And step 103, adjusting the size of the virtual unit displayed in the game according to the target touch space.
Specifically, the size of the virtual unit displayed in the game can be adaptively increased or decreased according to the target touch distance, for example, by adjusting the width of the virtual unit, the width of the card can be adjusted according to the target touch distance if the virtual unit is a card in the card game. In a specific implementation, the size of the virtual unit can be directly determined according to the target touch space, or the size of the virtual unit is adapted according to the target touch space in a preset proportion; or comparing the target touch space with preset widths of a plurality of virtual units, and selecting the optimal width.
As an example, it is possible to set the width of the virtual unit equal to the target touch pitch, determine the width of the virtual unit according to the target touch pitch, and increase or decrease the size of the virtual unit displayed in the game according to the determined width.
As another example, the target touch pitch may be reduced according to a preset ratio (e.g., the preset ratio is 0.8), the width of the virtual unit is set to be equal to the reduced target touch pitch, the width of the virtual unit is determined according to the reduced target touch pitch, and the size of the virtual unit displayed in the game is increased or reduced according to the determined width.
As another example, the target touch pitch may be further enlarged according to a preset ratio (e.g., the preset ratio is 1.2), the width of the virtual unit is set to be equal to the enlarged target touch pitch, the width of the virtual unit is determined according to the enlarged target touch pitch, and the size of the virtual unit displayed in the game is increased or decreased according to the determined width.
In a preferred embodiment of the present invention, the detection command is generated by the user touching the detection area multiple times, where each touch of the detection area corresponds to a first touch area, and the detection command includes the user touching multiple first touch areas corresponding to the detection area multiple times.
Specifically, by presetting a touch frequency, when the touch interval needs to be detected, a player touches the detection area for a plurality of times according to the preset touch frequency, and when the mobile terminal detects that the touch frequency of the detection area meets the requirement, a detection instruction is generated. The detection instruction comprises a plurality of first touch areas corresponding to the multiple touch detection areas of the user.
As an example, assuming that the preset number of touches is 5, the player needs to perform 5 touch operations on the touch area, and the generated detection instruction includes 5 first touch areas corresponding to the 5 touch detection areas of the user. As shown in fig. 3, the graphical user interface 10 includes a first detection area 20 and a card set 30, where the detection area 20 is represented by a circle, the detection area 20 is displayed at a central position of the graphical user interface 10, and a player can touch the detection area 20 to initiate a detection command.
In a preferred embodiment of the present invention, the step 101 may specifically include the following sub-steps:
and responding to a detection instruction aiming at the detection area, and determining the target touch distance according to the plurality of first touch areas.
In the embodiment of the invention, a plurality of first touch areas in the detection instruction can be extracted in response to the detection instruction aiming at the detection area, and the target touch distance is determined according to the plurality of first touch areas.
In a preferred embodiment of the present invention, the detection area includes a plurality of sub-detection areas, the detection command is generated by the user touching the plurality of sub-detection areas, wherein the touch for each of the sub-detection areas corresponds to a second touch area, and the detection command includes the user touching the plurality of second touch areas corresponding to the plurality of sub-detection areas.
In the embodiment of the invention, the detection area may include a plurality of sub-detection areas, the detection instruction is generated by respectively touching the plurality of sub-detection areas by the user, specifically, when the touch space needs to be detected, the player may respectively touch the plurality of sub-detection areas, and the mobile terminal generates the detection instruction after detecting the touch for all the sub-detection areas. The detection instruction includes a plurality of second touch areas corresponding to the plurality of sub-detection areas respectively.
As an example, as shown in fig. 4, assuming that the detection area includes 3 sub-detection areas, namely, sub-detection area 41, sub-detection area 42 and sub-detection area 43, respectively, the player needs to perform touch operations on the sub-detection area 41, sub-detection area 42 and sub-detection area 43, respectively, and the generated detection instruction includes 3 second touch areas corresponding to the sub-detection area 41, sub-detection area 42 and sub-detection area 43, respectively.
In a preferred embodiment of the present invention, the step 102 may specifically include the following sub-steps:
and responding to detection instructions aiming at the plurality of sub-detection areas, and determining target touch intervals according to the plurality of second touch areas.
In the embodiment of the invention, a plurality of second touch areas in the second detection instruction can be extracted in response to the second detection instruction aiming at the plurality of sub-detection areas, and the target touch distance is determined according to the plurality of second touch areas.
In a preferred embodiment of the present invention, the step 102 may further comprise the following sub-steps:
responding to a detection instruction aiming at a detection area, calculating the median of the one or more touch areas, and determining the median as a target touch interval; or, responding to a detection instruction aiming at the detection area, calculating to obtain an average value of the one or more touch areas, and determining the average value as a target detection interval.
In the embodiment of the invention, one or more touch areas in a detection instruction are extracted by responding to the detection instruction aiming at the detection area, the median of the one or more touch areas is calculated, and the median is determined as a target touch interval; or, responding to a detection instruction aiming at the detection area, extracting one or more touch areas in the detection instruction, calculating to obtain an average value of the one or more touch areas, and determining the average value as a target detection interval.
In a preferred embodiment of the present invention, the detection area comprises a first detection area and a second detection area, and the step 102 may comprise the following sub-steps:
responding to a first detection instruction aiming at the first detection area, and determining a maximum touch interval according to one or more touch areas in the first detection instruction; responding to a second detection instruction aiming at the second detection area, and determining a minimum touch distance according to one or more touch areas in the second detection instruction; and calculating to obtain a target touch distance according to the maximum touch distance and the minimum touch distance.
The first detection area is used for detecting the maximum touch space, and the second detection area is used for detecting the minimum touch space.
In the embodiment of the invention, the first detection area can be displayed on the graphical user interface first, after a first detection instruction of a user for the first detection area is received, the first detection instruction is responded, the maximum touch distance is determined according to one or more touch areas in the first detection instruction, and the second detection area is further displayed on the graphical user interface. Specifically, after determining the maximum touch distance in response to the first detection instruction for the first detection area, the first detection area displayed on the graphical user interface may be first canceled, and then the second detection area may be displayed on the graphical user interface. It should be noted that, the first detection area is not displayed before the second detection area is displayed, which is just one embodiment of the present invention, and in a specific implementation, the first detection area may not be displayed, and the second detection area may be displayed on the graphical user interface at the same time, where the positions displayed by the first detection area and the second detection area may be different, and the embodiment of the present invention is not limited to this.
The player may initiate a second detection instruction by touching the second detection area, the gaming application responding to the second detection instruction after receiving the second detection instruction for the second detection area, determining a minimum touch distance from one or more touch areas in the second detection area.
Further, a target touch distance is calculated according to the maximum touch distance and the minimum touch distance. In a specific implementation, a calculation rule may be pre-formulated, and the maximum touch distance and the minimum touch distance are substituted into the formulated calculation rule, so that the target touch distance is calculated by using the calculation rule.
In a preferred embodiment of the present invention, the determining, in response to a first detection instruction for the first detection area, a maximum touch distance according to one or more touch areas in the first detection instruction includes:
responding to a first detection instruction aiming at the first detection area, and determining a coordinate range of one or more touch areas in the first detection instruction; and determining the maximum touch control distance according to the coordinate range.
In the embodiment of the invention, one or more touch areas in the first detection instruction can be extracted in response to the first detection instruction aiming at the first detection area, and the coordinate range of the one or more touch areas is calculated. In a specific implementation, the coordinate ranges of each touch area on the X axis and the Y axis can be obtained, and according to the coordinate ranges of each touch area on the X axis and the Y axis, the total coordinate ranges of one or more touch areas on the X axis and the Y axis can be calculated.
After the coordinate ranges of the one or more touch areas are calculated, the maximum touch distance is further determined according to the coordinate ranges. Specifically, the distance on the X axis can be calculated according to the coordinate range, and the distance on the X axis is taken as the maximum touch distance; the distance on the Y axis can be obtained through calculation according to the coordinate range, and the distance on the Y axis is used as the maximum touch distance; the maximum touch pitch may also be selected from the pitch on the X axis and the pitch on the Y axis as the maximum touch pitch.
In a preferred embodiment of the present invention, the determining, in response to a second detection command for the second detection area, a minimum touch distance according to one or more touch areas in the second detection command includes:
determining a minimum area in one or more touch areas in the second detection instruction in response to a second detection instruction for the second detection area; and determining the minimum touch distance according to the minimum area.
In the embodiment of the invention, one or more touch areas in the second detection instruction can be extracted in response to the second detection instruction aiming at the second detection area, and the minimum area in the one or more touch areas is calculated. Specifically, the minimum area among the one or more touch areas may be calculated through a min () function.
After the minimum area in the one or more touch areas is calculated, determining the minimum touch distance according to the minimum area. Specifically, the coordinate range of the minimum touch area on the X axis and the Y axis can be obtained, the distance on the X axis can be obtained through calculation according to the coordinate range, and the distance on the X axis is taken as the minimum touch distance; the distance on the Y axis can be obtained through calculation according to the coordinate range, and the distance on the Y axis is used as the minimum touch distance; the minimum value may also be selected from the pitch on the X-axis and the pitch on the Y-axis as the minimum touch pitch.
In a preferred embodiment of the present invention, the calculating according to the maximum touch distance and the minimum touch distance may specifically include the following sub-steps:
calculating an average value of the maximum touch distance and the minimum touch distance; and calculating according to the average value to obtain the target touch control distance.
Specifically, when calculating the target touch pitch, firstly calculating an average value of the maximum touch pitch and the minimum touch pitch, and then multiplying the average value with a set coefficient to obtain the target touch pitch.
In a preferred embodiment of the present invention, the calculating the target touch distance according to the average value includes:
Multiplying the average value with a preset parameter to obtain a target touch distance; wherein the preset parameters are determined according to at least one of the following: the current game type, the country in which the user is located, and the age group of the user.
The preset parameters may be preset coefficients, and the preset parameters are determined according to at least one of the following: the current game type, the country in which the user is located, and the age of the user.
Specifically, the coefficient matching the current game type may be found as a preset parameter by determining the current game type, and/or the coefficient matching the country where the user is located may be found as a preset parameter by determining the country where the user is located (specifically, the country where the user is located may be determined by acquiring an operator of the mobile terminal), and/or the coefficient matching the age stage of the user may be found as a preset parameter by determining the age stage of the user. For example, the preset parameter may be 0.833.
And after the preset parameters are determined, multiplying the average value with the preset parameters to obtain the target touch distance. In a specific implementation, the target touch distance may satisfy the formula: target touch pitch= (maximum touch pitch+minimum touch pitch)/2×preset parameters, and after determining the maximum touch pitch, the minimum touch pitch and the preset parameters, substituting the maximum touch pitch, the minimum touch pitch and the preset parameters into the above formula to obtain the target touch pitch.
According to the display control method in the game, the detection area is displayed on the graphical user interface of the game by responding to the starting detection instruction for the game, the target touch interval is determined according to one or more touch areas in the detection instruction in response to the detection instruction for the detection area, and the size of the virtual unit displayed on the graphical user interface is adjusted according to the target touch interval. The problem that the sizes of people in different areas are different, and the button size and habit are different is solved, so that the game is more favorable to being released from the sea, meanwhile, the clicking modes, the touch accuracy and the touch areas of children, adults, boys, girls, young people, the elderly and the like are greatly different, and the scheme well solves the difference, provides differentiated designs for different crowds, and enables players to obtain higher experience in the game. Moreover, more sexualization experiences are provided for the player through intelligent detection adaptation and user-defined operation, and the operation can be adjusted according to the own preference of the player, so that the game experience of the user is improved, and the user loss caused by poor game experience of the player is avoided.
Referring to fig. 5, a flowchart illustrating steps of an embodiment of a display control method in a game according to the present invention may specifically include the following steps:
step 501, determining a maximum touch distance in response to a first detection instruction for a first detection area, and displaying a second detection area;
in the embodiment of the invention, when the player needs to adjust the size of the virtual object in the game, the first detection area can be touched to initiate a first detection instruction, after the first detection instruction aiming at the first detection area is received, the first detection instruction aiming at the first detection area is responded, the maximum touch distance is determined, and the second detection area is displayed.
Step 502, determining a minimum touch distance in response to a second detection instruction for the second detection area;
after receiving a second detection instruction for the second detection area, determining the minimum touch distance in response to the second detection instruction for the second detection area.
Step 503, calculating a target touch distance according to the maximum touch distance and the minimum touch distance;
step 504, displaying a third detection area;
after the target touch distance is calculated, a third detection area can be displayed on the graphical user interface, and the third detection area is used for testing whether the target touch distance meets the condition. Specifically, before the third detection area is displayed, the second detection area displayed on the graphical user interface may be first canceled, and then the third detection area may be displayed on the graphical user interface.
Step 505, responding to a third detection instruction for the third detection area, and judging whether the target touch space meets a condition;
specifically, the player may touch the third detection area to initiate a third detection instruction, where the third detection instruction is used to test whether the target touch distance meets a condition. In a specific implementation, the player may perform a touch operation on the third detection area, and after detecting the touch operation for the third detection area, the mobile terminal generates a third detection instruction. After receiving a third detection instruction of the user for the third detection area, the third detection instruction can be responded, and whether the target touch distance meets the condition is judged.
In a specific implementation, the third detection area may include a plurality of sub-test areas, and the third detection instruction is generated by respectively touching the plurality of sub-test areas by the user, where the touch of each sub-test area corresponds to a test area, and the third detection instruction includes the plurality of test areas corresponding to the plurality of sub-test areas by the user.
As an example, as shown in fig. 6, assuming that the third detection area includes 5 sub-test areas, namely, sub-test area 51, sub-test area 52, sub-test area 53, sub-test area 54 and sub-test area 55, respectively, the player needs to perform touch operations on the 5 sub-test areas, respectively, and the generated third detection instruction includes 5 test areas corresponding to the 5 sub-test areas respectively.
In a preferred embodiment of the present invention, the step 505 may specifically include the following sub-steps:
extracting a plurality of test areas in the third detection instruction; calculating a first number of the plurality of test areas greater than or equal to the target touch pitch, and calculating a second number of the plurality of test areas less than the target touch pitch; when the first number is larger than the second number, judging that the target touch distance meets a condition; or when the first number is smaller than the second number, judging that the target touch distance does not meet the condition.
In the embodiment of the invention, whether the target touch space meets the condition can be judged by respectively comparing the sizes of the test area and the target touch space. Specifically, when the test area is larger than the target touch distance, the touch is considered to be very comfortable, and the sub-test area can be marked as a first color, such as green; when the test area is equal to the target touch distance, the touch is considered to be general, and the sub-test area can be marked as a second color, such as yellow; when the test area is smaller than the target touch distance, the touch experience is considered to be poor, and the sub-test area can be marked as a third color, such as red. And judging whether the target touch distance meets the condition or not by counting and comparing the first number of the sub-test areas marked with the first color and the second color with the second number of the sub-test areas marked with the third color. For example, when the first number of sub-test areas marked green and yellow is 3 and the second number of sub-test areas marked red is 2, it is determined that the target touch pitch satisfies the condition; when the first number of the sub-test areas marked green and yellow is 2 and the second number of the sub-test areas marked red is 3, it is determined that the target touch pitch does not satisfy the condition.
Step 506, if the target touch distance does not meet the condition, returning to execute the step 501;
in the embodiment of the present invention, if the target touch distance does not meet the condition, steps 501-505 may be executed again to perform re-detection.
Step 507, if the target touch distance meets the condition, adjusting the size of the virtual unit displayed in the game according to the target touch distance.
In the embodiment of the invention, if the target touch space meets the condition, the size of the virtual unit displayed in the game can be adjusted according to the target touch space.
In a preferred embodiment of the present invention, before the step 501, the following steps may be further included:
the first detection area is displayed in response to a start detection instruction on a graphical user interface for the game.
Specifically, a detection control may be included on the graphical user interface, where the detection control detects the target touch distance of the user. The player initiates the start detection instruction by performing a touch operation with respect to the detection control. After receiving a start detection instruction on the graphical user interface for the game, the first detection area may be displayed in response to the start detection instruction.
In a specific implementation, after receiving a start detection instruction on the graphical user interface for the game, a detection mode may be entered, in which an interface element that is previously displayed on the graphical user interface, for example, an interface element such as a hidden chat window, a setting control, a task panel, etc., is hidden, and after the interface element that is previously displayed on the graphical user interface is hidden, a first detection area is further displayed on the graphical user interface. In addition, after receiving the start detection instruction on the graphical user interface for the game, the first detection area may be displayed on the graphical user interface in a floating window manner without hiding the interface element displayed on the graphical user interface. It should be noted that, when implementing the embodiment of the present invention, the first detection area may also be displayed in other manners according to actual needs, which is not limited by the embodiment of the present invention.
In a preferred embodiment of the present invention, further comprising:
displaying a game interface, wherein the content displayed by the game interface comprises a confirm use control and a redetect control; when a trigger instruction of a user for confirming the use control is received, playing the game according to the adjusted size of the virtual unit; and when a trigger instruction of the user for the re-detection control is received, returning to the step of executing the first detection instruction of the response for the first detection area and determining the maximum touch distance.
In the embodiment of the invention, the size of the virtual unit displayed in the game is adjusted according to the target touch space, and the game interface can be skipped to the game interface, wherein the game interface can be an interface for playing game combat, for example, in a card game, the game interface can be a card using interface. The content displayed on the game interface includes one or more virtual units. The content displayed on the game interface may further include a confirmation use control and a redetect control, wherein the confirmation use control is used for confirming the size of the virtual unit adjusted at this time, the redetect control is used for canceling the size of the virtual unit adjusted at this time, redetect the target touch interval of the user, and adjust the size of the virtual unit according to the redetected target touch interval. As shown in fig. 7, the game interface 60 includes a confirm use control 61 and a redetect control 62.
Specifically, when a trigger instruction of a user for confirming the use of the control is received, the game can be played according to the adjusted size of the virtual unit; when a trigger instruction of the user for detecting the control again is received, the steps 501-507 are executed in a returning mode so as to detect the target touch distance of the user again.
In a preferred embodiment of the present invention, further comprising:
responding to a user-defined setting instruction aiming at a graphical user interface of the game, and displaying a setting interface; responding to a setting instruction aiming at the setting interface, and determining the size and/or the spacing of the custom virtual units; and adjusting the size and/or the virtual unit spacing of the virtual units displayed in the game according to the size and/or the spacing of the customized virtual units.
In the embodiment of the invention, the user can also set the size of the virtual unit and/or the virtual object distance in a self-defined manner. Specifically, the graphical user interface may include a display control, and the user may perform a touch operation on the display control to initiate a custom setting instruction. After receiving a user-defined setting instruction of a graphical user interface of a game, a setting interface can be displayed in response to the user-defined setting instruction. The setting interface is used for setting the size of the virtual units and/or the spacing of the virtual units.
As an example, assuming that the current game is a card game, as shown in fig. 8, a card size setting frame and a card pitch setting frame are included in the setting interface, a user can set the size of a card through the card size setting frame, and the pitch of the card is set through the card pitch setting frame. In addition, the setting interface can also comprise a button control, and the button control is used for setting the size of the button; the setting interface can also comprise a custom control, and the custom control is used for a user to input a custom numerical value so as to set the size of the card; the setting interface can also comprise a return control, and the return control is used for exiting the setting interface; the setting interface can also comprise a reset control, and the reset control is used for resetting the parameters of the current custom setting; the setting interface can also comprise a saving control which is used for saving the parameters which are currently and custom set by the user.
Specifically, after receiving a setting instruction for the setting interface, the setting instruction may be responded, the size of the custom virtual unit and/or the spacing of the custom virtual unit are determined, and the size of the virtual unit and/or the spacing of the virtual unit displayed in the game are adjusted according to the size of the custom virtual unit and/or the spacing of the custom virtual unit. Therefore, the player can adjust the size and the spacing of the virtual units according to the self requirements, and the game experience of the user is further improved.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 9, a block diagram of a display control device in a game according to an embodiment of the present invention is shown, which may specifically include the following modules:
A detection area display module 901 for displaying a detection area on a graphical user interface of the game in response to a start detection instruction for the game;
a target touch distance determining module 902, configured to respond to a detection instruction for the detection area, and determine a target touch distance according to one or more touch areas in the detection instruction;
the size adjustment module 903 of the virtual unit is configured to adjust the size of the virtual unit displayed in the game according to the target touch distance.
In a preferred embodiment of the present invention, the detection instruction is generated by the user touching the detection area for multiple times, where each time the detection area is touched corresponds to a first touch area, and the detection instruction includes the user touching multiple first touch areas corresponding to the detection area for multiple times;
the target touch distance detection module 902 includes:
and the first detection sub-module is used for responding to the detection instruction aiming at the detection areas and determining the target touch distance according to the plurality of first touch areas.
In a preferred embodiment of the present invention, the detection area includes a plurality of sub-detection areas, the detection instruction is generated by the user touching the plurality of sub-detection areas, wherein the touch for each of the sub-detection areas corresponds to a second touch area, and the detection instruction includes the user touching the plurality of second touch areas corresponding to the plurality of sub-detection areas;
The target touch distance detection module 902 includes:
and the second detection submodule is used for responding to detection instructions aiming at the plurality of the detection submodules and determining target touch intervals according to the plurality of the second touch areas.
In a preferred embodiment of the present invention, the target touch distance detection module 902 includes:
the first interval determining submodule is used for responding to a detection instruction aiming at the detection area, calculating the median of the one or more touch areas and determining the median as a target touch interval; or alternatively, the first and second heat exchangers may be,
and the second interval determining submodule is used for responding to a detection instruction aiming at the detection area, calculating the average value of the one or more touch areas and determining the average value as a target detection interval.
In a preferred embodiment of the invention. The detection area includes a first detection area and a second detection area, and the target touch space detection module 902 includes:
the maximum touch distance detection submodule is used for responding to a first detection instruction aiming at the first detection area and determining the maximum touch distance according to one or more touch areas in the first detection instruction;
The minimum touch distance detection submodule is used for responding to a second detection instruction aiming at the second detection area and determining a minimum touch distance according to one or more touch areas in the second detection instruction;
and the target touch interval determining submodule is used for calculating and obtaining the target touch interval according to the maximum touch interval and the minimum touch interval.
In a preferred embodiment of the present invention, the maximum touch distance detection sub-module includes:
the coordinate range determining unit is used for responding to a first detection instruction aiming at the first detection area and determining the coordinate range of one or more touch areas in the first detection instruction;
and the maximum touch space determining unit is used for determining the maximum touch space according to the coordinate range.
In a preferred embodiment of the present invention, the minimum touch distance detection sub-module includes:
a second touch area extraction unit, configured to determine a minimum area of one or more touch areas in the second detection instruction in response to a second detection instruction for the second detection area;
and the minimum touch space determining unit is used for determining the minimum touch space according to the minimum area.
In a preferred embodiment of the present invention, the target touch distance calculation sub-module includes:
the average value calculation unit is used for calculating the average value of the maximum touch interval and the minimum touch interval;
and the target touch distance calculation unit is used for calculating and obtaining the target touch distance according to the average value.
In a preferred embodiment of the present invention, the target touch distance calculating unit includes:
the target touch distance calculating subunit is used for multiplying the average value with a preset parameter to obtain a target touch distance;
wherein the preset parameters are determined according to at least one of the following: the current game type, the country in which the user is located, and the age group of the user.
In a preferred embodiment of the present invention, further comprising:
the third detection area display module is used for displaying a third detection area;
the judging module is used for responding to a third detection instruction aiming at the third detection area and judging whether the target touch space meets the condition or not;
and the re-detection module is used for returning to execute the detection instruction responding to the detection area if the target touch interval does not meet the condition, and determining the target touch interval according to one or more touch areas in the detection instruction.
In a preferred embodiment of the present invention, the determining module includes:
the test area extraction submodule is used for extracting a plurality of test areas in the third detection instruction;
a number calculation operator module, configured to calculate a first number of the plurality of test areas that is greater than or equal to the target touch pitch, and calculate a second number of the plurality of test areas that is less than the target touch pitch;
the first judging submodule is used for judging that the target touch distance meets the condition when the first number is larger than the second number; or alternatively, the first and second heat exchangers may be,
and the second judging submodule is used for judging that the target touch distance does not meet the condition when the first number is smaller than the second number.
In a preferred embodiment of the present invention, further comprising:
the game interface display module is used for displaying a game interface, and the content displayed by the game interface comprises a confirmation use control and a redetect control;
the confirmation use module is used for playing the game according to the adjusted size of the virtual unit when receiving a trigger instruction of a user for the confirmation use control;
and the re-detection module is used for returning to execute the detection instruction responding to the detection area when receiving the triggering instruction of the re-detection control by the user, and determining the target touch interval according to one or more touch areas in the detection instruction.
In a preferred embodiment of the present invention, further comprising:
the setting interface display module is used for responding to a user-defined setting instruction on the graphical user interface aiming at the game and displaying a setting interface;
the custom setting module is used for responding to a setting instruction aiming at the setting interface and determining the size and/or the spacing of custom virtual units;
and the virtual unit adjusting module is used for adjusting the size and/or the virtual unit interval of the virtual units displayed in the game according to the self-defined virtual unit size and/or the self-defined virtual unit interval.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides an electronic device, as shown in fig. 10, including:
a processor 1001 and a storage medium 1002, said storage medium 1002 storing machine-readable instructions executable by said processor 901, said processor 1001 executing said machine-readable instructions when the electronic device is running to perform a method according to any one of the embodiments of the present invention. The specific implementation manner and the technical effect are similar, and are not repeated here.
The embodiment of the present invention further provides a computer readable storage medium, as shown in fig. 11, where a computer program 1101 is stored on the storage medium, and the computer program 1101 is executed by a processor to perform the method according to any one of the embodiments of the present invention. The specific implementation manner and the technical effect are similar, and are not repeated here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above description of the present invention provides a method for controlling display in a game and a device for controlling display in a game, and specific examples are applied to illustrate the principles and embodiments of the present invention, and the above description of the examples is only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (15)

1. A display control method in a game, comprising:
displaying a first detection area on a graphical user interface of the game in response to a start detection instruction for the game;
responding to a first detection instruction aiming at the first detection area, determining the maximum touch distance according to one or more touch areas in the first detection instruction, and displaying a second detection area on a graphical user interface of the game;
responding to a second detection instruction aiming at the second detection area, and determining a minimum touch distance according to one or more touch areas in the second detection instruction;
calculating to obtain a target touch distance according to the maximum touch distance and the minimum touch distance;
displaying a third detection area on a graphical user interface of the game;
responding to a third detection instruction aiming at the third detection area, and determining a first number which is larger than or equal to the target touch space in a plurality of test areas in the third detection instruction and a second number which is smaller than the target touch space in the plurality of test areas;
and in response to the first number being greater than the second number, adjusting the size of the virtual unit displayed on the graphical user interface according to the target touch pitch.
2. The method of claim 1, wherein the first detection command is generated by a user touching the first detection area multiple times, wherein each time the first detection area is touched corresponds to a first touch area, and the first detection command comprises a plurality of first touch areas corresponding to the first detection area respectively;
the responding to the first detection instruction aiming at the first detection area, determining the maximum touch space according to one or more touch areas in the first detection instruction, and the method comprises the following steps:
and responding to a first detection instruction aiming at the first detection area, and determining the maximum touch space according to the plurality of first touch areas.
3. The method of claim 1, wherein the first detection area comprises a plurality of sub-detection areas, the first detection instruction is generated by a user touching the plurality of sub-detection areas, wherein the touch for each of the sub-detection areas corresponds to a second touch area, and the first detection instruction comprises the user touching the plurality of second touch areas corresponding to the plurality of sub-detection areas, respectively;
the responding to the first detection instruction aiming at the first detection area, determining the maximum touch space according to one or more touch areas in the first detection instruction, and the method comprises the following steps:
And responding to a first detection instruction aiming at the plurality of sub-detection areas, and determining the maximum touch space according to the plurality of second touch areas.
4. The method according to claim 1, characterized in that the method comprises:
responding to a detection instruction aiming at a detection area, calculating the median of the one or more touch areas, and determining the median as a target touch interval; or alternatively, the first and second heat exchangers may be,
and responding to a detection instruction aiming at the detection area, calculating the average value of the one or more touch areas, and determining the average value as a target detection interval.
5. The method of claim 1, wherein the determining, in response to a first detection command for the first detection region, a maximum touch pitch from one or more touch regions in the first detection command comprises:
responding to a first detection instruction aiming at the first detection area, and determining a coordinate range of one or more touch areas in the first detection instruction;
and determining the maximum touch control distance according to the coordinate range.
6. The method of claim 1, wherein the determining a minimum touch pitch in response to a second detection command for the second detection region based on one or more touch regions in the second detection command comprises:
Determining a minimum area in one or more touch areas in the second detection instruction in response to a second detection instruction for the second detection area;
and determining the minimum touch distance according to the minimum area.
7. The method of claim 1, wherein the calculating the target touch pitch according to the maximum touch pitch and the minimum touch pitch comprises:
calculating an average value of the maximum touch distance and the minimum touch distance;
and calculating according to the average value to obtain the target touch control distance.
8. The method of claim 7, wherein the calculating the target touch distance according to the average value comprises:
multiplying the average value with a preset parameter to obtain a target touch distance;
wherein the preset parameters are determined according to at least one of the following: the current game type, the country in which the user is located, and the age group of the user.
9. The method as recited in claim 1, further comprising:
responding to a third detection instruction aiming at the third detection area, and judging whether the target touch space meets a condition or not;
and if the target touch interval does not meet the condition, returning to execute the first detection instruction responding to the first detection area, and determining the maximum touch interval according to one or more touch areas in the first detection instruction.
10. The method of claim 9, wherein the determining whether the target touch pitch satisfies a condition comprises:
extracting a plurality of test areas in the third detection instruction;
calculating a first number of the plurality of test areas greater than or equal to the target touch pitch, and calculating a second number of the plurality of test areas less than the target touch pitch;
when the first number is larger than the second number, judging that the target touch distance meets a condition; or alternatively, the first and second heat exchangers may be,
and when the first number is smaller than the second number, judging that the target touch distance does not meet the condition.
11. The method as recited in claim 1, further comprising:
displaying a game interface, wherein the content displayed by the game interface comprises a confirm use control and a redetect control;
when a trigger instruction of a user for confirming the use control is received, playing the game according to the adjusted size of the virtual unit;
and when a trigger instruction of a user for the re-detection control is received, returning to execute the first detection instruction of the response for the first detection area, and determining the maximum touch interval according to one or more touch areas in the first detection instruction.
12. The method as recited in claim 1, further comprising:
responding to a user-defined setting instruction on a graphical user interface aiming at the game, and displaying a setting interface;
responding to a setting instruction aiming at the setting interface, and determining the size and/or the spacing of the custom virtual units;
and adjusting the size and/or the virtual unit spacing of the virtual units displayed in the game according to the size and/or the spacing of the customized virtual units.
13. A display control apparatus in a game, comprising:
a detection area display module for displaying a first detection area on a graphical user interface of the game in response to a start detection instruction for the game;
the maximum touch distance determining module is used for responding to a first detection instruction aiming at the first detection area, determining the maximum touch distance according to one or more touch areas in the first detection instruction, and displaying a second detection area on a graphical user interface of the game;
the minimum touch distance determining module is used for responding to a second detection instruction aiming at the second detection area and determining a minimum touch distance according to one or more touch areas in the second detection instruction;
The target touch interval determining module is used for calculating and obtaining the target touch interval according to the maximum touch interval and the minimum touch interval;
a third detection area display module for displaying a third detection area on a graphical user interface of the game;
the first number and second number determining module is used for responding to a third detection instruction aiming at the third detection area and determining a first number which is larger than or equal to the target touch space in a plurality of test areas in the third detection instruction and a second number which is smaller than the target touch space in the plurality of test areas;
and the size adjustment module is used for adjusting the size of the virtual unit displayed on the graphical user interface according to the target touch space in response to the first number being larger than the second number.
14. An electronic device, comprising:
a processor and a storage medium storing machine-readable instructions executable by the processor, the processor executing the machine-readable instructions when the electronic device is running to perform the method of any one of claims 1-12.
15. A computer readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, performs the method according to any of claims 1-12.
CN202110770557.3A 2021-07-07 2021-07-07 Display control method and device in game Active CN113426099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110770557.3A CN113426099B (en) 2021-07-07 2021-07-07 Display control method and device in game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110770557.3A CN113426099B (en) 2021-07-07 2021-07-07 Display control method and device in game

Publications (2)

Publication Number Publication Date
CN113426099A CN113426099A (en) 2021-09-24
CN113426099B true CN113426099B (en) 2024-03-15

Family

ID=77759413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110770557.3A Active CN113426099B (en) 2021-07-07 2021-07-07 Display control method and device in game

Country Status (1)

Country Link
CN (1) CN113426099B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202956741U (en) * 2011-12-08 2013-05-29 爱特梅尔公司 Touch sensor with determined self-adaption touch detection threshold and touch sensitive device
CN105814531A (en) * 2013-12-03 2016-07-27 微软技术许可有限责任公司 User interface adaptation from an input source identifier change
CN106445243A (en) * 2016-11-07 2017-02-22 深圳Tcl数字技术有限公司 Touch responding device and method for intelligent equipment
CN107203313A (en) * 2017-05-24 2017-09-26 维沃移动通信有限公司 Adjust desktop and show object method, mobile terminal and computer-readable recording medium
CN107710111A (en) * 2015-07-01 2018-02-16 奇手公司 It is determined that for the angle of pitch close to sensitive interaction
CN108771858A (en) * 2018-05-11 2018-11-09 网易(杭州)网络有限公司 Technical ability control switching method, device, terminal and storage medium
CN109568938A (en) * 2018-11-30 2019-04-05 广州要玩娱乐网络技术股份有限公司 More resource game touch operation methods, device, storage medium and terminal
CN109753327A (en) * 2018-11-19 2019-05-14 努比亚技术有限公司 A kind of control layout method, terminal and computer readable storage medium
CN112684970A (en) * 2020-12-31 2021-04-20 腾讯科技(深圳)有限公司 Adaptive display method and device of virtual scene, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120274585A1 (en) * 2011-03-16 2012-11-01 Xmg Studio, Inc. Systems and methods of multi-touch interaction with virtual objects
CN103135930B (en) * 2013-02-05 2017-04-05 深圳市金立通信设备有限公司 A kind of touch screen control method and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202956741U (en) * 2011-12-08 2013-05-29 爱特梅尔公司 Touch sensor with determined self-adaption touch detection threshold and touch sensitive device
CN105814531A (en) * 2013-12-03 2016-07-27 微软技术许可有限责任公司 User interface adaptation from an input source identifier change
CN107710111A (en) * 2015-07-01 2018-02-16 奇手公司 It is determined that for the angle of pitch close to sensitive interaction
CN106445243A (en) * 2016-11-07 2017-02-22 深圳Tcl数字技术有限公司 Touch responding device and method for intelligent equipment
CN107203313A (en) * 2017-05-24 2017-09-26 维沃移动通信有限公司 Adjust desktop and show object method, mobile terminal and computer-readable recording medium
CN108771858A (en) * 2018-05-11 2018-11-09 网易(杭州)网络有限公司 Technical ability control switching method, device, terminal and storage medium
CN109753327A (en) * 2018-11-19 2019-05-14 努比亚技术有限公司 A kind of control layout method, terminal and computer readable storage medium
CN109568938A (en) * 2018-11-30 2019-04-05 广州要玩娱乐网络技术股份有限公司 More resource game touch operation methods, device, storage medium and terminal
CN112684970A (en) * 2020-12-31 2021-04-20 腾讯科技(深圳)有限公司 Adaptive display method and device of virtual scene, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113426099A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
US8123602B2 (en) Game device and program
CN110384920B (en) Virtual reality multi-person table game interaction system, interaction method and server
JP7447299B2 (en) Adaptive display method and device for virtual scenes, electronic equipment, and computer program
CN113069759A (en) Scene processing method and device in game and electronic equipment
JP2020048813A (en) Game program, method, and information processing device
JP6851630B2 (en) Game systems, game controls, and programs
JP6513259B1 (en) Game program, method, and information processing apparatus
CN113426099B (en) Display control method and device in game
JP6495354B2 (en) Method, computer and program implemented in computer
US20140007118A1 (en) Comparison device, comparison method, non-transitory recording medium, and system
JP7244249B2 (en) Game program and information processing device
CN113318429B (en) Control method and device for exiting game, processor and electronic device
CN114849228A (en) Method, device and equipment for layout of control in game and storage medium
CN114272607A (en) Game-based command interaction method and device and electronic equipment
JP6478732B2 (en) Program and game system
JP7256627B2 (en) game program
JP7258507B2 (en) Game program and information processing device
JP2018157997A (en) Game device and program
CN113318430A (en) Virtual character posture adjusting method and device, processor and electronic device
JP7368957B2 (en) Programs and information processing equipment
JP2020036631A (en) Game program, method, and information processor
JP7427635B2 (en) Information processing method, program, information processing device
US11964203B2 (en) Information processing system for displaying a screen and automatically adjusting the screen
JP7316319B2 (en) Game system, program and information storage medium
JP6622786B2 (en) GAME PROGRAM AND GAME DEVICE

Legal Events

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