[go: up one dir, main page]

CN112965675B - Screen projection method of game interface, terminal and computer readable medium - Google Patents

Screen projection method of game interface, terminal and computer readable medium Download PDF

Info

Publication number
CN112965675B
CN112965675B CN202110074208.8A CN202110074208A CN112965675B CN 112965675 B CN112965675 B CN 112965675B CN 202110074208 A CN202110074208 A CN 202110074208A CN 112965675 B CN112965675 B CN 112965675B
Authority
CN
China
Prior art keywords
real
game interface
axis value
rotation angle
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110074208.8A
Other languages
Chinese (zh)
Other versions
CN112965675A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202110074208.8A priority Critical patent/CN112965675B/en
Publication of CN112965675A publication Critical patent/CN112965675A/en
Application granted granted Critical
Publication of CN112965675B publication Critical patent/CN112965675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a screen projection method of a game interface, a terminal and a computer readable medium, wherein the method comprises the following steps of acquiring the rotation angle of a mobile terminal in real time and a real-time game interface corresponding to each rotation angle; and splicing the acquired real-time game interfaces to generate a screen projection interface, and displaying the screen projection interface. According to the technical scheme, the rotation angle of the mobile terminal and the real-time game interfaces corresponding to each rotation angle are obtained in real time, the obtained real-time game interfaces are subjected to de-duplication splicing to generate the game interface with a larger visual field, and then the game interface with the larger visual field is subjected to screen projection display, so that the game interface with the larger visual field can be displayed on the screen projection equipment, and the user experience is effectively improved.

Description

Screen projection method of game interface, terminal and computer readable medium
Technical Field
The present invention relates to a screen projection method, and in particular, to a screen projection method, a terminal, and a computer readable medium for a game interface.
Background
In recent years, as a mobile game such as a glory of an owner will ever explode a global multiplayer online competitive game (Multiplayer Online Battle Arena, MOBA), such as a survival, hero alliance, migration from a personal computer end to a mobile client end, and simplifying related operations makes the game easier to get on hand, the hand-play market and the hand-play live market show a further prosperity and show a trend of explosive growth. The game experience requirements of the hand player on the mobile phone become more stringent.
On the other hand, along with the development of the technology of the gyroscope, the visual field can be adjusted in real time when the mobile phone is rotated, so that the game operation is simpler.
However, in the screen throwing process, the size of the game interface displayed by the screen throwing equipment is the same as that of the game interface displayed by the mobile terminal such as a mobile phone, and the user experience is not high.
Disclosure of Invention
The invention mainly aims to provide a screen projection method, a terminal and a computer readable medium of a game interface, aiming at displaying the game interface with a larger visual field on screen projection equipment.
In order to achieve the above purpose, the method for projecting the screen of the game interface provided by the invention comprises the following steps:
acquiring the rotation angle of the mobile terminal in real time and a real-time game interface corresponding to each rotation angle;
splicing the acquired real-time game interfaces to generate a screen throwing interface;
And displaying the screen projection interface.
Optionally, the step of acquiring the rotation angle of the mobile terminal in real time and the real-time game interface corresponding to each rotation angle includes:
acquiring the rotation angle of the gyroscope coordinate axis from a SensorManager manager in real time;
And acquiring a real-time game interface corresponding to each rotation angle from SurfaceFinger in real time.
Optionally, the step of stitching the acquired plurality of real-time game interfaces includes:
Comparing the acquired real-time game interfaces to determine a repeated part;
Removing the repeated content;
and splicing the plurality of real-time game interfaces with the repeated parts removed.
Optionally, before the step of splicing the acquired several real-time game interfaces, the method further includes:
Judging whether to stop acquiring the rotation angle of the mobile terminal and the real-time game interface;
if yes, splicing the acquired real-time game interfaces;
If not, continuing to acquire the rotation angle of the mobile terminal and the real-time game interface.
Optionally, the step of determining whether to stop acquiring the rotation angle of the mobile terminal, and the real-time game interface includes:
Acquiring the coordinate axis value variation of the gyroscope;
judging whether the coordinate axis value variation of the gyroscope meets a preset condition or not;
If yes, judging that the acquisition of the rotation angle of the mobile terminal and the real-time game interface is stopped;
if not, judging to continuously acquire the rotation angle of the mobile terminal and the real-time game interface.
Optionally, the step of determining whether the coordinate axis value variation of the gyroscope meets a preset condition includes:
When the Z-axis value variation of the gyroscope is not more than 0.7, the X-axis value variation is more than or equal to 1 and less than or equal to 3, and the Y-axis value variation is more than or equal to 1 and less than or equal to 2, judging that the coordinate axis value variation of the gyroscope meets a preset condition.
Optionally, the step of determining whether the coordinate axis value variation of the gyroscope meets a preset condition includes:
and when the Y-axis value variation of the gyroscope is not more than 0.7, the Z-axis value variation is not more than 0.7, and the X-axis value variation is more than or equal to 1 and less than or equal to 3, judging that the coordinate axis value variation of the gyroscope meets a preset condition.
Optionally, the step of determining whether the coordinate axis value variation of the gyroscope meets a preset condition includes:
And when the X-axis value variation of the gyroscope is not more than 0.7, the Z-axis value variation is not more than 0.7, the Y-axis value variation is more than or equal to 1 and less than or equal to 3, judging that the coordinate axis value variation of the gyroscope meets a preset condition.
In addition, the invention also provides a terminal, which comprises a memory, a processor and an implementation program of a screen projection method of a game interface, wherein the implementation program of the screen projection method of the game interface is stored in the memory and can run on the processor, and when being executed by the processor, the implementation program of the screen projection method of the game interface comprises the following steps:
acquiring the rotation angle of the mobile terminal in real time and a real-time game interface corresponding to each rotation angle;
splicing the acquired real-time game interfaces to generate a screen throwing interface;
And displaying the screen projection interface.
In addition, the invention also provides a computer readable medium, the computer readable medium stores a program for realizing the screen projection method of the game interface, and the program for realizing the screen projection method of the game interface realizes the following steps when being executed:
acquiring the rotation angle of the mobile terminal in real time and a real-time game interface corresponding to each rotation angle;
splicing the acquired real-time game interfaces to generate a screen throwing interface;
And displaying the screen projection interface.
According to the technical scheme, the rotation angle of the mobile terminal and the real-time game interfaces corresponding to each rotation angle are obtained in real time, the obtained real-time game interfaces are subjected to de-duplication splicing to generate the game interface with a larger visual field, and then the game interface with the larger visual field is subjected to screen projection display, so that the game interface with the larger visual field can be displayed on the screen projection equipment, and the user experience is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
Fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention;
FIG. 3 is a flowchart of an embodiment of a method for projecting a screen of a game interface according to the present invention;
FIG. 4 is a flowchart illustrating an embodiment of the step of stitching the acquired real-time game interfaces shown in FIG. 3;
FIG. 5 is a flowchart of another embodiment of a method for projecting a screen of a game interface according to the present invention;
FIG. 6 is a flowchart illustrating an embodiment of the steps for determining whether to stop acquiring the rotation angle of the mobile terminal and the real-time game interface shown in FIG. 5.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a Portable media player (Portable MEDIA PLAYER, PMP), a navigation device, a wearable device, a smart bracelet, a pedometer, and the like, as well as fixed terminals such as a digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
The radio frequency unit 101 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink information of a base station, processing the downlink information by the processor 110, and transmitting uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (GENERAL PACKET Radio Service), CDMA2000 (Code Division Multiple Access, code Division multiple Access 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. The accelerometer sensor can detect the acceleration in all directions (generally three axes), can detect the gravity and the direction when the accelerometer sensor is static, can be used for identifying the gesture of a mobile phone (such as transverse and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and knocking), and the like, and can be configured as other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors and the like, which are not repeated herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), etc., and a storage data area that may store data created according to the use of the cellular phone (such as audio data, a phonebook, etc.), etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units, and preferably the processor 110 may integrate an application processor that primarily processes operating systems, user interfaces, application programs, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility MANAGEMENT ENTITY ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (SERVING GATE WAY ) 2034, pgw (PDN GATE WAY, packet data network gateway) 2035, PCRF (Policy AND CHARGING Rules Function) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
Referring to fig. 3, fig. 3 is a flowchart of an embodiment of a screen projection method of a game interface according to the present invention.
In this embodiment, the screen projection method of the game interface includes the following steps:
Step S310, the rotation angle of the mobile terminal and the real-time game interface corresponding to each rotation angle are obtained in real time.
Step S320, the acquired real-time game interfaces are spliced to generate a screen projection interface.
Step S330, displaying the screen projection interface.
Existing mobile terminals are all built-in with gyroscopes for detecting the rotation angle of the mobile terminal. And the method is also used for adjusting the visual field of certain mobile games according to the rotation angle of the mobile terminal. Based on the method, the method provides a screen projection method of the game interface. The technical scheme of the embodiment is mainly applied to the screen projection display of the game interfaces of the mobile terminal, and the game interfaces corresponding to all angles of the mobile terminal are spliced to display the game interfaces with larger visual fields at the screen projection end. When a user performs game operation through a mobile terminal and performs screen projection on a game interface through screen projection equipment, the rotation angle of the mobile terminal and the real-time game interface corresponding to each rotation angle are obtained in real time. The specific way to obtain the rotation angle of the mobile terminal in real time and the real-time game interface corresponding to each rotation angle may be to obtain the rotation angle of the gyroscope coordinate axis from the SensorManager manager in real time and obtain the real-time game interface corresponding to each rotation angle from the SurfaceFinger in real time. And stopping acquiring the rotation angle of the mobile terminal and the real-time game interface corresponding to each rotation angle after the preset condition is met, and splicing the acquired real-time game interfaces. The specific splicing mode may be that a plurality of real-time game interfaces are arranged according to coordinate values according to coordinate axis values of the gyroscopes, then two adjacent real-time game interfaces are compared to remove repeated content of the two adjacent real-time game interfaces, and the two real-time game interfaces with the repeated content removed are spliced. Repeating the steps until the spliced part is complete, and the game interface with a larger visual field is formed. And finally, displaying the spliced game interface on the screen throwing equipment.
According to the technical scheme, the rotation angle of the mobile terminal and the real-time game interfaces corresponding to each rotation angle are obtained in real time, the obtained real-time game interfaces are subjected to de-duplication splicing to generate the game interface with a larger visual field, and then the game interface with the larger visual field is subjected to screen projection display, so that the game interface with the larger visual field can be displayed on the screen projection equipment, and the user experience is effectively improved.
Further, as shown in fig. 4, fig. 4 is a flowchart of an embodiment of the step of splicing the acquired plurality of real-time game interfaces shown in fig. 3. In this embodiment, the step of stitching the acquired plurality of real-time game interfaces includes:
and S321, comparing the acquired real-time game interfaces to determine a repeated part.
Step S322, removing the repeated content.
Step S323, stitching the several real-time game interfaces with the repeated parts removed.
Specifically, in this embodiment, the manner of stitching the acquired multiple real-time game interfaces may be that, according to coordinate axis values of the gyroscopes, the multiple real-time game interfaces are arranged according to coordinate values, then two adjacent real-time game interfaces are compared to each other, so as to remove repeated content of the two adjacent real-time game interfaces, and stitch the two real-time game interfaces with the repeated content removed. Repeating the steps until the spliced part is complete, and the game interface with a larger visual field is formed. And finally, displaying the spliced game interface on the screen throwing equipment. The description herein is only for the purpose of more clearly illustrating the present invention, but is not limited to the embodiments of the present invention, and other splicing manners are equally applicable to the present invention, and the technical effects of the present invention can be achieved as well, for example, comparing each real-time game interface, then removing the duplicate, and finally performing the splicing.
Further, as shown in fig. 5, fig. 5 is a flowchart of another embodiment of a screen projection method of the game interface of the present invention. In this embodiment, the steps of the screen projection method of the game interface include:
step S410, the rotation angle of the mobile terminal and the real-time game interface corresponding to each rotation angle are obtained in real time.
Step S420, determining whether to stop acquiring the rotation angle of the mobile terminal and the real-time game interface. If yes, step S430 is performed, and if no, step S410 is performed back.
And step S430, splicing the acquired real-time game interfaces to generate a screen projection interface.
Step S440, displaying the screen projection interface.
Specifically, in this embodiment, when the game interface of the mobile terminal is obtained for the first time, since there is no other game interface for stitching, the game interface obtained for the first time is directly displayed on the screen throwing device. When the game interface of the mobile terminal is acquired for the second time, the game interface acquired for the first time and the second time is subjected to de-duplication splicing, then the spliced game interface is displayed on the screen throwing equipment, and so on. When to stop the acquisition of the real-time game interface, a judgment condition needs to be added, for example, whether to stop the acquisition of the real-time game interface or not is judged through the change of the coordinate axis value of the gyroscope. The method comprises the following specific steps:
Referring to fig. 6, fig. 6 is a flowchart illustrating an embodiment of the step of determining whether to stop acquiring the rotation angle of the mobile terminal and the real-time game interface shown in fig. 5. In this embodiment, the step of determining whether to stop acquiring the rotation angle of the mobile terminal, and the real-time game interface includes:
step S421, the coordinate axis value variation of the gyroscope is obtained.
Step S422, judging whether the coordinate axis value variation of the gyroscope meets the preset condition, if yes, executing step S423, and if no, executing step S424.
Step S423, judging that the acquisition of the rotation angle of the mobile terminal and the real-time game interface is stopped;
step S424, determining to continue to acquire the rotation angle of the mobile terminal and the real-time game interface.
Specifically, the step of judging whether the coordinate axis value variation of the gyroscope meets the preset condition includes:
when the Z-axis value variation of the gyroscope is not more than 0.7, the X-axis value variation is more than or equal to 1 and less than or equal to 3, and the Y-axis value variation is more than or equal to 1 and less than or equal to 2, judging that the coordinate axis value variation of the gyroscope meets a preset condition. Otherwise, judging that the change of the coordinate axis value of the gyroscope does not meet the preset condition.
And when the Y-axis value variation of the gyroscope is not more than 0.7, the Z-axis value variation is not more than 0.7, and the X-axis value variation is more than or equal to 1 and less than or equal to 3, judging that the coordinate axis value variation of the gyroscope meets a preset condition. Otherwise, judging that the change of the coordinate axis value of the gyroscope does not meet the preset condition.
And when the X-axis value variation of the gyroscope is not more than 0.7, the Z-axis value variation is not more than 0.7, the Y-axis value variation is more than or equal to 1 and less than or equal to 3, judging that the coordinate axis value variation of the gyroscope meets a preset condition. Otherwise, judging that the change of the coordinate axis value of the gyroscope does not meet the preset condition.
That is, as long as any one of the above 3 judgment conditions is satisfied, it is judged that the coordinate axis value variation of the gyroscope satisfies a preset condition, otherwise, it is judged that the coordinate axis value variation of the gyroscope satisfies a preset condition.
The invention also provides a terminal, which comprises a memory, a processor and a program for realizing the screen projection method of the game interface, wherein the program is stored in the memory and can run on the processor, and when being executed by the processor, the program for realizing the screen projection method of the game interface realizes all the steps in the embodiment of the screen projection method of the game interface. The mobile terminal at least has all the advantages brought by the technical scheme of the method embodiment because the terminal can execute all the steps in any one of the embodiments, and the description is omitted herein.
The invention also provides a computer readable medium, the computer readable medium stores a program for implementing the screen projection method of the game interface, and when the program for implementing the screen projection method of the game interface is executed, all the steps in any one of the embodiments can be implemented. Since the computer readable medium may perform all the steps in any of the foregoing embodiments, the computer readable medium has at least all the advantages brought by the technical solutions of the foregoing method embodiments, which are not described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (8)

1.一种游戏界面的投屏方法,其特征在于,包括如下步骤:1. A method for projecting a game interface, comprising the following steps: 实时获取移动终端的旋转角度,以及对应每一所述旋转角度的实时游戏界面;Acquire the rotation angle of the mobile terminal in real time, and the real-time game interface corresponding to each rotation angle; 将获取到的数张所述实时游戏界面进行拼接,以生成投屏界面;The obtained real-time game interfaces are stitched together to generate a projection interface; 显示所述投屏界面;Displaying the screen projection interface; 所述实时获取移动终端的旋转角度,以及对应每一所述旋转角度的实时游戏界面的步骤包括:The step of obtaining the rotation angle of the mobile terminal in real time and the real-time game interface corresponding to each rotation angle includes: 实时从SensorManager管理器获取陀螺仪坐标轴的旋转角度;Get the rotation angle of the gyroscope coordinate axis from the SensorManager in real time; 实时从SurfaceFinger获取对应每一所述旋转角度的实时游戏界面;Obtaining a real-time game interface corresponding to each rotation angle from SurfaceFinger in real time; 所述将获取到的数个所述实时游戏界面进行拼接的步骤包括:The step of splicing the acquired multiple real-time game interfaces comprises: 将获取到的数张所述实时游戏界面进行对比,以确定重复部分;Comparing the obtained multiple real-time game interfaces to determine the repeated parts; 去掉所述重复部分;removing the repeated portion; 将去掉重复部分的数张所述实时游戏界面进行拼接。The real-time game interfaces with repeated parts removed are spliced together. 2.如权利要求1所述的游戏界面的投屏方法,其特征在于,在将获取到的数张所述实时游戏界面进行拼接的步骤之前,还包括:2. The method for projecting a game interface as claimed in claim 1, characterized in that before the step of splicing the acquired multiple real-time game interfaces, it further comprises: 判断是否停止获取所述移动终端的旋转角度,以及所述实时游戏界面;Determine whether to stop acquiring the rotation angle of the mobile terminal and the real-time game interface; 如果是,则将获取到的数张所述实时游戏界面进行拼接;If yes, then stitching together the obtained multiple real-time game interfaces; 如果否,则继续获取所述移动终端的旋转角度,以及所述实时游戏界面。If not, continue to obtain the rotation angle of the mobile terminal and the real-time game interface. 3.如权利要求2所述的游戏界面的投屏方法,其特征在于,所述判断是否停止获取所述移动终端的旋转角度,以及所述实时游戏界面的步骤包括:3. The method for projecting a game interface as claimed in claim 2, wherein the step of determining whether to stop acquiring the rotation angle of the mobile terminal and the step of real-time game interface comprises: 获取所述陀螺仪的坐标轴值变化量;Obtaining a change in the coordinate axis value of the gyroscope; 判断所述陀螺仪的坐标轴值变化量是否满足预设条件;Determining whether the change in the coordinate axis value of the gyroscope meets a preset condition; 如果是,则判定停止获取所述移动终端的旋转角度,以及所述实时游戏界面;If yes, it is determined to stop acquiring the rotation angle of the mobile terminal and the real-time game interface; 如果否,则判定继续获取所述移动终端的旋转角度,以及所述实时游戏界面。If not, it is determined to continue acquiring the rotation angle of the mobile terminal and the real-time game interface. 4.如权利要求3所述的游戏界面的投屏方法,其特征在于,所述判断所述陀螺仪的坐标轴值变化量是否满足预设条件的步骤包括:4. The method for projecting a game interface as claimed in claim 3, wherein the step of determining whether the change in the coordinate axis value of the gyroscope meets a preset condition comprises: 当所述陀螺仪的Z轴值变化量不大于0.7;X轴值变化量大于等于1,且小于等于3;Y轴值变化量大于等于1,且小于等于2时,判定所述陀螺仪的坐标轴值变化量满足预设条件。When the Z-axis value change of the gyroscope is not greater than 0.7; the X-axis value change is greater than or equal to 1 and less than or equal to 3; the Y-axis value change is greater than or equal to 1 and less than or equal to 2, it is determined that the coordinate axis value change of the gyroscope meets the preset conditions. 5.如权利要求3所述的游戏界面的投屏方法,其特征在于,所述判断所述陀螺仪的坐标轴值变化量是否满足预设条件的步骤包括:5. The method for projecting a game interface as claimed in claim 3, wherein the step of determining whether the change in the coordinate axis value of the gyroscope meets a preset condition comprises: 当所述陀螺仪的Y轴值变化量不大于0.7;Z轴值变化量不大于0.7;X轴值变化量大于等于1,且小于等于3时,判定所述陀螺仪的坐标轴值变化量满足预设条件。When the Y-axis value change of the gyroscope is not greater than 0.7; the Z-axis value change is not greater than 0.7; the X-axis value change is greater than or equal to 1 and less than or equal to 3, it is determined that the coordinate axis value change of the gyroscope meets the preset conditions. 6.如权利要求3所述的游戏界面的投屏方法,其特征在于,所述判断所述陀螺仪的坐标轴值变化量是否满足预设条件的步骤包括:6. The method for projecting a game interface as claimed in claim 3, wherein the step of determining whether the change in the coordinate axis value of the gyroscope meets a preset condition comprises: 当所述陀螺仪的X轴值变化量不大于0.7;Z轴值变化量不大于0.7;Y轴值变化量大于等于1,且小于等于3时,判定所述陀螺仪的坐标轴值变化量满足预设条件。When the change in the X-axis value of the gyroscope is not greater than 0.7; the change in the Z-axis value is not greater than 0.7; and the change in the Y-axis value is greater than or equal to 1 and less than or equal to 3, it is determined that the change in the coordinate axis value of the gyroscope meets the preset condition. 7.一种终端,其特征在于,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的游戏界面的投屏方法的实现程序,所述游戏界面的投屏方法的实现程序被所述处理器执行时实现如权利要求1至6中任一项所述的游戏界面的投屏方法的步骤。7. A terminal, characterized in that it comprises a memory, a processor, and an implementation program of a method for projecting a game interface stored in the memory and runnable on the processor, wherein when the implementation program of the method for projecting a game interface is executed by the processor, the steps of the method for projecting a game interface as described in any one of claims 1 to 6 are implemented. 8.一种计算机可读介质,其特征在于,所述计算机可读介质上存储有游戏界面的投屏方法的实现程序,所述游戏界面的投屏方法的实现程序被执行时实现如权利要求1至6中任一项所述的游戏界面的投屏方法的步骤。8. A computer-readable medium, characterized in that an implementation program of a method for projecting a game interface is stored on the computer-readable medium, and when the implementation program of the method for projecting a game interface is executed, the steps of the method for projecting a game interface as described in any one of claims 1 to 6 are implemented.
CN202110074208.8A 2021-01-20 2021-01-20 Screen projection method of game interface, terminal and computer readable medium Active CN112965675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110074208.8A CN112965675B (en) 2021-01-20 2021-01-20 Screen projection method of game interface, terminal and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110074208.8A CN112965675B (en) 2021-01-20 2021-01-20 Screen projection method of game interface, terminal and computer readable medium

Publications (2)

Publication Number Publication Date
CN112965675A CN112965675A (en) 2021-06-15
CN112965675B true CN112965675B (en) 2025-01-17

Family

ID=76271591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110074208.8A Active CN112965675B (en) 2021-01-20 2021-01-20 Screen projection method of game interface, terminal and computer readable medium

Country Status (1)

Country Link
CN (1) CN112965675B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379221A (en) * 2012-04-23 2013-10-30 Lg电子株式会社 Mobile terminal and controling method thereof

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080018396A (en) * 2006-08-24 2008-02-28 한국문화콘텐츠진흥원 A computer-readable recording medium recording a mobile application and a PC application for displaying display information of a mobile communication terminal on an external display device.
WO2012020864A1 (en) * 2010-08-13 2012-02-16 엘지전자 주식회사 Mobile terminal, display device, and method for controlling same
WO2012046890A1 (en) * 2010-10-06 2012-04-12 엘지전자 주식회사 Mobile terminal, display device, and method for controlling same
KR101224245B1 (en) * 2010-11-05 2013-01-21 한국과학기술원 Method and system for controlling display
US9479698B2 (en) * 2012-12-17 2016-10-25 Egos Ventures Inc. Vibration-induced rotation of electronic devices
KR20140116240A (en) * 2013-02-25 2014-10-02 삼성전자주식회사 Server apparatus, game control method 0f server apparatus, mobile apparatus, control method of mobile apparatus, display apparatus and game image display method of display apparatus
CN103514581B (en) * 2013-10-23 2017-02-15 小米科技有限责任公司 Screen picture capturing method, device and terminal equipment
CN105472100A (en) * 2014-08-15 2016-04-06 中兴通讯股份有限公司 Desktop sharing method and terminal
CN108446085A (en) * 2018-03-14 2018-08-24 维沃移动通信有限公司 A kind of throwing screen display methods and mobile terminal
CN108421254B (en) * 2018-03-23 2021-12-14 网易(杭州)网络有限公司 Method and device for controlling rearview mirror in game
CN108769600B (en) * 2018-06-12 2020-07-03 杭州叙简科技股份有限公司 Desktop sharing system based on video stream frame rate adjustment and desktop sharing method thereof
CN109550235B (en) * 2018-11-30 2024-02-20 努比亚技术有限公司 Game projection method, game projection device and computer readable storage medium
CN111061445A (en) * 2019-04-26 2020-04-24 华为技术有限公司 Screen projection method and computing device
CN110109636B (en) * 2019-04-28 2022-04-05 华为技术有限公司 Screen projection method, electronic device and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379221A (en) * 2012-04-23 2013-10-30 Lg电子株式会社 Mobile terminal and controling method thereof

Also Published As

Publication number Publication date
CN112965675A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN110075521B (en) Gun-control assisting method, device, mobile terminal and storage medium for shooting games
CN108159688B (en) Game interface sharing method, mobile terminal and computer-readable storage medium
CN110187925B (en) Desktop pre-starting control method, device and computer readable storage medium
CN108198150B (en) Method for eliminating image dead pixel, terminal and storage medium
CN110175479B (en) Terminal screen off control method, device, mobile terminal and readable storage medium
CN108536383B (en) Game control method, game control equipment and computer readable storage medium
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN109032741A (en) Screen luminance of terminal adjusting method, mobile terminal and storage medium
CN109999494B (en) Game control method, device and computer readable storage medium
CN112822538A (en) Screen projection display method, screen projection device, terminal and storage medium
CN112612372A (en) Touch event regulation and control method and device and computer readable storage medium
CN108200332A (en) A kind of pattern splicing method, mobile terminal and computer readable storage medium
CN110052024B (en) Game vibration adjusting method, adjusting device, mobile terminal and storage medium
CN113867586B (en) Icon display method, intelligent terminal and storage medium
CN114049480A (en) Game scene identification method and device and computer readable storage medium
CN112346824B (en) Screen projection application control method and device and computer readable storage medium
CN107239208B (en) Method, apparatus, and computer-readable storage medium for processing screenshot
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN108897451B (en) Main and auxiliary display screen identification method, mobile terminal and computer readable storage medium
CN112965675B (en) Screen projection method of game interface, terminal and computer readable medium
CN112015508B (en) Screen-throwing interaction control method, equipment and computer-readable storage medium
CN112312194B (en) Screen recording data processing method, device and computer readable storage medium
CN110602708B (en) Pseudo base station identification method, terminal and computer readable storage medium
CN112675540A (en) Method, terminal and storage medium for improving game experience
CN110262707B (en) Application program operation recording method and device and computer readable storage medium

Legal Events

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