CN111346373A - Method and device for controlling display of virtual joystick in game and electronic equipment - Google Patents

Method and device for controlling display of virtual joystick in game and electronic equipment Download PDF

Info

Publication number
CN111346373A
CN111346373A CN202010131416.2A CN202010131416A CN111346373A CN 111346373 A CN111346373 A CN 111346373A CN 202010131416 A CN202010131416 A CN 202010131416A CN 111346373 A CN111346373 A CN 111346373A
Authority
CN
China
Prior art keywords
virtual
display
current
game
display state
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
CN202010131416.2A
Other languages
Chinese (zh)
Other versions
CN111346373B (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 CN202010131416.2A priority Critical patent/CN111346373B/en
Publication of CN111346373A publication Critical patent/CN111346373A/en
Application granted granted Critical
Publication of CN111346373B publication Critical patent/CN111346373B/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/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • 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
    • 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

Abstract

The disclosure relates to the technical field of information display, and provides a method and a device for controlling display of a virtual rocker in a game, a computer-readable storage medium and electronic equipment, wherein the method comprises the following steps: providing a graphical user interface through the terminal equipment, wherein the graphical user interface comprises at least one virtual rocker; acquiring a first display position of a virtual object in a game on a graphical user interface; acquiring the current position and the current display state of the virtual rocker; and adjusting the current display state according to the relation between the first display position and the current position. The technical scheme of the embodiment of the disclosure can effectively avoid the problem that the virtual rocker blocks the view of the user, and improves the user experience.

Description

Method and device for controlling display of virtual joystick in game and electronic equipment
Technical Field
The disclosure relates to the technical field of information display, in particular to a method and a device for controlling display of a virtual rocker in a game, a computer-readable storage medium and electronic equipment.
Background
With the rapid development of the game industry and touch screens, a technology of providing a virtual joystick capable of controlling a game character on a touch screen is becoming more popular for users' convenience.
However, in the prior art, when the virtual joystick displayed on the finger touch screen of the user is closer to the game character, the virtual joystick may affect the view angle of the user, and the judgment of the user is affected, so that the user generates negative emotion and a result of game failure is generated.
Therefore, it is necessary to design a new method and apparatus for controlling the display of a virtual joystick in a game, a computer readable storage medium and an electronic device.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a method and an apparatus for controlling display of a virtual joystick in a game, a computer readable storage medium, and an electronic device, so as to overcome, at least to a certain extent, a problem that when a virtual joystick displayed on a finger touch screen of a user is closer to a game character, the virtual joystick affects a view angle of the user, affects a judgment of the user, and causes a negative emotion of the user, thereby causing a game failure.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, there is provided an in-game virtual joystick display control method, wherein a graphical user interface is provided through a terminal device, the graphical user interface includes at least one virtual joystick, the method includes:
acquiring a first display position of a virtual object in the game on the graphical user interface;
acquiring the current position and the current display state of the virtual rocker;
and adjusting the current display state according to the relation between the first display position and the current position.
In an exemplary embodiment of the present disclosure, the virtual object includes a first virtual object and a second virtual object, wherein the second virtual object is configured to move in the game according to a preset rule, the method further includes:
and responding to the touch operation acted on the virtual rocker to control the first virtual object to move in the game.
In an exemplary embodiment of the present disclosure, the virtual joystick is fixedly disposed at a preset position of the gui.
In an exemplary embodiment of the present disclosure, the method further comprises:
and responding to the touch operation acted on the virtual rocker, and controlling the virtual rocker to move on the graphical user interface.
In an exemplary embodiment of the present disclosure, adjusting the current display state according to the relationship between the first display position and the current position includes:
acquiring the distance between the first display position and the current position;
selecting the minimum value of the distances as a target distance;
and adjusting the current display state according to the target distance.
In an exemplary embodiment of the present disclosure, adjusting the current display state according to the relationship between the first display position and the current position includes:
acquiring the number of the virtual objects of which the distance between the first display position and the current position of the virtual rocker meets a preset range;
and adjusting the current display state of the virtual rocker according to the number of the virtual objects.
In an exemplary embodiment of the present disclosure, the display state includes a display transparency and a display size, and adjusting the real-time current display state of the virtual stick according to the number of the virtual objects includes:
the display transparency of the virtual joystick is positively correlated with the number of the virtual objects; and/or the presence of a gas in the gas,
the display size and the number of virtual objects are inversely related;
and updating the display transparency and the display size of the virtual rocker at intervals of a preset time period according to the change of the number of the virtual objects.
In an exemplary embodiment of the present disclosure, the current display state includes a display transparency and a display size of a virtual stick, and adjusting the current display state according to a relationship between the first display position and the current position includes:
the display transparency of the virtual joystick is inversely related to the distance; and/or the presence of a gas in the gas,
the display sizes are all positively correlated with the distance;
and updating the display transparency and the display size of the virtual rocker at intervals of a preset time period according to the change of the distance.
In an exemplary embodiment of the present disclosure, the acquiring the current position and the current display state of the virtual stick includes:
identifying size information and pixel information of the graphical user interface;
determining the current position of the virtual rocker according to the size information and a preset size proportion;
and determining the current display state of the virtual rocker according to the pixel information and a preset brightness ratio.
According to a first aspect of the present disclosure, there is provided an in-game virtual joystick display control apparatus, which provides a graphical user interface through a terminal device, wherein the graphical user interface includes at least one virtual joystick, including:
the first acquisition module is used for acquiring a first display position of a virtual object in the game on the graphical user interface;
the second acquisition module is used for acquiring the current position and the current display state of the virtual rocker;
and the adjusting module is used for adjusting the current display state according to the relation between the first display position and the current position.
According to a first aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the in-game virtual joystick display control method of any one of the above.
According to a first aspect of the present disclosure, there is provided an electronic device comprising:
a processor; and
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the in-game virtual joystick display control method of any of the above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the method for controlling display of the virtual rocker in the game, provided by the embodiment of the disclosure, by obtaining the first display position of the virtual object on the graphical user interface and the current display state of the current position of the virtual rocker, and adjusting the current display state according to the distance between the first display position and the current position, compared with the prior art, adjusting the display state of the virtual rocker according to the first display position of the virtual object on the graphical user interface and the current position of the virtual rocker can effectively avoid the problem that the user experience is reduced because the virtual rocker blocks the view of the user, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 schematically illustrates a flow chart of a method for in-game virtual joystick display control in an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart for obtaining a current position and a current display state of the virtual joystick in an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram schematically illustrating adjusting the current display state according to a relationship between the first display position and the current position in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a current display state of a virtual joystick in an exemplary embodiment of the present disclosure;
fig. 5 schematically illustrates a display state after adjusting transparency in an exemplary embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating the components of an in-game virtual joystick display control device according to an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a structural diagram of a computer system suitable for use with an electronic device that implements an exemplary embodiment of the present disclosure;
fig. 8 schematically illustrates a schematic diagram of a computer-readable storage medium, according to some embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In the present exemplary embodiment, referring to fig. 1, the in-game virtual joystick display control method described above may include the steps of:
s110, acquiring a first display position of a virtual object in the game on the graphical user interface;
s120, acquiring the current position and the current display state of the virtual rocker;
s130, adjusting the current display state according to the relation between the first display position and the current position.
According to the method for controlling the display of the virtual joystick in the game provided by the exemplary embodiment, compared with the prior art, the problem that the user experience is reduced due to the fact that the virtual joystick blocks the view of the user can be effectively solved by adjusting the display state of the virtual joystick according to the first display position of the virtual object on the graphical user interface and the current position of the virtual joystick, and the user experience is improved.
Hereinafter, the steps of the in-game virtual joystick display control method in the present exemplary embodiment will be described in more detail with reference to the drawings and the embodiments.
Step S110, acquiring a first display position of the virtual object in the game on the graphical user interface.
In an example embodiment of the present disclosure, the virtual object may include a first virtual object and a second virtual object, where the first virtual object may be a game character operated by a user, such as a character, a vehicle, or the like, or may be another game character, such as an animal character, a robot, or the like, and is not particularly limited in this example embodiment. The first virtual object can move in response to a touch operation acting on the virtual rocker, namely the virtual rocker can control the first virtual object to move on the image user interface.
In the present exemplary embodiment, the second virtual object may be a character, a vehicle, a bullet, etc. controlled by the system server, and the second virtual object is configured to move in the game according to a preset rule, which may occur regularly according to a period of time and move along a preset route in the present exemplary embodiment, which is not particularly limited in the present exemplary embodiment.
In an exemplary embodiment, the virtual joystick is fixed at a preset position of the graphical user interface, and the user cannot move the virtual joystick. In another exemplary embodiment, the virtual joystick may move on the graphical user interface in response to a touch operation of a user. The position of the virtual rocker is not particularly limited in this scheme.
In step S120, a current position and a current display state of the virtual stick are obtained;
in an example embodiment of the present disclosure, as shown in fig. 2, acquiring the current position and the current display state of the virtual stick may include steps S210 to S230, which are explained in detail below with reference to S210 to S230.
In step S210, size information and pixel information of the graphical user interface are identified.
In an example embodiment of the present disclosure, size information and pixel information of the graphical user interface are first identified, the size information may include a length and a width of the graphical user interface, and the pixel information may include a display brightness, a color value, and the like of the graphical user interface, which is not specifically limited in this example embodiment.
In step S220, the current position of the virtual joystick is determined according to the size information and a preset size ratio.
In the present exemplary embodiment, the current display position of the virtual stick and the size of the virtual stick may be determined according to the above-described size information, i.e., the length and width of the graphical user interface, in a preset size ratio.
In step S230, a current display state of the virtual joystick is determined according to the pixel information and a preset brightness ratio.
In an example embodiment of the present disclosure, the display brightness and the color value of the virtual joystick can be determined according to the display brightness and the color value of the graphical user interface, so that the current display state of the virtual joystick is more beautiful, the experience of a user is further improved, the display brightness and the color value of the virtual joystick can be customized according to requirements, and no specific limitation is made in the example embodiment.
In step S130, the current display state is adjusted according to the relationship between the first display position and the current position.
In an example embodiment of the present disclosure, as described with reference to fig. 3, adjusting the current display state according to the relationship between the first display position and the current position may include steps S310 to S330, which are explained in detail below.
In step S310, obtaining a distance between the first display position and the current position;
in an example embodiment of the present disclosure, the distance may be a distance from the first display position of the virtual object to a center position of the virtual stick, and in another example embodiment, the distance may be a distance from the first display position of the virtual object to an edge position of the virtual stick, which is not particularly limited in this example embodiment. The number of the first display positions of the virtual object may be one, or may be multiple, for example, 2, 3, or more.
In this example embodiment, the server may first acquire the coordinates of the center position of the virtual stick on the graphical user interface, then acquire the coordinates of the virtual object on the graphical user interface, and then calculate the distance from the first display position of the virtual object to the center position of the virtual stick according to the coordinates of the center position of the virtual stick on the graphical user interface and the coordinates of the virtual object on the graphical user interface.
In the present exemplary embodiment, the distance between the first display position of the virtual object and the center position of the virtual stick is acquired in various ways, and the way of acquiring the distance is not limited in detail.
In step S320, the minimum value of the plurality of distances is selected as the target distance.
In an example embodiment of the present disclosure, when the number of virtual objects is one, the distance is directly set as the target distance, and when the number of virtual objects is plural, a distance having the smallest absolute value may be selected from the plural distances as the target distance.
In step S330, the current display state is adjusted according to the target distance.
In an example embodiment of the present disclosure, the current display state of the virtual joystick is adjusted according to the determined target distance, and in this example embodiment, the current display state may include transparency and size of the virtual joystick, and the size of the virtual joystick is positively correlated with the distance, that is, the smaller the distance is, the smaller the size of the virtual joystick is, and the transparency of the virtual joystick is negatively correlated with the distance, that is, the closer the distance is, the higher the transparency of the virtual joystick is.
In this example embodiment, adjusting the current display state according to the relationship between the first display position and the current position may further include adjusting the display state of the virtual joystick according to the number of virtual objects, in this example embodiment, the server may first determine whether a distance between the current display position of the virtual joystick and the first display positions of the plurality of virtual objects satisfies a preset condition, where the preset condition may include a distance of less than or equal to 3 millimeters, and certainly may be other distances of less than or equal to 2 millimeters, and is not specifically limited in this example embodiment, and then may adjust the display state of the virtual joystick according to the number of virtual objects satisfying the preset condition, which may be adjusting the transparency and the size of the virtual joystick.
In the present exemplary embodiment, as shown with reference to fig. 4 and 5, the server may cause the transparency of the current display state of the virtual stick 41 to be increased while decreasing the size of the virtual stick 41 when the number of virtual objects 42 satisfying the preset condition becomes greater, and decrease the transparency in the above-described virtual stick display state while increasing the size of the virtual stick when the number of virtual objects 42 satisfying the preset condition decreases. For example, when the number of virtual objects satisfying the preset condition is changed from 0 to 4, the server controls the display size of the virtual stick to be reduced by 50% while the transparency is increased by 50%. The adjustment values of the transparency and the size of the virtual joystick 41 in the present exemplary embodiment may be customized according to the requirement, and are not particularly limited in the present exemplary embodiment.
When the display state of the virtual stick 41 is adjusted, only the transparency may be adjusted, only the size may be adjusted, and the size and the transparency may be adjusted at the same time, which is not particularly limited in the present exemplary embodiment.
In an example embodiment of the present disclosure, when the current display position of the virtual joystick is adjusted, the current display position of the virtual joystick may be adjusted once every other preset time period, where the preset time period may be 1 millisecond, or may be two milliseconds, three milliseconds, and the like, and may also be customized according to requirements, for example, three seconds, five seconds, and the like, and is not specifically limited in this example embodiment. In another exemplary embodiment, the display state of the virtual joystick may be updated at any time, which is not specifically limited in this exemplary embodiment.
The following describes embodiments of the apparatus of the present disclosure, which can be used to implement the method for controlling the display of the virtual joystick in the game described above in the present disclosure. In addition, in an exemplary embodiment of the present disclosure, an in-game virtual joystick display control device is also provided. Referring to fig. 6, the in-game virtual stick display control apparatus 600 includes: a first obtaining module 610 for obtaining a first display position of the virtual object in the game on the gui, a second obtaining module 620 for obtaining a current position and a current display state of the virtual joystick, and an adjusting module 630 for adjusting the current display state according to a relationship between the first display position and the current position.
The first obtaining module 610 may be configured to obtain a first display position of a virtual object in the game on the graphical user interface; the second obtaining module 620 may be configured to obtain a current position and a current display state of the virtual joystick; the adjusting module 630 may be configured to adjust the current display state according to a relationship between the first display position and the current position.
For details that are not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method for controlling display of a virtual joystick in a game described above for details that are not disclosed in the embodiments of the apparatus of the present disclosure.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the in-game virtual joystick display control is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, a bus 730 connecting different system components (including the memory unit 720 and the processing unit 710), and a display unit 740.
Wherein the storage unit stores program code that is executable by the processing unit 710 to cause the processing unit 710 to perform steps according to various exemplary embodiments of the present disclosure as described in the above section "exemplary methods" of this specification. For example, the processing unit 710 may perform step S110 as shown in fig. 1: acquiring a first display position of a virtual object in the game on the graphical user interface; s120: acquiring the current position and the current display state of the virtual rocker; s130: and adjusting the current display state according to the relation between the first display position and the current position.
As another example, the electronic device may implement the steps shown in fig. 1 to 3.
The storage unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)721 and/or a cache memory unit 722, and may further include a read only memory unit (ROM) 723.
The memory unit 720 may also include programs/utilities 724 having a set (at least one) of program modules 725, such program modules 725 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 770 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. As shown, the network adapter 760 communicates with the other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
Referring to fig. 8, a program product 800 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (12)

1. A method for controlling display of a virtual joystick in a game is characterized in that a graphical user interface is provided through a terminal device, the graphical user interface comprises at least one virtual joystick, and the method comprises the following steps:
acquiring a first display position of a virtual object in the game on the graphical user interface;
acquiring the current position and the current display state of the virtual rocker;
and adjusting the current display state according to the relation between the first display position and the current position.
2. The method of claim 1, wherein the virtual object comprises a first virtual object and a second virtual object, wherein the second virtual object is configured to move in the game according to a preset rule, the method further comprising:
and responding to the touch operation acted on the virtual rocker to control the first virtual object to move in the game.
3. The method of claim 1, wherein the virtual joystick is fixedly disposed at a predetermined position of the gui.
4. The method of claim 1, further comprising:
and responding to the touch operation acted on the virtual rocker, and controlling the virtual rocker to move on the graphical user interface.
5. The method of claim 1, wherein adjusting the current display state according to the relationship between the first display position and the current position comprises:
acquiring the distance between the first display position and the current position;
selecting the minimum value of the distances as a target distance;
and adjusting the current display state according to the target distance.
6. The method of claim 1, wherein adjusting the current display state according to the relationship between the first display position and the current position comprises:
acquiring the number of the virtual objects of which the distance between the first display position and the current position of the virtual rocker meets a preset range;
and adjusting the current display state of the virtual rocker according to the number of the virtual objects.
7. The method of claim 6, wherein the display state comprises a display transparency and a display size, and wherein adjusting the real-time current display state of the virtual joystick according to the number of virtual objects comprises:
the display transparency of the virtual joystick is positively correlated with the number of the virtual objects; and/or the presence of a gas in the gas,
the display size and the number of virtual objects are inversely related;
and updating the display transparency and the display size of the virtual rocker at intervals of a preset time period according to the change of the number of the virtual objects.
8. The method of claim 5, wherein the current display state comprises a display transparency and a display size of a virtual joystick, and wherein adjusting the current display state according to the relationship between the first display position and the current position comprises:
the display transparency of the virtual joystick is inversely related to the distance; and/or the presence of a gas in the gas,
the display sizes are all positively correlated with the distance;
and updating the display transparency and the display size of the virtual rocker at intervals of a preset time period according to the change of the distance.
9. The method of claim 1, wherein obtaining the current position and current display state of the virtual joystick comprises:
identifying size information and pixel information of the graphical user interface;
determining the current position of the virtual rocker and the size of the virtual rocker according to the size information and a preset size proportion;
and determining the current display state of the virtual rocker according to the pixel information and a preset brightness ratio.
10. An in-game virtual joystick display control device, characterized in that a graphical user interface is provided through a terminal device, the graphical user interface comprises at least one virtual joystick, comprising:
the first acquisition module is used for acquiring a first display position of a virtual object in the game on the graphical user interface;
the second acquisition module is used for acquiring the current position and the current display state of the virtual rocker;
and the adjusting module is used for adjusting the current display state according to the relation between the first display position and the current position.
11. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the in-game virtual stick display control method according to any one of claims 1 to 9.
12. An electronic device, comprising:
a processor; and
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the in-game virtual joystick display control method of any one of claims 1 to 9.
CN202010131416.2A 2020-02-28 2020-02-28 Method and device for controlling display of virtual joystick in game and electronic equipment Active CN111346373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010131416.2A CN111346373B (en) 2020-02-28 2020-02-28 Method and device for controlling display of virtual joystick in game and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010131416.2A CN111346373B (en) 2020-02-28 2020-02-28 Method and device for controlling display of virtual joystick in game and electronic equipment

Publications (2)

Publication Number Publication Date
CN111346373A true CN111346373A (en) 2020-06-30
CN111346373B CN111346373B (en) 2023-04-07

Family

ID=71188691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010131416.2A Active CN111346373B (en) 2020-02-28 2020-02-28 Method and device for controlling display of virtual joystick in game and electronic equipment

Country Status (1)

Country Link
CN (1) CN111346373B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113244604A (en) * 2021-06-02 2021-08-13 网易(杭州)网络有限公司 Method and device for processing motion data in game
WO2023142767A1 (en) * 2022-01-27 2023-08-03 北京字跳网络技术有限公司 Method and apparatus for controlling virtual object, and readable medium and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170295A (en) * 2017-12-21 2018-06-15 网易(杭州)网络有限公司 Virtual camera condition control method, device, electronic equipment and storage medium
CN110180169A (en) * 2019-05-30 2019-08-30 网易(杭州)网络有限公司 Picture display process and device, storage medium, electronic equipment in game

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170295A (en) * 2017-12-21 2018-06-15 网易(杭州)网络有限公司 Virtual camera condition control method, device, electronic equipment and storage medium
CN110180169A (en) * 2019-05-30 2019-08-30 网易(杭州)网络有限公司 Picture display process and device, storage medium, electronic equipment in game

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113244604A (en) * 2021-06-02 2021-08-13 网易(杭州)网络有限公司 Method and device for processing motion data in game
WO2023142767A1 (en) * 2022-01-27 2023-08-03 北京字跳网络技术有限公司 Method and apparatus for controlling virtual object, and readable medium and electronic device

Also Published As

Publication number Publication date
CN111346373B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109240576B (en) Image processing method and device in game, electronic device and storage medium
CN107281753B (en) Scene sound effect reverberation control method and device, storage medium and electronic equipment
CN107656620B (en) Virtual object control method and device, electronic equipment and storage medium
CN109939433B (en) Operation control method and device of virtual card, storage medium and electronic equipment
CN110090441B (en) Game operation control method and device, storage medium and electronic equipment
CN111346373B (en) Method and device for controlling display of virtual joystick in game and electronic equipment
EP3714355B1 (en) Expanding physical motion gesture lexicon for an automated assistant
CN114972594B (en) Data processing method, device, equipment and medium for meta universe
CN111221456A (en) Interactive panel display method, device, equipment and storage medium thereof
KR20210088464A (en) Method and apparatus for processing voice interaction, electronic equipment, storage medium, and computer program product
US20220300301A1 (en) Method and apparatus for controlling interface focus on interface
US10675538B2 (en) Program, electronic device, system, and method for determining resource allocation for executing rendering while predicting player's intent
CN116266093A (en) Content fidelity adjustment based on user interaction
CN108815843B (en) Control method and device of virtual rocker
CN108877673B (en) Method and device for controlling driving current of display panel, electronic equipment and storage medium
EP4300947A1 (en) Systems, apparatus, articles of manufacture, and methods for eye gaze correction in camera image streams
CN110580648A (en) financial information processing method and device based on artificial intelligence
CN108499102B (en) Information interface display method and device, storage medium and electronic equipment
CN113391737A (en) Interface display control method and device, storage medium and electronic equipment
CN109045687B (en) Numerical value allocation method, device, storage medium and electronic equipment
CN113360064A (en) Method and device for searching local area of picture, medium and electronic equipment
US20160070438A1 (en) Interfacing Method for User Feedback
US20210334628A1 (en) Reinforcement learning techniques for selecting a software policy network and autonomously controlling a corresponding software client based on selected policy network
CN114116418A (en) Information processing method and device, computer storage medium and electronic equipment
CN111583376A (en) Method and device for eliminating black edge in illumination map, storage medium and electronic equipment

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