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

Display control method and device in game Download PDF

Info

Publication number
CN113426099A
CN113426099A CN202110770557.3A CN202110770557A CN113426099A CN 113426099 A CN113426099 A CN 113426099A CN 202110770557 A CN202110770557 A CN 202110770557A CN 113426099 A CN113426099 A CN 113426099A
Authority
CN
China
Prior art keywords
touch
detection
areas
game
detection instruction
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.)
Granted
Application number
CN202110770557.3A
Other languages
Chinese (zh)
Other versions
CN113426099B (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

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a display control method and a display control 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 distance. The problem of because the physique size of the race of different areas is different, what lead to is to button size and habit different is solved, be favorable to the game to be released by the sea more.

Description

Display control method and device in game
Technical Field
The present invention relates to the field of game technology, and in particular, to a display control method and a display control device in a game.
Background
With the rapid development of computer technology, electronic games become a common entertainment mode in people's lives, and card games, which are an important branch of electronic games, have a great audience due to their interest and intelligence. When playing a card game, a player usually needs to select different cards by triggering to construct different card-playing combinations to achieve the purpose of winning the game, each card can be selected, and when the player interacts with the cards, the size of the cards can directly influence the speed of the player for selecting the cards.
At present, the size of a card in a card game is generally designed for a general size of a user, for example, the size of the card is set for the size of fingers and the operation mode of a general adult user. However, for other users of different ages and/or different countries, such as minors, adults, the elderly, the yellow, the caucasian, the black and the blood-mixed people, the universal card size designed in this way lacks personalized design for the users with different physique sizes, which easily causes poor game experience for some users, and fails to attract users and is easy to lose users.
Disclosure of Invention
In view of the above-mentioned problems that the size of the cards in the card game cannot be individually designed according to the physical size of the user, the game experience of some users is poor, and the users cannot be attracted and are easily lost, embodiments of the present invention are provided to provide a display control method in a game and a display control apparatus in a game, which overcome or at least partially solve the above-mentioned problems.
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 distance.
Optionally, the detection instruction is generated by a 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 multiple first touch areas respectively corresponding to the detection areas touched by the user for multiple times;
the responding 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 comprises:
and responding to a detection instruction aiming at the detection area, and determining a target touch interval according to the plurality of first touch areas.
Optionally, the detection area includes a plurality of sub-detection areas, and the detection instruction is generated by a user by touching the plurality of sub-detection areas, where, for a second touch area corresponding to the touch of each sub-detection area, the detection instruction includes a plurality of second touch areas corresponding to the plurality of sub-detection areas;
the responding 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 comprises:
and responding to the detection instructions aiming at the plurality of sub-detection areas, and determining a target touch interval according to the plurality of second touch areas.
Optionally, the responding to a detection instruction for a detection area, and determining a target touch distance according to one or more touch areas in the detection instruction includes:
responding to a detection instruction aiming at the detection area, calculating to obtain a median of the one or more touch areas, and determining the median as a target touch interval; or the like, or, alternatively,
and 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.
Optionally, the determining, by the detecting unit, a target touch distance according to one or more touch areas in a detection instruction of the detecting area in response to the detection instruction for the detecting area includes:
responding to a first detection instruction aiming at the first detection area, and determining a maximum touch distance 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 control interval according to the maximum touch control interval and the minimum touch control interval.
Optionally, 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 where one or more touch areas in the first detection instruction are located;
and determining the maximum touch distance according to the coordinate range.
Optionally, the determining, in response to a second detection instruction for the second detection area, a minimum touch distance according to one or more touch areas in the second detection instruction includes:
determining a minimum area of one or more touch areas in a second detection instruction in response to the second detection instruction for the second detection area;
and determining the minimum touch distance according to the minimum area.
Optionally, the calculating a target touch distance according to the maximum touch distance and the minimum touch distance includes:
calculating an average value of the maximum touch interval and the minimum touch interval;
and calculating to obtain a target touch control distance according to the average value.
Optionally, the calculating a target touch distance according to the average value includes:
multiplying the average value by a preset parameter to obtain a target touch control 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 stage of the user.
Optionally, the method further comprises:
displaying the third detection area;
responding to a third detection instruction aiming at the third detection area, and judging whether the target touch control space meets the condition;
and if the target touch space does not meet the condition, returning to execute the detection instruction of the response aiming at the detection area, and determining the target touch space according to one or more touch areas in the detection instruction.
Optionally, the determining whether the target touch distance satisfies a condition includes:
extracting a plurality of test areas in the third detection instruction;
calculating a first number of the plurality of test areas that is greater than or equal to the target touch spacing, and calculating a second number of the plurality of test areas that is less than the target touch spacing;
when the first number is larger than the second number, judging that the target touch space meets the condition; or the like, or, alternatively,
when the first number is smaller than the second number, it is determined that the target touch interval does not satisfy a condition.
Optionally, the method further comprises:
displaying a game interface, wherein the displayed content of the game interface comprises a confirmation use control and a re-detection control;
when a triggering instruction of a user for confirming the use of the control is received, playing a game according to the adjusted size of the virtual unit;
and returning to execute the detection instruction of the response aiming at the detection area and determining the target touch control distance when a triggering instruction of the user aiming at the re-detection control is received.
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 of a user-defined virtual unit and/or the distance between the user-defined virtual units;
and adjusting the size and/or the virtual unit interval of the virtual units displayed in the game according to the size and/or the custom virtual unit interval.
The embodiment of the invention also discloses a display control device in the game, which comprises:
the detection area display module is used for responding to a starting detection instruction aiming at the game and displaying a detection area on a graphical user interface of the game;
the target touch space determining module is used for responding to a detection instruction aiming at the detection area and determining a target touch space according to one or more touch areas in the detection instruction;
and the size adjusting module of the virtual unit is used for adjusting the size of the virtual unit displayed on the graphical user interface according to the target touch control distance.
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 to perform a method according to any one of the embodiments of the invention when the electronic device is operated.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method of any one of the embodiments of the invention is executed.
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 by responding to the starting detection instruction aiming at the game, the target touch distance is determined according to one or more touch areas in the detection instruction by responding to the detection instruction aiming at the detection area, and the size of the virtual unit displayed on the graphical user interface is adjusted according to the target touch distance. The problem of because the physique size difference of the race of different areas, what lead to is to button size and custom difference is solved, be favorable to playing more and release by sea, simultaneously, because child and adult, boy and girl, click mode such as young person and old person, touching precision, touching region all have very big difference, this scheme is fine has solved this type of difference, provides the differentiation design for different crowds, can make the player obtain higher experience in the recreation. Moreover, more personalized experience is provided for the player through intelligent detection adaptation and user-defined operation, operation adjustment can be carried out according to the self-preference condition of the player, the game experience of the user is improved, and therefore the user loss caused by poor game experience of the player is avoided.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart illustrating the steps of a method for controlling the display of a game according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a touch interval according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a detection area provided by an embodiment of the present invention;
FIG. 4 is a schematic view of another detection area provided by an embodiment of the present invention;
FIG. 5 is a flow chart illustrating steps of a method for controlling display in another game according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a third detection area provided by the embodiment of the present invention;
FIG. 7 is a schematic view of a game interface provided by an embodiment of the present invention;
FIG. 8 is a schematic view of a setup interface provided by embodiments of the present invention;
fig. 9 is a block diagram of a display control apparatus 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 to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems that in the prior art, the size of a card in a card game is generally 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 size of the user, the game experience of part of users is poor easily, and the users cannot be attracted and are lost easily, the embodiment of the invention provides a scheme capable of adjusting the size of a virtual unit in the game according to the requirements of the user. The problem of because the physique size difference of the race of different areas, what lead to is to button size and custom difference is solved, be favorable to playing more and release by sea, simultaneously, because child and adult, boy and girl, click mode such as young person and old person, touching precision, touching region all have very big difference, this scheme is fine has solved this type of difference, provides the differentiation design for different crowds, can make the player obtain higher experience in the recreation. Moreover, more personalized experience is provided for the player through intelligent detection adaptation and user-defined operation, operation adjustment can be carried out according to the self-preference condition of the player, the game experience of the user is improved, and therefore 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 size of cards in the card games can be set individually, and the operation adjustment can be carried out according to the self-preference condition of players, thereby improving the core experience of the battle of the card games. Among them, the card game is also called a card game, and belongs to one of table games. The card games comprise a trading card game and a non-trading card game, wherein the trading card game is CCG (compact card game) or TCG (trading card game) for short, the trading card game is based on card collection, players need to collect cards by purchasing a randomly packaged supplement pack, and then different cards are flexibly used to form a set of cards meeting rules according to own strategies to play games. By intelligently adjusting the size of the cards according to the scheme of the embodiment of the invention, the interaction speed between the player and the cards can be improved.
The in-game display control method in one embodiment of the invention can be operated on a terminal device or a server. The terminal device may be a local terminal device. When the in-game display control method is executed on a server, the in-game display control method may be implemented and executed based on a cloud interactive system, where the cloud interactive system includes the server and a client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a 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 presenting main body are separated, the storage and the running of the display control method in the game are completed on the cloud game server, and 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 performing the display control method in the game is a cloud game server in the cloud. When a game is played, a 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, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
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 for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. 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 through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling 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 is shown, which may specifically include the following steps:
step 101, responding to a starting detection instruction aiming at 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 computer, a game machine, a PDA and the like, the operating system of the mobile terminal can comprise Android (Android), IOS, Windows Phone, Windows and the like, and the operation of various games can be supported generally. 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 UI may include at least one virtual unit, which may be a game virtual unit operated by a player, for example, in a card game, the virtual unit may be a card, or may be any interactive control displayed on the gui in the touch display screen, for example, various virtual keys in a software/game APP, an eraser in a drawing tool, and the like.
The graphical user interface can also comprise a setting control for carrying out personalized setting on the game, and the player can initiate a starting detection instruction aiming at the game through the setting control. After receiving a starting detection instruction for the game, responding to the starting detection instruction, and displaying a detection area on the graphical user interface, wherein the detection area is used for detecting the touch distance of the user. In one or more embodiments of the present invention, the detection area may be one or more areas with various shapes (such as a square shape, a circular shape, and the like) on a graphical user interface in the touch display screen, and when the operation medium performs a touch operation in the detection area, the detection area has a corresponding touch area, which is an area covered by the operation medium in the detection area. The touch distance may be a width of the operation medium, and the operation medium may include a medium for inputting instructions, such as a finger of a user, a stylus pen, and the like, as shown in fig. 2, taking the operation medium as the finger of the user for example, the touch distance may be a width d of a fingerprint on the X axis when the finger touches the touch display screen1(i.e., the maximum width of the fingerprint in the horizontal direction), or the width d of the fingerprint in the Y-axis2(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, a display position of the detection area may be preset, and after receiving a 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 distance of the user through the detection area.
Step 102, 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;
specifically, the player may initiate a detection instruction by touching the detection area multiple times, where the detection instruction is used to detect a touch distance of the user. In specific implementation, a screen pressure sensing Touch technology Z-Touch can be used to detect Touch operation of a user on a detection area, and the principle is to sense through pressure from top to bottom, so that the position of an operation medium can be accurately identified, 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, where the detection instruction may include one or more touch areas acted on the detection area by the operation medium.
After receiving the detection instruction for the detection area, the game application may respond to the detection instruction, and determine a target touch distance according to one or more touch areas in the detection instruction, where the target touch distance may be used to represent a touch distance of a user in a general case. For example, an average value of the one or more touch areas is calculated as the target touch interval, or a median of the one or more touch areas is calculated as the target touch interval, or a maximum value and a minimum value are calculated according to the one or more touch areas, and then an average value of the maximum value and the minimum value is calculated as the target touch interval.
Step 103, adjusting the size of the virtual unit displayed in the game according to the target touch distance.
Specifically, the size of the virtual unit displayed in the game may be adaptively increased or decreased according to the target touch distance, for example, the width of the virtual unit may be adjusted according to the size of the virtual unit, for example, if the virtual unit is a card in a card game, the width of the card may be adjusted according to the target touch distance. In a specific implementation, the size of the virtual unit can be directly determined according to the target touch distance, or the size of the virtual unit can be adapted according to the target touch distance according to a preset proportion; or comparing the target touch distance with preset widths of a plurality of virtual units to select the optimal width.
As an example, the width of the virtual unit may be set to be equal to the target touch interval, the width of the virtual unit may be determined according to the target touch interval, and the size of the virtual unit displayed in the game may be increased or decreased according to the determined width.
As another example, the target touch interval may be reduced by a preset ratio (e.g., the preset ratio is 0.8), the width of the virtual unit may be set to be equal to the reduced target touch interval, the width of the virtual unit may be determined according to the reduced target touch interval, and the size of the virtual unit displayed in the game may be increased or reduced according to the determined width.
As another example, the target touch interval may be enlarged by a preset ratio (e.g., the preset ratio is 1.2), the width of the virtual unit may be set to be equal to the enlarged target touch interval, the width of the virtual unit may be determined according to the enlarged target touch interval, and the size of the virtual unit displayed in the game may be increased or decreased according to the determined width.
In a preferred embodiment of the present invention, the detection instruction is generated by a user touching the detection area multiple times, where each time the detection area is touched corresponds to a first touch area, and the detection instruction includes a plurality of first touch areas corresponding to the detection area respectively and touched by the user multiple times.
Specifically, by presetting a touch frequency, when the touch distance needs to be detected, the player touches the detection area for multiple times according to the preset touch frequency, and the mobile terminal generates a detection instruction when detecting that the touch frequency for the detection area meets the requirement. Each touch detection area corresponds to a first touch area, and the detection instruction comprises a plurality of first touch areas corresponding to the user touch detection areas for multiple times.
As an example, assuming that the preset number of times of touch 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, wherein the detection area 20 is shown as a circle, the detection area 20 is displayed at the center of the graphical user interface 10, and the 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 a target touch distance according to the plurality of first touch areas.
In the embodiment of the present invention, in response to a detection instruction for a detection area, a plurality of first touch areas in the detection instruction may be extracted, and a target touch distance may be 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, and the detection instruction is generated by a user by touching the plurality of sub-detection areas, where a second touch area corresponds to the touch of each sub-detection area, and the detection instruction includes a plurality of second touch areas corresponding to the plurality of sub-detection areas by the user.
In the embodiment of the present invention, the detection area may include a plurality of sub-detection areas, and the detection instruction is generated by a user by touching the plurality of sub-detection areas, specifically, when a touch distance needs to be detected, the player may touch the plurality of sub-detection areas, and the mobile terminal generates the detection instruction after detecting that touch is performed on all the sub-detection areas. The detection instruction comprises a plurality of second touch areas corresponding to the plurality of sub-detection areas, wherein the touch area of each sub-detection area corresponds to one second touch area, and the user respectively touches the plurality of second touch areas corresponding to the plurality of sub-detection areas.
As an example, as shown in fig. 4, assuming that the detection area includes 3 sub-detection areas, namely, the sub-detection area 41, the sub-detection area 42, and the sub-detection area 43, the player needs to perform touch operations on the sub-detection area 41, the sub-detection area 42, and the sub-detection area 43, respectively, and the generated detection instruction includes 3 second touch areas corresponding to the sub-detection area 41, the sub-detection area 42, and the sub-detection area 43, respectively, touched by the user.
In a preferred embodiment of the present invention, the step 102 may specifically include the following sub-steps:
and responding to the detection instructions aiming at the plurality of sub-detection areas, and determining a target touch interval according to the plurality of second touch areas.
In the embodiment of the present invention, in response to a second detection instruction for the plurality of sub-detection areas, a plurality of second touch areas in the second detection instruction may be extracted, and the target touch distance may be determined according to the plurality of second touch areas.
In a preferred embodiment of the present invention, the step 102 may further include the following sub-steps:
responding to a detection instruction aiming at the detection area, calculating to obtain a 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 the 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 the 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 region comprises a first detection region and a second detection region, 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 distance 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 control interval according to the maximum touch control interval and the minimum touch control interval.
The first detection area is used for detecting the maximum touch distance, and the second detection area is used for detecting the minimum touch distance.
In the embodiment of the present invention, a first detection area may be first displayed on a graphical user interface, after a first detection instruction of a user for the first detection area is received, the first detection instruction is responded, a maximum touch distance is determined according to one or more touch areas in the first detection instruction, and a 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 cancelled first, and then the second detection area may be displayed on the graphical user interface. It should be noted that, canceling the display of the first detection area before displaying the second detection area is only one embodiment of the present invention, and in a specific implementation, the first detection area may not be canceled 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, and the game application, after receiving the second detection instruction for the second detection area, responds to the second detection instruction and determines the minimum touch distance according to one or more touch areas in the second detection area.
Further, the target touch interval is calculated according to the maximum touch interval and the minimum touch interval. 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 as to calculate the target touch distance 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 where one or more touch areas in the first detection instruction are located; and determining the maximum touch distance according to the coordinate range.
In the embodiment of the present invention, in response to a first detection instruction for a first detection area, one or more touch areas in the first detection instruction may be extracted, and a coordinate range in which the one or more touch areas are located may be calculated. In a specific implementation, the coordinate ranges of each touch area on the X axis and the Y axis may be obtained, and the total coordinate ranges of the one or more touch areas on the X axis and the Y axis may be calculated according to the coordinate ranges of each touch area on the X axis and the Y axis.
After the coordinate range where the one or more touch areas are located is obtained through calculation, the maximum touch distance is further determined according to the coordinate range. 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 calculated according to the coordinate range, and the distance on the Y axis is used as the maximum touch distance; the maximum touch distance may also be selected from the distance on the X axis and the distance on the Y axis.
In a preferred embodiment of the present invention, the determining, in response to a second detection instruction for the second detection area, a minimum touch distance according to one or more touch areas in the second detection instruction includes:
determining a minimum area of one or more touch areas in a second detection instruction in response to the second detection instruction for the second detection area; and determining the minimum touch distance according to the minimum area.
In the embodiment of the present invention, in response to a second detection instruction for a second detection area, one or more touch areas in the second detection instruction may be extracted, and a minimum area in the one or more touch areas may be calculated. Specifically, the minimum area of the one or more touch areas may be calculated by a min () function.
After the minimum area in the one or more touch areas is obtained through calculation, the minimum touch distance is determined according to the minimum area. Specifically, the coordinate ranges of the minimum touch area on the X axis and the Y axis can be obtained, the distance on the X axis can be calculated according to the coordinate ranges, and the distance on the X axis is used as the minimum touch distance; the distance on the Y axis can be calculated according to the coordinate range, and the distance on the Y axis is used as the minimum touch distance; the minimum value can also be selected from the distance on the X axis and the distance on the Y axis as the minimum touch distance.
In a preferred embodiment of the present invention, the calculating the target touch distance 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 interval and the minimum touch interval; and calculating to obtain a target touch control distance according to the average value.
Specifically, when the target touch interval is calculated, an average value of the maximum touch interval and the minimum touch interval is calculated first, and then the average value is multiplied by a set coefficient to obtain the target touch interval.
In a preferred embodiment of the present invention, the calculating the target touch distance according to the average value includes:
multiplying the average value by a preset parameter to obtain a target touch control 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 stage of the user.
The preset parameter may be a preset coefficient, and the preset parameter is determined according to at least one of the following items: the current game type, the country in which the user is located, the age stage of the user.
Specifically, the coefficient matching the current game type may be searched as the preset parameter by determining the current game type, and/or the coefficient matching the country where the user is located may be searched as the preset parameter by determining the country where the user is located (specifically, the country where the user is located may be determined by obtaining an operator of the mobile terminal), and/or the coefficient matching the age stage of the user may be searched as the 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 by the preset parameters to obtain the target touch control distance. In a specific implementation, the target touch distance may satisfy the formula: and after the maximum touch interval, the minimum touch interval and the preset parameters are determined, substituting the maximum touch interval, the minimum touch interval and the preset parameters into the formula to obtain the target touch interval.
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 detection starting instruction aiming at the game, the detection instruction aiming at the detection area is responded, the target touch control distance is determined according to one or more touch control areas in the detection instruction, and the size of the virtual unit displayed on the graphical user interface is adjusted according to the target touch control distance. The problem of because the physique size difference of the race of different areas, what lead to is to button size and custom difference is solved, be favorable to playing more and release by sea, simultaneously, because child and adult, boy and girl, click mode such as young person and old person, touching precision, touching region all have very big difference, this scheme is fine has solved this type of difference, provides the differentiation design for different crowds, can make the player obtain higher experience in the recreation. Moreover, more personalized experience is provided for the player through intelligent detection adaptation and user-defined operation, operation adjustment can be carried out according to the self-preference condition of the player, the game experience of the user is improved, and therefore 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 is shown, which may specifically include the following steps:
step 501, responding to a first detection instruction aiming at a first detection area, determining a maximum touch control distance, and displaying a second detection area;
in the embodiment of the invention, when a player needs to adjust the size of a virtual object in a game, the player can initiate a first detection instruction by touching the first detection area, and after receiving the first detection instruction for the first detection area, determine the maximum touch distance in response to the first detection instruction for the first detection area, and display the second detection area.
Step 502, responding to a second detection instruction aiming at the second detection area, and determining a minimum touch control distance;
after receiving a second detection instruction for a second detection area, determining a minimum touch distance in response to the second detection instruction for the second detection area.
Step 503, calculating a target touch control distance according to the maximum touch control distance and the minimum touch control distance;
step 504, displaying a third detection area;
after the target touch distance is obtained through calculation, a third detection area may be displayed on the graphical user interface, where the third detection area is used to test whether the target touch distance satisfies a condition. Specifically, before the third detection area is displayed, the second detection area displayed on the graphical user interface may be cancelled first, and then the third detection area is displayed on the graphical user interface.
Step 505, responding to a third detection instruction for the third detection area, and determining whether the target touch distance meets a condition;
specifically, the player may initiate a third detection instruction by touching the third detection area, where the third detection instruction is used to test whether the target touch distance satisfies a condition. In a specific implementation, the player may perform a touch operation on the third detection area, and the mobile terminal generates a third detection instruction after detecting the touch operation on the third detection area. After receiving a third detection instruction of the user for the third detection area, the third detection instruction may be responded to determine whether the target touch distance satisfies the condition.
In a specific implementation, the third detection area may include a plurality of sub-test areas, and the third detection instruction is generated by a user respectively touching the plurality of sub-test areas, where, for each test area corresponding to the touch of the sub-test area, the third detection instruction includes a plurality of test areas corresponding to the plurality of sub-test areas respectively touched by the user.
As an example, as shown in fig. 6, assuming that the third detection area includes 5 sub-test areas, which are the sub-test area 51, the sub-test area 52, the sub-test area 53, the sub-test area 54, and the sub-test area 55, the player needs to perform touch operations on the 5 sub-test areas, respectively, and the generated third detection instruction includes that the user touches 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 that is greater than or equal to the target touch spacing, and calculating a second number of the plurality of test areas that is less than the target touch spacing; when the first number is larger than the second number, judging that the target touch space meets the 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 distance meets the condition can be judged by respectively comparing the sizes of the test area and the target touch distance. 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 with 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 to be in 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 to be in a third color, such as red. And judging whether the target touch space meets the condition or not by counting and comparing the first number of the sub-test areas marked as the first color and the second color with the second number of the sub-test areas marked as the third color. For example, when the first number of the sub-test areas marked as green and yellow is 3 and the second number of the sub-test areas marked as red is 2, it is determined that the target touch interval satisfies the condition; and when the first number of the sub-test areas marked as green and yellow is 2 and the second number of the sub-test areas marked as red is 3, judging that the target touch space does not meet 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 satisfy the condition, the step 501 and the step 505 may be executed again for re-detection.
In step 507, if the target touch distance satisfies a condition, the size of the virtual unit displayed in the game is adjusted according to the target touch distance.
In the embodiment of the present invention, if the target touch distance satisfies the condition, the size of the virtual unit displayed in the game may be adjusted according to the target touch distance.
In a preferred embodiment of the present invention, before the step 501, the following steps may be further included:
displaying a first detection area 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, and the detection control detects a target touch distance of the user. And the player initiates a detection starting instruction by performing touch operation on the detection control. After receiving a start detection instruction on a graphical user interface for a game, a first detection area may be displayed in response to the start detection instruction.
In a specific implementation, after receiving a start detection instruction on a graphical user interface for a game, a detection mode may be entered, and in the detection mode, interface elements displayed previously on the graphical user interface, for example, interface elements such as a hidden chat window, a setting control, and a task panel, are hidden, and after the interface elements displayed previously on the graphical user interface, a first detection area is further displayed on the graphical user interface. In addition, after receiving a 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 interface elements displayed previously 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, and the embodiment of the present invention is not limited to this.
In a preferred embodiment of the present invention, the method further comprises:
displaying a game interface, wherein the displayed content of the game interface comprises a confirmation use control and a re-detection control; when a triggering instruction of a user for confirming the use of the control is received, playing a game according to the adjusted size of the virtual unit; and returning to execute the first detection instruction of the response aiming at the first detection area and determining the maximum touch distance when a triggering instruction of the user aiming at the re-detection control is received.
In the embodiment of the present invention, the size of the virtual unit displayed in the game is adjusted according to the target touch distance, and a game interface can be skipped, where the game interface can be an interface for playing game battles, 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 can further comprise a use confirmation control and a re-detection control, wherein the use confirmation control is used for confirming the size of the virtual unit adjusted this time, the re-detection control is used for canceling the size of the virtual unit adjusted this time, the target touch control distance of the user is re-detected, and the size of the virtual unit is adjusted according to the re-detected target touch control distance. As shown in fig. 7, the game interface 60 includes a confirmation use control 61 and a re-detection control 62.
Specifically, when a trigger instruction for confirming the use of the control by the user is received, the game can be played according to the size of the adjusted virtual unit; when a triggering instruction for the re-detection control by the user is received, the step 501 and the step 507 are returned to be executed to re-detect the target touch distance of the user.
In a preferred embodiment of the present invention, the method further comprises:
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 of a user-defined virtual unit and/or the distance between the user-defined virtual units; and adjusting the size and/or the virtual unit interval of the virtual units displayed in the game according to the size and/or the custom virtual unit interval.
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 touch operation on the display control to initiate a custom setting instruction. After receiving a user setting command for a graphical user interface of a game, the user can respond to the user setting command and display a setting interface. The setting interface is used for setting the size of the virtual unit and/or the virtual unit interval.
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 distance setting frame are included in the setting interface, and the user can set the size of the cards through the card size setting frame and set the distance between the cards through the card distance 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 inputting a custom numerical value by a user to set the size of the card; the setting interface can also comprise a return control, and the return control is used for quitting the setting interface; the setting interface can also comprise a resetting control which is used for resetting the parameters of the current custom setting; the setting interface can also comprise a storage control, and the storage control is used for storing the parameters set by the user in a current self-definition mode.
Specifically, after receiving a setting instruction for the setting interface, the game device may respond to the setting instruction to determine the size of the custom virtual unit and/or the custom virtual unit interval, and adjust the size of the virtual unit and/or the virtual unit interval displayed in the game according to the size of the custom virtual unit and/or the custom virtual unit interval. Therefore, the player can adjust the size of the virtual unit and the distance between the virtual units according to the requirement of the player, and the game experience of the user is further improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 9, a block diagram of a structure 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, configured to display 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;
a size adjusting module 903 of a virtual unit, 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 a 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 multiple first touch areas corresponding to the detection area respectively and touched by the user for multiple times;
the target touch distance detection module 902 includes:
and the first detection submodule is used for responding to a detection instruction aiming at the detection area and determining a 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, and the detection instruction is generated by a user by touching the plurality of sub-detection areas, where a second touch area corresponds to the touch of each sub-detection area, and the detection instruction includes a 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 the detection instructions aiming at the plurality of sub-detection areas and determining the target touch intervals according to the plurality of 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 to obtain a median of the one or more touch areas, and determining the median as a target touch interval; or the like, or, alternatively,
and the second distance determining submodule is used for 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 distance.
In a preferred embodiment of the invention. The detection area includes a first detection area and a second detection area, and the target touch distance 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 space detection submodule is used for responding to a second detection instruction aiming at the second detection area and determining the minimum touch space according to one or more touch areas in the second detection instruction;
and the target touch interval determining submodule is used for calculating to obtain 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 submodule 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 submodule includes:
a second touch area extracting unit, configured to determine, in response to a second detection instruction for the second detection area, a minimum area of one or more touch areas in the second detection instruction;
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 submodule includes:
an average value calculation unit for calculating an average value of the maximum touch interval and the minimum touch interval;
and the target touch interval calculating unit is used for calculating the target touch interval according to the average value.
In a preferred embodiment of the present invention, the target touch distance calculating unit includes:
the target touch control distance calculating subunit is used for multiplying the average value by a preset parameter to obtain a target touch control 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 stage of the user.
In a preferred embodiment of the present invention, the method further comprises:
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 control space meets the condition;
and the re-detection module is used for returning to execute the detection instruction of the response aiming at the detection area if the target touch space does not meet the condition, and determining the target touch space 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 extracting submodule is used for extracting a plurality of test areas in the third detection instruction;
the number calculation submodule is used for calculating a first number which is larger than or equal to the target touch spacing in the plurality of test areas and calculating a second number which is smaller than the target touch spacing in the plurality of test areas;
the first judging submodule is used for judging that the target touch control distance meets the condition when the first number is larger than the second number; or the like, or, alternatively,
and the second judging submodule is used for judging that the target touch space does not meet the condition when the first number is smaller than the second number.
In a preferred embodiment of the present invention, the method further comprises:
the game interface display module is used for displaying a game interface, and the content displayed by the game interface comprises a use confirmation control and a re-detection control;
the use confirming module is used for playing games according to the adjusted size of the virtual unit when a triggering instruction of a user for the use confirming control is received;
and the re-detection module is used for returning and executing the detection instruction of the response aiming at the detection area when receiving a trigger instruction of the user aiming at the re-detection control, and determining a target touch distance according to one or more touch areas in the detection instruction.
In a preferred embodiment of the present invention, the method further comprises:
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 user-defined setting module is used for responding to a setting instruction aiming at the setting interface and determining the size of a user-defined virtual unit and/or the distance between the user-defined 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 size and/or the distance of the user-defined virtual units.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, as shown in fig. 10, including:
a processor 1001 and a storage medium 1002, wherein the storage medium 1002 stores machine-readable instructions executable by the processor 901, and when the electronic device runs, the processor 1001 executes the machine-readable instructions to perform the method according to any one of the embodiments of the present invention. The specific implementation and technical effects are similar, and are not described herein again.
An 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 when the computer program 1101 is executed by a processor, the method according to any one of the embodiments of the present invention is executed. The specific implementation and technical effects are similar, and are not described herein again.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, 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 present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal 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 of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The display control method in the game and the display control device in the game provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the examples is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (16)

1. A display control method in a game, comprising:
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 distance.
2. The method according to claim 1, wherein the detection instruction is generated by a user touching the detection area multiple times, wherein each time the detection area is touched corresponds to a first touch area, and the detection instruction comprises a plurality of first touch areas respectively corresponding to the detection areas touched by the user multiple times;
the responding 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 comprises:
and responding to a detection instruction aiming at the detection area, and determining a target touch interval according to the plurality of first touch areas.
3. The method according to claim 1, wherein the detection area comprises a plurality of sub-detection areas, and the detection instruction is generated by a user touching the plurality of sub-detection areas respectively, wherein a second touch area corresponds to the touch of each sub-detection area, and the detection instruction comprises a plurality of second touch areas corresponding to the plurality of sub-detection areas respectively touched by the user;
the responding 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 comprises:
and responding to the detection instructions aiming at the plurality of sub-detection areas, and determining a target touch interval according to the plurality of second touch areas.
4. The method according to claim 1, 2 or 3, wherein the determining a target touch distance according to one or more touch areas in the detection instruction in response to the detection instruction for the detection area comprises:
responding to a detection instruction aiming at the detection area, calculating to obtain a median of the one or more touch areas, and determining the median as a target touch interval; or the like, or, alternatively,
and 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.
5. The method according to claim 1, 2 or 3, wherein the detection area comprises a first detection area and a second detection area, and the determining the target touch distance according to one or more touch areas in the detection instruction in response to the detection instruction for the detection area comprises:
responding to a first detection instruction aiming at the first detection area, and determining a maximum touch distance 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 control interval according to the maximum touch control interval and the minimum touch control interval.
6. The method of claim 5, wherein the determining a maximum touch separation from one or more touch zones in the first detection instruction in response to the first detection instruction for the first detection zone comprises:
responding to a first detection instruction aiming at the first detection area, and determining a coordinate range where one or more touch areas in the first detection instruction are located;
and determining the maximum touch distance according to the coordinate range.
7. The method of claim 5, wherein the determining a minimum touch separation from one or more touch zones in the second detection instruction in response to the second detection instruction for the second detection area comprises:
determining a minimum area of one or more touch areas in a second detection instruction in response to the second detection instruction for the second detection area;
and determining the minimum touch distance according to the minimum area.
8. The method of claim 5, wherein calculating a target touch distance according to the maximum touch distance and the minimum touch distance comprises:
calculating an average value of the maximum touch interval and the minimum touch interval;
and calculating to obtain a target touch control distance according to the average value.
9. The method of claim 8, wherein calculating the target touch distance according to the average value comprises:
multiplying the average value by a preset parameter to obtain a target touch control 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 stage of the user.
10. The method of claim 1, further comprising:
displaying the third detection area;
responding to a third detection instruction aiming at the third detection area, and judging whether the target touch control space meets the condition;
and if the target touch space does not meet the condition, returning to execute the detection instruction of the response aiming at the detection area, and determining the target touch space according to one or more touch areas in the detection instruction.
11. The method of claim 10, wherein the determining whether the target touch distance 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 that is greater than or equal to the target touch spacing, and calculating a second number of the plurality of test areas that is less than the target touch spacing;
when the first number is larger than the second number, judging that the target touch space meets the condition; or the like, or, alternatively,
when the first number is smaller than the second number, it is determined that the target touch interval does not satisfy a condition.
12. The method of claim 1, further comprising:
displaying a game interface, wherein the displayed content of the game interface comprises a confirmation use control and a re-detection control;
when a triggering instruction of a user for confirming the use of the control is received, playing a game according to the adjusted size of the virtual unit;
and when a triggering instruction of the user for the re-detection control is received, returning to execute the detection instruction of the response for the detection area, and determining a target touch distance according to one or more touch areas in the detection instruction.
13. The method of 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 of a user-defined virtual unit and/or the distance between the user-defined virtual units;
and adjusting the size and/or the virtual unit interval of the virtual units displayed in the game according to the size and/or the custom virtual unit interval.
14. A display control apparatus in a game, comprising:
the detection area display module is used for responding to a starting detection instruction aiming at the game and displaying a detection area on a graphical user interface of the game;
the target touch space determining module is used for responding to a detection instruction aiming at the detection area and determining a target touch space according to one or more touch areas in the detection instruction;
and the size adjusting module of the virtual unit is used for adjusting the size of the virtual unit displayed on the graphical user interface according to the target touch control distance.
15. 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 to perform the method of any one of claims 1-13 when the electronic device is run.
16. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-13.
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 true CN113426099A (en) 2021-09-24
CN113426099B 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 (11)

* 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
CN202956741U (en) * 2011-12-08 2013-05-29 爱特梅尔公司 Touch sensor with determined self-adaption touch detection threshold and touch sensitive device
US20150370449A1 (en) * 2013-02-05 2015-12-24 Dongguan Goldex Communication Technology Co., Ltd. Terminal and method for controlling terminal with touchscreen
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

Patent Citations (11)

* 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
CN202956741U (en) * 2011-12-08 2013-05-29 爱特梅尔公司 Touch sensor with determined self-adaption touch detection threshold and touch sensitive device
US20150370449A1 (en) * 2013-02-05 2015-12-24 Dongguan Goldex Communication Technology Co., Ltd. Terminal and method for controlling terminal with touchscreen
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
转行人的设计笔记: "按钮的最佳尺寸到底是多少?这篇给你权威答案!", pages 1 - 16, Retrieved from the Internet <URL:https://www.uisdc.com/button-size> *

Also Published As

Publication number Publication date
CN113426099B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
KR101216307B1 (en) Method and apparatus for controlling game character by pattern input
CN111905364A (en) Recommendation and purchase method of game virtual prop and electronic equipment
JP7447299B2 (en) Adaptive display method and device for virtual scenes, electronic equipment, and computer program
Baldauf et al. Investigating on-screen gamepad designs for smartphone-controlled video games
US9636591B2 (en) Game system, game device, game control method, and program
CN110384920B (en) Virtual reality multi-person table game interaction system, interaction method and server
JP6738872B2 (en) Game program, method, and information processing device
CN113318429B (en) Control method and device for exiting game, processor and electronic device
WO2017000344A1 (en) Operating method and terminal based on fingerprint recognition
US20140007118A1 (en) Comparison device, comparison method, non-transitory recording medium, and system
CN113426099A (en) Display control method and device in game
JP2023076611A (en) Game program and information processing device
CN115888094A (en) Game control method, device, terminal equipment and storage medium
CN113926186A (en) Method and device for selecting virtual object in game and touch terminal
CN111176535B (en) Screen splitting method based on intelligent sound box and intelligent sound box
CN113552985A (en) Message processing method and device, electronic equipment and storage medium
CN113680047A (en) Terminal operation method and device, electronic equipment and storage medium
CN113680048A (en) Method and device for adjusting rocker control in game
JP4527096B2 (en) GAME SYSTEM AND GAME PROGRAM
WO2022130681A1 (en) Game system, program, and information processing method
JP2020043926A (en) Game program, method and information processor
JP7368957B2 (en) Programs and information processing equipment
KR102345395B1 (en) Appartus and method for providing user interface
JP6761835B2 (en) Programs, methods, and information processing equipment
KR20170081889A (en) Method for providing user interface for card game, and server and computer-readable recording media using the same

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