WO2022184041A1 - 画面显示方法、装置、终端设备及存储介质 - Google Patents

画面显示方法、装置、终端设备及存储介质 Download PDF

Info

Publication number
WO2022184041A1
WO2022184041A1 PCT/CN2022/078548 CN2022078548W WO2022184041A1 WO 2022184041 A1 WO2022184041 A1 WO 2022184041A1 CN 2022078548 W CN2022078548 W CN 2022078548W WO 2022184041 A1 WO2022184041 A1 WO 2022184041A1
Authority
WO
WIPO (PCT)
Prior art keywords
game
cursor
target
user interface
animation
Prior art date
Application number
PCT/CN2022/078548
Other languages
English (en)
French (fr)
Inventor
温源
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to JP2023527432A priority Critical patent/JP2023548708A/ja
Publication of WO2022184041A1 publication Critical patent/WO2022184041A1/zh
Priority to US17/974,753 priority patent/US20230046042A1/en

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
    • A63F13/426Processing 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 involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
    • 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/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • A63F13/355Performing operations on behalf of clients with restricted processing capabilities, e.g. servers transform changing game scene into an encoded video stream for transmitting to a mobile phone or a thin client
    • 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/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • 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/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • 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/55Controlling game characters or game objects based on the game progress
    • 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/60Methods for processing data by generating or executing the game program
    • A63F2300/6045Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands

Definitions

  • the present application relates to the field of computer technology, and in particular, to screen display.
  • the appearance of various game applications greatly enriches the leisure life of users. Due to the emergence of a wide variety of game applications, if game users need to experience different game applications, they need to download the clients of different game applications to the local, and generally speaking, the client corresponding to the game application will occupy more Therefore, the game application can be run in the cloud server as a cloud game, and the terminal device does not need to download the game client when running the cloud game, but accesses the cloud through the cloud game client. For cloud games in the server, the terminal device only renders and displays the game screen.
  • embodiments of the present application propose a screen display method, apparatus, terminal device, and storage medium, which can improve the smoothness of the terminal device when drawing an operation animation based on a game user's control operation.
  • an embodiment of the present application provides a screen display method, including:
  • the game screen of the target game is rendered in the user interface according to the game data delivered by the target container, and the target game is a cloud game running in the target container;
  • the operation animation is superimposed on the game screen, and the game screen on which the operation animation is superimposed is displayed in the user interface.
  • an embodiment of the present application provides a screen display device, including:
  • a rendering unit configured to render the game screen of the target game in the user interface according to the game data delivered by the target container during the running process of the target game, where the target game is a cloud game running in the target container;
  • a drawing unit configured to draw an operation animation corresponding to the control operation on the user interface according to the control operation
  • an overlay unit for overlaying the operation animation on the game screen
  • a display unit configured to display the game screen on which the operation animation is superimposed in the user interface.
  • an embodiment of the present application provides a terminal device, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storing
  • a computer program that supports the terminal device to perform the above method, the computer program includes program instructions, and the processor is configured to call the program instructions, and perform the following steps:
  • the game screen of the target game is rendered in the user interface according to the game data issued by the target container, and the target game is a cloud game running in the target container;
  • the operation animation is superimposed on the game screen, and the game screen on which the operation animation is superimposed is displayed in the user interface.
  • an embodiment of the present application provides a computer-readable storage medium, where program instructions are stored in the computer-readable storage medium, and when the program instructions are executed by a processor, are used to execute the above-described aspects. screen display method.
  • an embodiment of the present application provides a computer program product including instructions, which, when run on a computer, causes the computer to execute the screen display method described in the above aspect.
  • the terminal device may request game data of the target game from the target container of the cloud server during the running process of the target game, and render the game screen of the target game on the user interface based on the game data.
  • the terminal device can obtain the control operation for the target game, draw the operation animation corresponding to the control operation on the user interface according to the obtained control operation, and superimpose the operation animation on the game screen, because the terminal device will The drawing of the operation animation for the control operation is performed locally, which can improve the smoothness of the terminal device to draw the operation animation based on the control operation of the game user, so that the game user can achieve the game experience of performing the game operation locally on the terminal device, and improve the user experience. satisfaction.
  • FIG. 1a is a schematic diagram of a screen display system provided by an embodiment of the present application.
  • FIG. 1b is a schematic diagram of the device capabilities of a terminal device and a cloud server provided by an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of a screen display method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an interface for displaying a game screen and an operation animation provided by an embodiment of the present application
  • FIG. 4 is a schematic flowchart of a screen display method provided by an embodiment of the present application.
  • 5a is a schematic diagram of a display operation cursor provided by an embodiment of the present application.
  • FIG. 5b is a schematic diagram showing a movement trajectory of an operation cursor provided by an embodiment of the present application.
  • 5c is a schematic diagram of an operation animation displaying an operation cursor provided by an embodiment of the present application.
  • 5d is a schematic flowchart of a terminal device running a target game according to an embodiment of the present application
  • 5e is a schematic flowchart of a cloud server running a target game according to an embodiment of the present application
  • FIG. 6 is a schematic block diagram of a screen display device provided by an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a terminal device provided by an embodiment of the present application.
  • An embodiment of the present application proposes a method for displaying a game screen of a cloud game, so that a terminal device can obtain game data of the target game from a cloud server during the process of running a cloud game (such as a target game), and based on the The game data is rendered and the game screen is displayed on the user interface.
  • the terminal device retains the operation animation for the control operation of the target game in the local terminal device for drawing, so that the terminal device can superimpose the locally drawn operation animation. It is displayed on the game screen of the target game, and the game screen superimposed with the operation animation is displayed on the user interface of the terminal device.
  • the terminal device draws the operation animation locally, so that the effect of the game user controlling the cloud game (ie the target game) through the terminal device is the same as the effect of controlling the local game.
  • the game effect of the terminal device operating the cloud game is indistinguishable from the operation effect of running the local game in the terminal device, so that the game user can achieve the operation experience of local game operation in the process of operating the cloud game through the terminal device.
  • the cloud server is used to support the operation of multiple cloud games (Cloud gaming).
  • the cloud game (ie, the target game) mentioned in the embodiments of the present application is any cloud game supported and run by the cloud server.
  • cloud gaming is an online gaming technology based on cloud computing technology, also known as gaming on demand.
  • Cloud gaming technology enables light-end devices with relatively limited graphics processing and data computing capabilities (such as data computing less capable terminal devices, etc.) can run high-quality games.
  • the game does not run on the terminal device that displays the game screen, but runs on the cloud server (or cloud server), and the game screen displayed on the terminal device is rendered by the cloud server as the game scene.
  • the terminal device obtains the video/audio stream of the game scene from the cloud server through the network, so as to perform screen rendering and display based on the acquired video/audio stream, that is to say, the cloud game is running on the cloud server.
  • the cloud server distributes game resources to the terminal device, so that the terminal device can render and display the game screen of the cloud game on the user interface. It can be understood that the terminal device corresponding to the game user does not need to have powerful graphics operations and data. Processing capability, it is enough to have basic streaming media playback and rendering capabilities.
  • the picture display method can be applied to the picture display system as shown in FIG. 1a, the picture display system includes a terminal device 10, and a cloud server 11, and the cloud server 11 includes a plurality of system containers (which may be referred to as abbreviations).
  • Container the cloud server 11 shown in FIG. 1a may include system container 1 to system container N, where N is an integer greater than 1, and any system container included in the cloud server 11 can run one or more games.
  • the terminal device 10 can send a running request for the target game (any cloud game) to the cloud server 11.
  • the cloud server 11 can be based on the operation parameters included in the operation request (such as the game ID corresponding to the target game) in the target game.
  • the target game is started in the container, and the game data of the target game is sent to the terminal device 10, then correspondingly, the terminal device 10 can render the game screen in the user interface based on the game data received from the cloud server 11. , so that the rendered game screen can be displayed in the user interface.
  • the terminal device 10 may render and display the game screen on the user interface based on the acquired game data, wherein the terminal device renders the game screen in the user interface. After displaying the game screen, the terminal device 10 can detect the control operation for the target game, and based on the acquired control operation, draw the operation animation corresponding to the control operation on the user interface, so as to realize the local comparison of the terminal device 10.
  • the terminal device 10 draws an operation animation corresponding to the control operation on the user interface according to the obtained control operation for the target game
  • the drawn operation animation can be superimposed on the game screen of the user interface, whereby, the game screen superimposed with the operation animation can be displayed in the user interface.
  • the game user can operate the terminal device 10.
  • the experience of local game operation can be achieved, and game users' satisfaction with cloud games can be improved.
  • the terminal device 10 if the target game running in the terminal device 10 is operated and controlled by operating the cursor, then the terminal device will display the icon of the operation cursor on the user interface, that is, the terminal device 10 will display the icon of the operation cursor on the user interface.
  • the operation animation performed by the control operation cursor is kept locally for drawing, and game data is requested from the cloud server 11 to render the game screen of the cloud game, wherein the terminal device 10 and the cloud server 11 are in the cloud server 11.
  • the functional modules and corresponding basic capabilities of the cloud game runtime are shown in Figure 1b.
  • the functional modules included in the terminal device 10 include: a module for managing operation cursors, a module for hiding/displaying an operation cursor, a module for drawing operation animations, and a module for requesting response data for control operations from the cloud server.
  • the capability is the network transmission capability and the input capability of receiving game data;
  • the functional modules included in the cloud server 11 include a module for starting the running of the target game, a module for monitoring the state of the operation cursor, a module for obtaining the icon of the operation cursor, and
  • the basic capabilities of the cloud server 11 include network transmission capabilities, the ability to receive request input, and the storage capability of game data.
  • the cloud server 11 can monitor the state of the operation cursor and It is determined whether the icon of the operation cursor needs to be drawn in the terminal device 10, and if necessary, a rendering code is sent to the terminal device 10 to draw the icon of the operation cursor in the terminal device.
  • the above-mentioned cloud server 11 may be a node in the blockchain distributed network, which can realize sending the relevant data in the cloud server 11 to the blockchain network for storage.
  • FIG. 2 is a schematic flowchart of a screen display method proposed by an embodiment of the present application. As shown in FIG. 2 , the method may include:
  • the target game is a cloud game running in a target container, where the target container is a system container in a cloud server that supports the running of the target game.
  • the target game is a cloud game
  • the terminal device runs the target game, it may not download the game client of the target game locally, but run the target game by requesting the target container in the cloud server.
  • the terminal device runs the cloud game client.
  • the cloud game client is different from the target game client.
  • the target game client only supports the running of one game (ie, the target game), while the cloud game client can request the cloud server to run multiple different cloud games.
  • the user interface after the terminal device starts the cloud game client, the user interface will display the identifiers of the game client corresponding to one or more cloud games. If the game user needs to start and run the target game, the user interface The identifier of the game client of the target game displayed, and after the terminal device detects that the game user has selected the identifier of the game client of the target game, it can send the operation of the target game to the target container of the cloud server that supports the operation of the target game. request, after the target container obtains the running request for the target game, it can deliver the game data of the target game to the terminal device, and the terminal device can render the game screen based on the game data delivered by the target container, Thus, the target game can be run in the terminal device.
  • the terminal device can start and run different cloud games through the cloud game client, the terminal device can only download one cloud game client without downloading the game clients corresponding to different games, so that the terminal device can start and run the cloud game.
  • the terminal device in the process of running the cloud game, the terminal device only renders the game screen based on the game data for the cloud game obtained from the cloud server, and does not perform other processing on the game data, which can reduce the terminal device's ability to use the cloud game.
  • the requirements for the data processing capability of the terminal device can expand the applicable population of cloud games and improve the promotion of cloud games.
  • a terminal device when a terminal device runs a cloud game (such as a target game), the terminal device will continuously request game data from the cloud server, and accordingly, the cloud server will send the game data requested by the terminal device in the form of a data stream.
  • the form is continuously sent to the terminal device, and the terminal device can smoothly display the game screen of the target game in the user interface based on the acquired game data.
  • the terminal device runs the target game based on the game data obtained from the cloud server, it can obtain the control operation of the target game by the game user, and obtain the response data of the control operation from the cloud server, so as to realize the game control of the target game.
  • the terminal device in order to improve the game user's operating experience, after acquiring the game user's control operation for the target game, the terminal device can draw the operation animation of the control operation locally, that is, turn to S202, and in After the terminal device draws the operation animation of the control operation locally, it can be superimposed and displayed with the game screen of the target game to avoid the display delay caused by network congestion and other reasons, so as to allow game users to perform game operations locally. experience.
  • S202 Acquire a control operation for the target game, and draw an operation animation corresponding to the control operation on the user interface according to the control operation.
  • the terminal device can be a personal computer, then the target game running on the personal computer is a terminal game.
  • the running platform of the target game is also different, wherein , the operating system of the personal computer includes a PC (an operating system based on Microsoft) platform, or the operating system of the personal computer can also be a MAC (an operating system different from that of the PC platform) platform, that is, in The client game running on the personal computer can run on the PC platform or on the MAC platform.
  • the game user can control the target game by operating a cursor, wherein the operating cursor is the user of the external input device of the personal computer on the personal computer.
  • the mapping on the interface the game user can control the operation cursor on the user interface of the personal computer by controlling the external input device, that is, when the target game is a terminal game running on the personal computer, the
  • the control operation for the target game acquired by the terminal device is the acquired control operation of the game user on the external input device connected to the terminal device.
  • the control operation may be a movement operation for the operation cursor input to the external input device,
  • the external input device may be a gamepad or a mouse.
  • the terminal device may also be a mobile terminal.
  • the target game running in the mobile terminal is a mobile game. Since the terminal screen of the mobile terminal is a touch screen, the game user can Touch the screen without using an external input device to input data to the terminal device and control the operation of the game. Therefore, when the target game is a mobile game running in the mobile terminal, the game user can realize the game based on the touch of the terminal screen.
  • Control of the target game that is to say, when the target game is a mobile game running in the mobile terminal, the control operation for the target game obtained by the terminal device is the touch operation performed by the game user. The selection operation or sliding operation performed by the game user on the terminal screen.
  • the terminal device In order to improve the smoothness of the game user's control of the target game, after the terminal device obtains the control operation for the target game, it can draw the operation animation locally on the terminal device, and at the same time request the cloud server for the response of the control operation instruction Data, specifically, if the control operation for the target game acquired by the terminal device is a movement operation for the operation cursor, then it can be understood that the operation animation drawn by the terminal device on the user interface is the movement trajectory of the movement operation; or, If the control operation for the target game acquired by the terminal device is a selection operation performed by using an operation cursor, or a selection operation performed based on touch on the terminal screen, then the operation animation of the control operation drawn by the terminal device on the user interface is It is the operation animation related to the selection operation, such as when a game setting component is selected, the animation of the selected game setting component, or the click animation generated when the blank position of the game is clicked, etc.
  • the drawn operation animation can be superimposed on the game screen for display, that is, S203 is executed.
  • the drawing of the operation animation is kept locally, which can improve the smoothness of the operation control of the target game and improve the game user's control experience of the cloud game.
  • the terminal device displays the interface of the operation animation of the target game, and floats on the user interface of the game screen of the target game, that is, the terminal device is used to display the operation animation.
  • the cursor interface is the upper layer interface in the display direction of the user interface that displays the game screen, as shown in Figure 3, then it can be understood that the terminal device retains the operation animation of the control operation for the target game for drawing locally, That is, the operation animation of the control operation is drawn in the cursor interface, and the game screen about the target game displayed in the user interface is still displayed by requesting game resources from the cloud server, and rendering and displaying based on the requested game resources.
  • the terminal device may request game data of the target game from the target container of the cloud server during the running process of the target game, and render the game screen of the target game on the user interface based on the game data.
  • the terminal device can obtain the control operation for the target game, draw the operation animation corresponding to the control operation on the user interface according to the obtained control operation, and superimpose the operation animation on the game screen, because the terminal device will The drawing of the operation animation for the control operation is performed locally, which can improve the smoothness of the terminal device to draw the operation animation based on the control operation of the game user, so that the game user can achieve the game experience of performing the game operation locally on the terminal device, and improve the user experience. satisfaction.
  • FIG. 4 is a schematic flowchart of a screen display method provided by an embodiment of the present application. As shown in FIG. 4 , the method may include:
  • S401 during the running process of the target game, render a game screen of the target game in the user interface according to the game data delivered by the target container, where the target game is a cloud game running in the target container.
  • the terminal device After the terminal device acquires the game data of the target game from the target container, it can render the game screen in the user interface based on the game data, and after the terminal device renders the game screen of the target game on the user interface, it can be further determined
  • the control mode of the target game wherein, when the target game is a terminal game running on a personal computer, the control mode of the target game is the first control mode that uses the operation cursor to control the target game, or if the target game is controlled by the cursor. If the target game is a mobile game running in the mobile terminal, the control method of the target game is the second control method of performing touch control on the target game.
  • the terminal device may first obtain the screen type of the terminal device used to display the user interface, wherein, if the screen type is a touch screen type, the terminal device determines the control mode for the target game.
  • the control mode is the second control mode of touch control, and if the screen type is a non-touch screen type, it is determined that the control mode of the target game is the first control mode of controlling the target game by operating the cursor.
  • the terminal device may render the operation cursor of the target game on the user interface according to the game data delivered by the target container, wherein the terminal device renders the operation cursor of the target game on the user interface.
  • the system cursor displayed on the user interface can be obtained first, where the system cursor is displayed on the cursor interface when the game data is not obtained from the target container (that is, on the user interface in the display direction).
  • the terminal device can parse the acquired game data after acquiring the distributed game data from the target container, so as to acquire the icon to be rendered, and the icon is used to identify the operation of the target game cursor, and then the terminal device can hide the system cursor, and render the icon for operating the cursor in the cursor interface.
  • a schematic diagram of the interface displaying the system cursor on the user interface is, for example, It can be the schematic diagram marked by 501 in Figure 5a, wherein the system cursor displayed in the interface can be, for example, the cursor marked by 50 in Figure 5a, and after the terminal device obtains the game data from the target container, the terminal The game screen rendered by the device based on the game data may be as shown in the interface marked by 502 in Figure 5a.
  • the terminal device After the terminal device obtains the game data, it can also obtain the icon of the operation cursor of the target game based on the analysis of the game data, And after the terminal device displays the game screen, the operation cursor of the target game is rendered and displayed, wherein the shape of the operation cursor of the target game displayed by the terminal device may be the same as the system cursor, or the operation cursor of the target game displayed by the terminal device may be the same. It may also be different from the game of the system cursor. In one embodiment, the operation cursor displayed by the terminal device, which is different from the system cursor, may be as shown by the cursor marked by 51 in FIG. 5a. In one embodiment, when displaying the operation cursor of the target game, the terminal device can replace the originally displayed system cursor for display.
  • the terminal device can display the original system cursor after canceling the display of the original system cursor
  • the operation cursor is displayed at the position, or the terminal device can also display the operation cursor of the target game at any random place after canceling the originally displayed system cursor.
  • the obtained operation animation of the control operation for the target game may be drawn on the user interface, that is, S402 is executed instead.
  • S402 Acquire a control operation for the target game, and draw an operation animation corresponding to the control operation on the user interface according to the control operation.
  • the target game is a terminal game running on a personal computer
  • an operation cursor of the target game is displayed on the user interface
  • the control operation for the target game includes a movement operation of the operation cursor
  • the terminal device draws the operation animation corresponding to the control operation on the user interface (that is, in the cursor interface, the cursor interface is the interface on the upper layer of the user interface in the display direction) according to the control operation
  • the initial display position of the operation cursor on the cursor interface can be obtained first.
  • the terminal device can obtain the position change information of the operation cursor on the cursor interface according to the moving operation of the operation cursor, so that the initial display position can be obtained according to the operation cursor.
  • the schematic diagram of the terminal device drawing the movement trajectory of the operation cursor may be the schematic diagram shown in FIG. 5b .
  • the control operation for the target game acquired by the terminal device may also include the touch operation of the game user on the user interface. Then, when the terminal device draws the operation animation corresponding to the control operation on the user interface according to the control operation, it can first obtain the control operation.
  • the control operation acquired by the terminal device includes a selection operation performed, wherein the selection operation may be performed by using an operation cursor, or the selection operation may also be performed according to touch on the user interface,
  • the control operation acquired by the terminal device is a selection operation
  • the terminal device may first determine the effect position of the selection operation on the user interface, and determine the effect The position corresponds to the mapping position of the game screen, and the terminal device can acquire the trigger animation associated with the mapping position, and draw the trigger animation at the action position of the selection operation on the user interface.
  • the terminal device when acquiring the trigger animation associated with the mapping position, can first determine whether the game setting component of the target game is displayed at the mapping position, and the rendering code of the trigger animation of each game setting component of the target game is stored.
  • the rendering code for triggering the animation associated with the game setting component is obtained from the local storage, and the animation indicated by the rendering code is used as the trigger animation associated with the mapping position.
  • the game setting component includes a game exit component or a game start component, or an operation setting component and the like.
  • the terminal device can acquire the preset rendering rules, so that the animation indicated by the preset rendering rules can be As a trigger animation associated with the mapping position; that is, if the terminal device determines that the action position of the selection operation is a blank position where no game components are displayed, the terminal device can display the preset rendering rule indication after the game user performs the selection operation
  • the trigger animation indicated by the terminal device according to the preset rendering rule may be, for example, the animation displayed in the interface marked by 503 in FIG. 5c.
  • S403 Send a data acquisition request to the target container, where the data acquisition request is used to request to acquire response data corresponding to the control operation.
  • S404 Acquire the delivered response data from the target container, and update the game screen displayed in the user interface according to the instructions of the response data.
  • S403 and S404 are optional steps.
  • the terminal device may further determine the response data corresponding to the control operation, and send a data acquisition request for the response data to the target container, so as to obtain the data from the target container
  • the terminal device After acquiring the response data, update the game screen displayed in the user interface according to the instructions of the response data.
  • the terminal device will superimpose the operation animation on the target game. displayed on the game screen.
  • the operation animation based on the control operation of the target game is retained in the local terminal device for drawing, and only the response data request of the game is made to the target container, which ensures the smoothness of the game user in the cloud game operation process.
  • the target game is a terminal game running in a personal computer
  • the game screen displayed in the terminal device is any frame of the game screen in the game
  • the game screen displayed in the terminal device includes The character image of the game user corresponding to the game character.
  • the corresponding game character moves, that is, after the terminal device acquires the control operation, it will locally draw the operation animation corresponding to the control operation (for example, the operation animation marked by 503 in Figure 5c), and the operation animation It is superimposed on the current game screen for display.
  • the terminal device also needs to send a response data acquisition request to the target container to acquire the game data that has moved the game character, so that the game screen can be rendered based on the game data. To display the game screen in which the game character has moved in the current user interface.
  • a schematic diagram of the running process of the target game by the terminal device may be as shown in Figure 5d, and the flow of the steps executed by the cloud server corresponds to This can be shown in Figure 5e.
  • the terminal device is running the target game, and the interaction process between the terminal device and the cloud server can perform the following steps:
  • the game user starts the target game in the cloud game client of the terminal device, wherein the cloud game client in the terminal device and the cloud server establish a communication connection (or network connection), when the game user requests to start the target game,
  • the terminal device can send the game identity (identify, id) of the target game to be started to the cloud server, and the cloud server can start the target based on the id after receiving the id of the target game sent by the terminal device. game.
  • the cloud server starts the target game in the terminal device, it can send the game data of the target game to the terminal device. After acquiring the game data, the terminal device can play the game based on the game data.
  • the rendering of the screen so as to realize the startup of the target game, after the terminal device starts the target game, the state of the operation cursor can be obtained. If it is determined that the operation cursor needs to be drawn, the corresponding operation cursor can be obtained from the acquired game data. icon, and render and display the operation cursor based on the game data.
  • the cloud server can determine whether the operation cursor needs to be rendered on the user interface by monitoring the state of the operation cursor, wherein the cloud server can determine that the user interface does not need to be rendered when the terminal device is a touch screen type screen. Render the operation cursor, or the cloud server may not render the operation cursor on the user interface when monitoring that the terminal device is displaying a special cloud game screen; and if the cloud server is on a non-touch screen on the terminal device When it is determined that the rendering of the operation cursor needs to be performed on the user interface.
  • the cloud server may include the icon of the operation cursor, rendering code, etc. in the game when delivering game data to the terminal device.
  • the data is also sent to the terminal device, so that the terminal device can render the operation cursor on the user interface based on the rendering code. If the server determines that the operation cursor is not required to be rendered on the user interface, the cloud server can When the terminal device sends game data, the icon of the operation cursor and the corresponding rendering code are not delivered to the terminal device.
  • the terminal device can render and display the operation cursor on the user interface, wherein the terminal device is rendering and displaying the game data.
  • the system icon originally displayed on the user interface of the terminal device can be replaced, wherein the shape of the operation cursor displayed on the user interface can be the same icon shape as the system icon, or it can be the same as the system icon. Cursor shapes with different shapes, in this embodiment of the present application, the icon shape of the operation cursor is not limited.
  • the terminal device can draw the operation animation of the control operation performed based on the operation cursor locally, and send the operation data of the control operation performed based on the operation cursor to the cloud server, so as to obtain the data from the cloud server.
  • the server obtains the response data corresponding to the operation data, and the terminal device can update the game screen displayed in the user interface based on the response data obtained from the cloud server.
  • the cloud server will continue to send the game data of the target game to the terminal device, so as to continuously update the game screen in the terminal device.
  • the terminal device can draw the operation animation of the control operation on the user interface, and superimpose the operation animation on the game screen displayed on the user interface for display, so that the game user can achieve the local game in the terminal device. operating experience.
  • the terminal device can render the game screen of the target game in the user interface according to the game data delivered by the target container in the process of running the target game, so as to further obtain the control operation for the target game,
  • the terminal device can determine the response data corresponding to the control operation to send the response data to the target container.
  • a data acquisition request for data, and after acquiring the response data from the target container, the game screen displayed in the user interface is continuously updated based on the response data.
  • the terminal device keeps the operation animation of the control operation locally for drawing, and at the same time superimposes the operation animation on the game screen rendered by the game data requested from the cloud server, which can reduce the data processing pressure of the cloud server and improve the data of the cloud server.
  • the processing efficiency can be improved, and the smoothness of the game screen display when the terminal device is running the target game can be improved.
  • an embodiment of the present application further proposes a screen display apparatus, where the screen display apparatus may be a computer program (including program code) running in the above-mentioned terminal device.
  • the picture display device can be used to execute the picture display method described in FIG. 2 and FIG. 4 , please refer to FIG. 6 , the picture display device includes: a rendering unit 601 , an obtaining unit 602 , a drawing unit 603 , a superimposing unit 604 and a display unit 605 .
  • the rendering unit 601 is configured to render the game screen of the target game in the user interface according to the game data delivered by the target container during the running process of the target game, where the target game is a cloud game running in the target container ;
  • an obtaining unit 602 configured to obtain a control operation for the target game
  • a drawing unit 603, configured to draw an operation animation corresponding to the control operation on the user interface according to the control operation;
  • the display unit 605 is configured to display the game screen superimposed with the operation animation in the user interface.
  • the user interface displays an operation cursor of the target game
  • the cursor interface displaying the operation cursor is an interface on the upper layer of the user interface in a display direction
  • the control operation includes The moving operation of the operation cursor
  • the drawing unit 603 is specifically used for:
  • a movement track corresponding to the movement operation is drawn on the cursor interface.
  • control operation includes a touch operation for the user interface;
  • drawing unit 603 is specifically configured to:
  • the associated operation animation is drawn on the user interface.
  • control operation includes a selection operation performed, and the selection operation is performed according to an operating cursor, or is performed according to a touch on the user interface;
  • drawing unit 603 is specifically configured to :
  • a trigger animation associated with the mapping position is acquired, and the trigger animation is drawn at the action position on the user interface.
  • the drawing unit 603 is specifically configured to:
  • the game setting component If the game setting component is displayed in the mapping position, acquire the rendering code for triggering animation associated with the game setting component from the local storage, and use the animation indicated by the rendering code as the mapping position The associated trigger animation;
  • a preset rendering rule is acquired, and the animation indicated by the preset rendering rule is used as a trigger animation associated with the mapping position.
  • the apparatus further includes: a determining unit 606 .
  • the determining unit 606 is configured to determine a control mode for the target game, where the control mode includes a first control mode for controlling the target game by operating a cursor, or touching the target game through the user interface.
  • the rendering unit 601 is further configured to render the target game on the user interface according to the game data delivered by the target container if it is determined that the control mode for the target game is the first control mode. Action cursor.
  • the determining unit 606 is specifically configured to:
  • the screen type is a touch screen type, determining that the control mode for the target game is the second control mode
  • the control mode for the target game is the first control mode.
  • the interface displaying the operation cursor is the cursor interface of the user interface; the rendering unit 601 is specifically configured to:
  • the icon to be rendered is obtained by parsing the game data delivered by the target container, and the icon is used to identify the operation cursor of the target game;
  • the system cursor is hidden, and the icon of the operation cursor is rendered on the cursor interface of the user interface.
  • the apparatus further includes an update unit 607 .
  • the determining unit 606 is further configured to send a data acquisition request to the target container, where the data acquisition request is used to request to acquire response data corresponding to the control operation;
  • the updating unit 607 is configured to acquire the delivered response data from the target container, and update the game screen displayed in the user interface according to the instructions of the response data.
  • the rendering unit 601 may render the game screen of the target game on the user interface based on the game data by requesting the game data of the target game from the target container of the cloud server , in addition, the obtaining unit 602 can obtain the control operation for the target game, so that the drawing unit 603 can draw the operation animation corresponding to the control operation on the user interface according to the obtained control operation, then the display unit 605 can draw the operation animation corresponding to the control operation on the user interface.
  • the animation is superimposed and displayed on the game screen. Since the drawing of the operation animation for the control operation is reserved for the local execution, it can improve the smoothness of the drawing operation animation for the control operation of the game user, so that the game user can achieve the game operation of the game operation locally. experience and improve user satisfaction.
  • the terminal device in this embodiment may include: one or more processors 701 ; one or more input devices 702 , one or more output devices 703 , and a memory 704 .
  • the above-mentioned processor 701 , input device 702 , output device 703 and memory 704 are connected through a bus 705 .
  • the memory 704 is used for storing a computer program, the computer program includes program instructions, and the processor 701 is used for executing the program instructions stored in the memory 704 .
  • the memory 704 may include volatile memory (volatile memory) such as random-access memory (RAM); the memory 704 may also include non-volatile memory (non-volatile memory) such as flash memory (flash memory), solid-state drive (solid-state drive, SSD), etc.; the memory 704 may also include a combination of the above-mentioned types of memory.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • flash memory flash memory
  • solid-state drive solid-state drive
  • SSD solid-state drive
  • the processor 701 may be a central processing unit (CPU).
  • the processor 701 may further include a hardware chip.
  • the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or the like.
  • the PLD can be a field-programmable gate array (FPGA), a general-purpose array logic (generic array logic, GAL), or the like.
  • the processor 701 may also be a combination of the above structures.
  • the memory 704 is used to store a computer program, and the computer program includes program instructions, and the processor 701 is used to execute the program instructions stored in the memory 704 to implement the above-mentioned corresponding methods in FIG. 2 and FIG. 4 .
  • the processor 701 is configured to invoke the program instructions for executing:
  • the game screen of the target game is rendered in the user interface according to the game data delivered by the target container, and the target game is a cloud game running in the target container;
  • the operation animation is superimposed on the game screen, and the game screen on which the operation animation is superimposed is displayed in the user interface.
  • Embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method embodiment shown in FIG. 2 or FIG. 4 .
  • the computer-readable storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), and the like.
  • an embodiment of the present application further provides a storage medium, where the storage medium is used to store a computer program, and the computer program is used to execute the method provided by the foregoing embodiment.
  • the embodiments of the present application also provide a computer program product including instructions, which, when executed on a computer, cause the computer to execute the methods provided by the above embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开了一种画面显示方法、装置、终端设备及存储介质,其中方法包括:在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染所述目标游戏的游戏画面,所述目标游戏是在所述目标容器中运行的云游戏;获取针对所述目标游戏的控制操作,并根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画;将所述操作动画叠加到所述游戏画面上,并在所述用户界面中显示叠加了所述操作动画的游戏画面,可提升终端设备在基于游戏用户的控制操作绘制操作动画时的流畅性。

Description

画面显示方法、装置、终端设备及存储介质
本申请要求于2021年03月04日提交中国专利局、申请号为202110242486.X、申请名称为“画面显示方法、装置、终端设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及画面显示。
背景技术
随着计算机技术的不断深入发展,为了丰富用户的生产和生活,越来越多的应用程序应运而生,如各种游戏应用程序的出现极大地丰富了用户的业余生活。由于当前种类繁多的游戏应用程序的出现,游戏用户如果需要体验不同的游戏应用,则需要将不同游戏应用的客户端下载到本地,而一般来说,游戏应用对应的客户端将占用终端设备较多的内存空间,从而影响终端设备的数据运行,所以,可将游戏应用作为云游戏运行在云服务器中,终端设备在运行云游戏时,不用下载游戏客户端,而通过云游戏客户端访问云服务器中的云游戏,终端设备仅做游戏画面的渲染显示。
发明内容
有鉴于此,本申请实施例提出了一种画面显示方法、装置、终端设备及存储介质,可提升终端设备在基于游戏用户的控制操作绘制操作动画时的流畅性。
一方面,本申请实施例提供了一种画面显示方法,包括:
在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染所述目标游戏的游戏画面,所述目标游戏是在所述目标容器中运行的云游戏;
获取针对所述目标游戏的控制操作,并根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画;
将所述操作动画叠加到所述游戏画面上,并在所述用户界面中显示叠加了所述操作动画的游戏画面。
再一方面,本申请实施例提供了一种画面显示装置,包括:
渲染单元,用于在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染所述目标游戏的游戏画面,所述目标游戏是在所述目标容器中运行的云游戏;
获取单元,用于获取针对所述目标游戏的控制操作;
绘制单元,用于根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画;
叠加单元,用于将所述操作动画叠加到所述游戏画面上;
显示单元,用于在所述用户界面中显示叠加了所述操作动画的游戏画面。
再一方面,本申请实施例提供了一种终端设备,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持终端设备执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如下步骤:
在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染所述目标 游戏的游戏画面,所述目标游戏是在所述目标容器中运行的云游戏;
获取针对所述目标游戏的控制操作,并根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画;
将所述操作动画叠加到所述游戏画面上,并在所述用户界面中显示叠加了所述操作动画的游戏画面。
再一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序指令,所述程序指令被处理器执行时,用于执行如以上方面所述的画面显示方法。
又一方面,本申请实施例提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得所述计算机执行以上方面所述的画面显示方法。
在本申请实施例中,终端设备可在目标游戏的运行过程中,向云服务器的目标容器请求该目标游戏的游戏数据,并基于该游戏数据在用户界面上渲染该目标游戏的游戏画面,此外,该终端设备可获取针对该目标游戏的控制操作,并根据获取到的控制操作在用户界面上绘制该控制操作对应的操作动画,并将该操作动画叠加显示在游戏画面上,由于终端设备将针对控制操作的操作动画的绘制保留在本地进行执行,可提升终端设备在基于游戏用户的控制操作绘制操作动画的流畅性,使得游戏用户达到在终端设备的本地进行游戏操作的游戏体验,提升用户满意度。
附图说明
图1a是本申请实施例提供的一种画面显示系统的示意图;
图1b是本申请实施例提供的一种终端设备和云服务器的设备能力的示意图;
图2是本申请实施例提供的一种画面显示方法的示意流程图;
图3是本申请实施例提供的一种显示游戏画面和操作动画的界面示意图;
图4是本申请实施例提供的一种画面显示方法的示意流程图;
图5a是本申请实施例提供的一种显示操作光标的示意图;
图5b是本申请实施例提供的一种显示操作光标的移动轨迹的示意图;
图5c是本申请实施例提供的一种显示操作光标的操作动画的示意图;
图5d是本申请实施例提供的一种终端设备运行目标游戏的流程示意图;
图5e是本申请实施例提供的一种云服务器运行目标游戏的流程示意图;
图6是本申请实施例提供的一种画面显示装置的示意性框图;
图7是本申请实施例提供的一种终端设备的示意性框图。
具体实施方式
本申请实施例提出了一种对云游戏的游戏画面进行显示的方法,使得终端设备在运行云游戏(如目标游戏)的过程中,可从云服务器获取该目标游戏的游戏数据,并基于该游戏数据渲染得到游戏画面显示在用户界面中,同时,该终端设备将针对该目标游戏的控制操作的操作动画保留在终端设备的本地进行绘制,从而使得该终端设备可将本地绘制的操作动画叠加到目标游戏的游戏画面上进行显示,并在该终端设备的用户界面显示叠加了该操作动画的游戏画面。那么可以理解的是,终端设备通过在本地进行操作动画的绘制,使 得游戏用户通过终端设备对云游戏(即目标游戏)进行控制的效果和控制本地游戏的效果无异,也就使得游戏用户通过终端设备操作云游戏的游戏效果和在终端设备中运行本地游戏的操作效果是无差别的,从而能使游戏用户在通过终端设备操作云游戏的过程中达到在本地进行游戏操作的操作体验,实现对游戏用户操作云游戏的满意度的提升。云服务器用于支撑多个云游戏(Cloud gaming)的运行,本申请实施例所提及的云游戏(即目标游戏)为云服务器支撑运行的任意一个云游戏。
其中,云游戏是一种以云计算技术为基础的在线游戏技术,又可称为游戏点播(gaming on demand),云游戏技术使得图形处理与数据运算能力相对有限的轻端设备(如数据运算能力较弱的终端设备等)能运行高品质游戏。在云游戏场景下,游戏并不运行在进行游戏画面显示的终端设备上,而是在云端服务器(或云服务器)中运行,而终端设备中显示的游戏画面是由云端服务器将游戏场景渲染为视频/音频流后,终端设备通过网络从该云端服务器获取游戏场景的视频/音频流,从而基于获取到的视频/音频流进行画面渲染显示的,也就是说,云游戏是运行在云端服务器的游戏,该云端服务器通过向终端设备下发游戏资源,使得该终端设备可在用户界面上渲染显示云游戏的游戏画面,也就可以理解,游戏用户对应的终端设备无需拥有强大的图形运算与数据处理能力,拥有基本的流媒体播放渲染能力即可。
在一个实施例中,该画面显示方法可应用在如图1a所示的画面显示系统中,该画面显示系统包括终端设备10,以及云服务器11,该云服务器11包括多个系统容器(可简称为容器),如图1a所示的云服务器11可包括系统容器1~系统容器N,其中,N为大于1的整数,该云服务器11包括的任意一个系统容器可运行一个或多个游戏。其中,终端设备10可向云服务器11发送针对目标游戏(任一云游戏)的运行请求,如果该目标游戏是由云服务器11中的目标容器支持运行的,若假设该目标容器是如图1a中的系统容器1,那么,云服务器11在接收终端设备10发送的运行请求后,该云服务器11则可基于该运行请求中包括的运行参数(如该目标游戏对应的游戏身份标识)在目标容器中启动该目标游戏,并向终端设备10发送该目标游戏的游戏数据,那么相应地,该终端设备10则可基于从云服务器11接收到的游戏数据,在用户界面中进行游戏画面的渲染,从而可在该用户界面中显示渲染得到的游戏画面。
在一个实施例中,终端设备10在从云服务器11获取到下发的游戏数据后,则可基于获取到的游戏数据在用户界面渲染显示该游戏画面,其中,在该终端设备在用户界面渲染显示该游戏画面后,该终端设备10可检测针对该目标游戏的控制操作,并基于获取到的控制操作,在用户界面绘制该控制操作对应的操作动画,从而实现在该终端设备10的本地对目标游戏的控制操作对应的操作动画的绘制,可以理解的是,基于将目标游戏的控制操作的操作动画保留在本地进行绘制,可不再向云服务器11请求绘制该控制操作的操作动画,也就是说,通过将操作动画保留在终端设备10的本地进行绘制,可避免向云服务器请求绘制操作动画时的网络时延问题所造成的显示操作动画延迟的问题,也就使得游戏用户在终端设备10中对目标用户的控制效果的显示和本地无差别,从而可提升游戏用户的游戏操作体验。在一个实施例中,在终端设备10根据获取到的针对目标游戏的控制操作,在用户界面 上绘制该控制操作对应的操作动画后,可将绘制的操作动画叠加到该用户界面的游戏画面,从而可在该用户界面中显示叠加了操作动画的游戏画面,基于将本地绘制的操作动画和从云服务器获取的游戏数据渲染得到的游戏画面的叠加显示,可使得游戏用户在终端设备10中操作云游戏时,达到在本地进行游戏操作的体验,提升游戏用户对云游戏的操作满意度。
在一个实施例中,如果终端设备10中运行的目标游戏是通过操作光标进行操作控制的,那么,该终端设备将在用户界面上显示该操作光标的图标,也就是说,该终端设备10在运行目标游戏的过程中,将控制操作光标执行的操作动画保留在本地进行绘制,并向云服务器11请求游戏数据以进行云游戏的游戏画面的渲染,其中,该终端设备10和云服务器11在进行云游戏运行时的功能模块以及对应的基础能力可如图1b所示。该终端设备10包括的功能模块包括:操作光标管理的模块,隐藏/显示操作光标的模块,绘制操作动画的模块,以及向云服务器请求控制操作的响应数据的模块,而该终端设备10的基础能力为网络传输能力,以及接收游戏数据的输入能力;此外,该云服务器11包括的功能模块有启动目标游戏的运行的模块,监听操作光标的状态的模块,获取操作光标的图标的模块,以及响应控制操作的模块,该云服务器11的基础能力则包括网络传输能力,接收请求输入的能力,以及游戏数据的存储能力,在一个实施例中,云服务器11通过对操作光标的状态监听,能确定是否需要在终端设备10中进行操作光标的图标的绘制,并在需要时,向终端设备10发送渲染代码以便在终端设备中进行操作光标的图标的绘制。另外,上述云服务器11可以为区块链分布式网络中的一个节点,可实现将云服务器11中的相关数据发送到区块链网络中进行存储。
请参见图2,是本申请实施例提出的一种画面显示方法的示意流程图,如图2所示,该方法可包括:
S201,在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染目标游戏的游戏画面。
在一个实施例中,该目标游戏是在目标容器中运行的云游戏,其中,该目标容器是云服务器中用于支撑目标游戏运行的系统容器,可以理解的是,由于该目标游戏为云游戏,终端设备在运行目标游戏时,可不将该目标游戏的游戏客户端下载到本地,而是通过请求云服务器中的目标容器运行该目标游戏,具体地,终端设备运行有云游戏客户端,该云游戏客户端和目标游戏客户端不同,目标游戏客户端仅支持一个游戏(即目标游戏)的运行,而云游戏客户端可支持向云服务器请求多个不同的云游戏的运行。
在一个实施例中,终端设备在启动该云游戏客户端后,用户界面将显示一个或多个云游戏对应的游戏客户端的标识,如果游戏用户需要启动并运行目标游戏,则可选中在用户界面显示的目标游戏的游戏客户端的标识,而在终端设备检测到游戏用户选中了目标游戏的游戏客户端的标识后,则可向用于支撑该目标游戏运行的云服务器的目标容器发送目标游戏的运行请求,该目标容器获取到针对该目标游戏的运行请求后,则可将该目标游戏的游戏数据下发到终端设备中,终端设备可基于目标容器下发的游戏数据,进行游戏画面的渲染,从而实现在该终端设备中运行该目标游戏。
由于终端设备可通过云游戏客户端启动运行不同的云游戏,使得终端设备可仅下载一 个云游戏客户端,而无需下载不同游戏对应的游戏客户端,就可实现在终端设备中启动并运行云游戏,而且,终端设备在运行云游戏的过程中,仅基于从云服务器获取到的针对云游戏的游戏数据进行游戏画面的渲染,而不对游戏数据进行其他处理,可降低终端设备在云游戏的运行过程中,对终端设备的数据处理能力的要求,从而可扩大云游戏的适用人群,提升对云游戏的推广性。在一个实施例中,终端设备在运行云游戏(如目标游戏)时,该终端设备会向云服务器不断请求游戏数据,相应的,该云服务器会将终端设备所请求的游戏数据以数据流的形式不断发送给终端设备,该终端设备基于获取到的游戏数据,则可在用户界面中流畅地显示该目标游戏的游戏画面。
在终端设备基于从云服务器中获取的游戏数据运行该目标游戏时,可获取游戏用户对该目标游戏的控制操作,并向云服务器获取该控制操作的响应数据,以实现对目标游戏的游戏操控,在一个实施例中,为了提升游戏用户的操作体验,终端设备在获取到游戏用户针对目标游戏的控制操作后,可在本地对该控制操作的操作动画进行绘制,即转而执行S202,在终端设备在本地绘制了该控制操作的操作动画后,则可与该目标游戏的游戏画面进行叠加显示,避免因为网络拥塞等原因导致的显示延时,从而给使游戏用户达到在本地进行游戏操作的体验。
S202,获取针对目标游戏的控制操作,并根据控制操作在用户界面上绘制控制操作对应的操作动画。
在一个实施例中,该终端设备可以个人计算机,那么运行在个人计算机中的目标游戏为端游,具体地,基于个人计算机中操作系统的不同,可以认为该目标游戏的运行平台也不同,其中,个人计算机的操作系统包括PC(一种基于微软的操作系统)平台,或者,该个人计算机的操作系统也可以是MAC(一种和PC平台的操作系统不同的)平台,也就是说,在个人计算机中运行的端游可以基于PC平台运行,也可以基于MAC平台运行。进一步可以理解的是,在该目标游戏是在个人计算机中运行的端游时,游戏用户可通过操作光标对目标游戏进行控制,其中,该操作光标是个人计算机的外接输入设备在个人计算机的用户界面上的映射,游戏用户通过控制该外接输入设备即可实现对该个人计算机的用户界面上的操作光标进行控制,也就是说,在该目标游戏是运行在个人计算机中的端游时,该终端设备获取的针对目标游戏的控制操作即是获取的游戏用户对与该终端设备相连的外接输入设备的控制操作,该控制操作例如可以是对该外接输入设备输入的针对操作光标的移动操作,以及采用该操作光标对游戏画面执行的选择操作等,该外接输入设备可以是游戏手柄或者鼠标等。
在另一个实施例中,该终端设备也可以是移动终端,那么可以理解,运行在移动终端中的目标游戏为手游,由于移动终端的终端屏幕为触控屏幕,其中,游戏用户可基于该触控屏幕,而不借助外接输入设备向终端设备进行数据的输入并控制游戏的运行,所以,在目标游戏是运行在移动终端中的手游时,游戏用户可基于对终端屏幕的触控实现对目标游戏的控制,也就是说,在目标游戏是运行在移动终端中的手游时,终端设备获取的针对目标游戏的控制操作是游戏用户执行的触控操作,该触控操作例如可以是游戏用户在终端屏幕中执行的选择操作或者滑动操作等。
为了提升游戏用户对目标游戏的控制流畅度,终端设备在获取到针对目标游戏的控制操作后,可在该终端设备的本地进行操作动画的绘制,并同时向云服务器请求该控制操作指示的响应数据,具体地,如果终端设备获取的针对目标游戏的控制操作是针对操作光标的移动操作,那么可以理解,该终端设备在用户界面上绘制的操作动画则是该移动操作的移动轨迹;或者,如果该终端设备获取到的针对目标游戏的控制操作是采用操作光标执行的选择操作,或基于对终端屏幕的触控执行的选择操作,那么终端设备在用户界面上绘制的控制操作的操作动画则是与该选择操作相关的操作动画,如选中某个游戏设置组件时,被选中的游戏设置组件的动画,或者,点击游戏空白位置时产生的点击动画等等。在一个实施例中,终端设备将获取到的针对目标游戏的控制操作的操作动画保留在终端设备的本地进行绘制后,可将绘制的操作动画叠加到游戏画面上进行显示,即转而执行S203。基于终端设备将操作动画的绘制保留在本地进行,可提高对目标游戏执行操作控制的流畅性,提升游戏用户对云游戏的操控体验。
S203,将操作动画叠加到游戏画面上,并在用户界面中显示叠加了操作动画的游戏画面。
在一个实施例中,终端设备在运行目标游戏的过程中,显示该目标游戏的操作动画的界面,悬浮显示了目标游戏的游戏画面的用户界面上,即该终端设备用于显示该操作动画的光标界面是显示了游戏画面的用户界面在显示方向上的上一层界面,如图3所示,那么可以理解的是,终端设备将针对目标游戏的控制操作的操作动画保留在本地进行绘制,即是在该光标界面中绘制该控制操作的操作动画,而在用户界面中显示的关于目标游戏的游戏画面则依旧是通过向云服务器请求游戏资源,并基于请求的游戏资源进行渲染显示的,使得云服务器仅将控制操作请求的响应数据(即游戏资源)发送到终端设备,那么在终端设备和云服务器之间的通信链路的延迟较低时,可使游戏用户达到在本地进行云游戏操作的操作体验,而且,通过将操作动画保留在本地进行绘制,可避免帧率和网络延时造成的将操作动画延迟显示的问题,提升了对操作动画进行显示的及时性,从而可提升游戏用户的操作流畅性。
在本申请实施例中,终端设备可在目标游戏的运行过程中,向云服务器的目标容器请求该目标游戏的游戏数据,并基于该游戏数据在用户界面上渲染该目标游戏的游戏画面,此外,该终端设备可获取针对该目标游戏的控制操作,并根据获取到的控制操作在用户界面上绘制该控制操作对应的操作动画,并将该操作动画叠加显示在游戏画面上,由于终端设备将针对控制操作的操作动画的绘制保留在本地进行执行,可提升终端设备在基于游戏用户的控制操作绘制操作动画的流畅性,使得游戏用户达到在终端设备的本地进行游戏操作的游戏体验,提升用户满意度。
请参见图4,是本申请实施例提供的一种画面显示方法的示意流程图,如图4所示,该方法可包括:
S401,在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染目标游戏的游戏画面,目标游戏是在目标容器中运行的云游戏。
在终端设备从目标容器获取到目标游戏的游戏数据后,则可基于该游戏数据在用户界 面中进行游戏画面的渲染,在终端设备在用户界面渲染了目标游戏的游戏画面后,则可进一步确定对该目标游戏的控制方式,其中,在该目标游戏为在个人计算机中运行的端游时,对目标游戏的控制方式为采用操作光标对目标游戏进行控制的第一控制方式,或者,如果该目标游戏为在移动终端中运行的手游,则对该目标游戏的控制方式为对目标游戏进行触控控制的第二控制方式。
在一个实施例中,终端设备在确定对目标游戏的控制方式时,可先获取用于显示用户界面的终端设备的屏幕类型,其中,如果该屏幕类型为触控屏类型,则确定对目标游戏的控制方式为触控控制的第二控制方式,而如果该屏幕类型为非触控屏类型,则确定对目标游戏的控制方式为采用操作光标对目标游戏进行控制的第一控制方式。其中,如果终端设备确定对目标游戏的控制方式为第一控制方式,则该终端设备可根据目标容器下发的游戏数据在用户界面渲染目标游戏的操作光标,其中,该终端设备在用户界面渲染目标游戏的操作光标时,可先获取用户界面上显示的系统光标,其中,该系统光标是未从目标容器获取游戏数据时显示在光标界面上的(即在该用户界面在显示方向上的上一层界面),进一步地,该终端设备可在从目标容器获取到下发的游戏数据后,对获取到的游戏数据进行解析,以获取待渲染的图标,该图标用于标识目标游戏的操作光标,进而该终端设备可隐藏系统光标,并在光标界面中渲染操作光标的图标。
在一个实施例中,如果终端设备采用第一控制方式对目标游戏进行控制,如图5a所示,在该终端设备从目标容器中获取游戏数据之前,在用户界面上显示系统光标的界面示意图例如可以是如图5a中由501标记的示意图,其中,显示在界面中的系统光标则例如可以是如图5a中50标记的光标,而在该终端设备从目标容器中获取到游戏数据后,终端设备基于游戏数据渲染的游戏画面则可以是如图5a中由502标记的界面所示,在终端设备获取得到游戏数据后,还可基于对游戏数据的解析,得到目标游戏的操作光标的图标,并在终端设备显示该游戏画面后,渲染显示该目标游戏的操作光标,其中,终端设备显示的目标游戏的操作光标的形状可以和系统光标相同,或者,该终端设备显示的目标游戏的操作光标也可和系统光标的游戏不同,在一个实施例中,该终端设备显示的和系统光标不同的操作光标可以是如图5a中由51标记的光标所示。在一个实施例中,终端设备在显示目标游戏的操作光标时,可替换原先显示的系统光标进行显示,在具体实现中,终端设备可在取消原先系统光标的显示后,在原先系统光标的显示位置处显示该操作光标,或者该终端设备也可在取消原先显示的系统光标后,将该目标游戏的操作光标显示在随机的任一处。
在终端设备显示了目标游戏的游戏画面后,则可在用户界面上绘制获取到的针对目标游戏的控制操作的操作动画,即转而执行S402。
S402,获取针对目标游戏的控制操作,并根据控制操作在用户界面上绘制控制操作对应的操作动画。
在一个实施例中,如果目标游戏为运行在个人计算机中的端游,那么在用户界面上显示有目标游戏的操作光标,且针对该目标游戏的控制操作则包括对该操作光标的移动操作,进而可以理解的是,终端设备在根据该控制操作在用户界面上(即光标界面中,光标界面为该用户界面在显示方向上的上一层界面)绘制该控制操作对应的操作动画时,则可先获 取移动操作光标时,操作光标在光标界面的初始显示位置,进一步地,该终端设备可根据对操作光标的移动操作,获取操作光标在光标界面的位置变化信息,从而可根据初始显示位置和位置变化信息,在光标界面绘制移动操作对应的移动轨迹,其中,该终端设备绘制该操作光标的移动轨迹的示意图可以是如图5b所示的示意图。此外,终端设备获取到的针对目标游戏的控制操作还可包括游戏用户针对用户界面的触控操作,那么终端设备在根据控制操作在用户界面上绘制控制操作对应的操作动画时,则可先获取在用户界面执行触控操作时的操作手势,并获取操作手势的关联操作动画,进一步的,该终端设备则可在用户界面上绘制与该操作手势关联的关联操作动画,其中,该操作手势例如是缩放手势,那么该终端设备基于该操作手势执行的关联操作动画则是针对游戏画面的缩放动画。
在一个实施例中,终端设备获取到的控制操作包括执行的选择操作,其中,该选择操作可以是采用操作光标执行的,或者,该选择操作也可以是根据对用户界面的触控执行的,在该终端设备获取到的控制操作为选择操作时,该终端设备在根据控制操作在用户界面上绘制控制操作对应的操作动画时,可先确定选择操作在用户界面上的作用位置,并确定作用位置对应于游戏画面的映射位置,进而该终端设备可获取与映射位置关联的触发动画,并在用户界面上的选择操作的作用位置处绘制触发动画。在具体实现中,终端设备在获取与映射位置关联的触发动画时,可先确定映射位置处是否显示有目标游戏的游戏设置组件,目标游戏的每个游戏设置组件的触发动画的渲染代码被存储在本地存储器中,其中,如果该映射位置显示有游戏设置组件,则从本地存储器中获取与游戏设置组件关联的触发动画的渲染代码,并将渲染代码指示的动画作为与映射位置关联的触发动画,在一个实施例中,该游戏设置组件包括游戏退出组件或者游戏开始组件,或者操作设置组件等等。
在另一实施例中,如果终端设备确定选择操作的作用位置对应于游戏画面的映射位置未显示游戏设置组件,则该终端设备可获取预设渲染规则,从而可将预设渲染规则指示的动画作为与映射位置关联的触发动画;也就是说,如果终端设备确定选择操作的作用位置为未显示游戏组件的空白位置,则该终端设备可在游戏用户执行选择操作后,显示预设渲染规则指示的触发动画,终端设备按照预设渲染规则指示的触发动画例如可以是如图5c中由503标记的界面中显示的动画。
S403,向所述目标容器发送数据获取请求,所述数据获取请求用于请求获取所述控制操作对应的响应数据。
S404,从目标容器获取下发的响应数据,并按照响应数据的指示,更新在用户界面中显示的游戏画面。
S405,将操作动画叠加到游戏画面上,并在用户界面中显示叠加了操作动画的游戏画面。
其中,S403和S404为可选步骤。在S403~S405中,终端设备在获取到针对目标游戏的控制操作后,还可确定该控制操作对应的响应数据,并向目标容器发送针对该响应数据的数据获取请求,以在从该目标容器获取到该响应数据后,按照该响应数据的指示,更新在用户界面中显示的游戏画面,此外,该终端设备在确定出针对目标游戏的控制操作的操作动画后,会将该操作动画叠加到游戏画面中进行显示。可以理解的是,基于将目标游戏的 控制操作的操作动画保留在终端设备的本地进行绘制,而仅向目标容器进行游戏的响应数据的请求,保证了游戏用户在云游戏操作过程中的流畅度,在具体实现中,如果该目标游戏是运行在个人计算机中的端游,显示在终端设备中的游戏画面是处于游戏中的任一帧游戏画面,如果显示在该终端设备的游戏画面中包括游戏用户对应游戏角色的角色图像,当终端设备获取到的针对目标游戏控制操作为选择了当前的游戏画面中任一空白位置的操作时,终端设备将基于游戏用户执行的控制操作控制该游戏用户对应的游戏角色移动,即该终端设备在获取到该控制操作后,将在本地绘制该控制操作对应的操作动画(例如可以是如图5c中由503标记的操作动画),并将该操作动画叠加到当前的游戏画面中进行显示,同时,该终端设备还需向目标容器发送响应数据的获取请求,以获取移动了该游戏角色的游戏数据,从而可基于该游戏数据进行游戏画面的渲染,以在当前用户界面显示游戏角色移动了的游戏画面。
在一个实施例中,在终端设备为个人计算机,游戏用户通过操作光标控制目标游戏时,该终端设备进行目标游戏的运行过程的示意图可以如图5d所示,而云服务器执行的步骤的流程对应可如图5e所示。具体地,该终端设备在运行目标游戏,该终端设备与云服务器之间的交互过程可执行如下步骤:
①游戏用户在终端设备的云游戏客户端中启动目标游戏,其中,该终端设备中的云游戏客户端和云服务器建立有通信连接(或网络连接),该游戏用户在请求启动目标游戏时,终端设备可将需要启动的目标游戏的游戏身份(identify,id)标识发送到云服务器,该云服务器在接收到终端设备发送的启动目标游戏的id标识后,则可基于该id标识启动该目标游戏。在一个实施例中,云服务器在终端设备中启动该目标游戏时,可将该目标游戏的游戏数据发送到该终端设备,该终端设备在获取到该游戏数据后,则可基于游戏数据进行游戏画面的渲染,从而实现对目标游戏的启动,在终端设备在启动目标游戏后,则可获取操作光标的状态,如果确定需要绘制操作光标,则可从获取的游戏数据中获取该操作光标对应的图标,并基于该游戏数据对操作光标进行渲染显示。
其中,云服务器可通过监听操作光标的状态,确定是否需要在用户界面上进行操作光标的渲染,其中,该云服务器可在终端设备为触控屏类型的屏幕时,确定不需要在用户界面上进行操作光标的渲染,或者,该云服务器也可在监听到终端设备正在显示特殊云游戏画面时,不在用户界面上进行操作光标的渲染;而如果云服务器在终端设备为非触控类型的屏幕时,则确定需要在用户界面上进行操作光标的渲染。在一个实施例中,云服务器在确定需要在用户界面上进行操作光标的渲染时,该云服务器可在向终端设备下发游戏数据时,将该操作光标的图标,渲染代码等包括在该游戏数据中一并下发给终端设备,以使该终端设备基于渲染代码在用户界面上进行操作光标的渲染,而如果服务器确定不需要在用户界面上进行操作光标的渲染,则云服务器可在向终端设备发送游戏数据时,不向终端设备下发操作光标的图标以及相应的渲染代码。
②如果终端设备从云服务器获取到的游戏数据包括操作光标的图标,以及相应的渲染代码,则该终端设备可在用户界面上进行操作光标的渲染显示,其中,该终端设备在渲染显示游戏数据的操作光标时,可替换原显示在终端设备的用户界面上的系统图标,其中, 显示在该用户界面上的操作光标的形状可以是和系统图标相同的图标形状,也可以是和系统图标的形状不同的光标形状,在本申请实施例中,对操作光标的图标形状不做限定。
③终端设备在显示目标游戏的操作光标后,则可在本地绘制基于该操作光标执行的控制操作的操作动画,并将基于该操作光标执行的控制操作的操作数据发送给云服务器,以从云服务器获取该操作数据对应的响应数据,终端设备基于从云服务器获取到的响应数据,则可对显示在用户界面中的游戏画面进行更新。
④在终端设备请求云服务器运行目标游戏后,该云服务器将持续向终端设备发送该目标游戏的游戏数据,从而实现在终端设备中对游戏画面的持续更新,那么基于游戏用户在用户界面上执行的控制操作,该终端设备可在该用户界面上绘制该控制操作的操作动画,并将该操作动画叠加到用户界面显示的游戏画面上进行显示,使得游戏用户达到在终端设备中达到进行本地游戏的操作体验。
在本申请实施例中,终端设备可在运行目标游戏的过程中,根据目标容器下发的游戏数据在用户界面中渲染该目标游戏的游戏画面,从而可进一步获取针对该目标游戏的控制操作,以在该用户界面上绘制该控制操作对应的操作动画,同时,该终端设备在获取到针对该目标游戏的控制操作后,可确定该控制操作对应的响应数据,以向目标容器发送针对该响应数据的数据获取请求,并在从该目标容器获取到该响应数据后,基于该响应数据对用户界面中显示的游戏画面进行持续更新。终端设备通过将控制操作的操作动画保留在本地进行绘制,并同时将操作动画叠加到向云服务器请求的游戏数据渲染得到的游戏画面上,可降低云服务器的数据处理压力,提升云服务器的数据处理效率,并可提升终端设备在进行目标游戏运行时,进行游戏画面显示的流畅度。
基于上述画面显示方法实施例的描述,本申请实施例还提出了一种画面显示装置,该画面显示装置可以是运行于上述终端设备中的一个计算机程序(包括程序代码)。该画面显示装置可用于执行如图2和图4所述的画面显示方法,请参见图6,该画面显示装置包括:渲染单元601,获取单元602,绘制单元603,叠加单元604和显示单元605。
渲染单元601,用于在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染所述目标游戏的游戏画面,所述目标游戏是在所述目标容器中运行的云游戏;
获取单元602,用于获取针对所述目标游戏的控制操作;
绘制单元603,用于根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画;
叠加单元604,用于将所述操作动画叠加到所述游戏画面上;
显示单元605,用于在所述用户界面中显示叠加了所述操作动画的游戏画面。
在一个实施例中,所述用户界面显示有所述目标游戏的操作光标,显示所述操作光标的光标界面为所述用户界面在显示方向上的上一层界面,所述控制操作包括对所述操作光标的移动操作;所述绘制单元603,具体用于:
获取移动所述操作光标时,所述操作光标在所述光标界面的初始显示位置;
根据对所述操作光标的移动操作,获取所述操作光标在所述光标界面的位置变化信息;
根据所述初始显示位置和所述位置变化信息,在所述光标界面绘制所述移动操作对应 的移动轨迹。
在一个实施例中,所述控制操作包括针对所述用户界面的触控操作;所述绘制单元603,具体用于:
获取在所述用户界面执行所述触控操作时的操作手势,并获取所述操作手势的关联操作动画;
在所述用户界面上绘制所述关联操作动画。
在一个实施例中,所述控制操作包括执行的选择操作,所述选择操作是根据操作光标执行的,或者是根据对所述用户界面的触控执行的;所述绘制单元603,具体用于:
确定所述选择操作在所述用户界面上的作用位置,并确定所述作用位置对应于所述游戏画面的映射位置;
获取与所述映射位置关联的触发动画,并在所述用户界面上的所述作用位置处绘制所述触发动画。
在一个实施例中,所述绘制单元603,具体用于:
确定所述映射位置处是否显示有所述目标游戏的游戏设置组件,所述目标游戏的每个游戏设置组件的触发动画的渲染代码被存储在本地存储器中;
若所述映射位置显示有所述游戏设置组件,则从所述本地存储器中获取与所述游戏设置组件关联的触发动画的渲染代码,并将所述渲染代码指示的动画作为与所述映射位置关联的触发动画;
若所述映射位置未显示所述游戏设置组件,则获取预设渲染规则,并将所述预设渲染规则指示的动画作为与所述映射位置关联的触发动画。
在一个实施例中,所述装置还包括:确定单元606。
确定单元606,用于确定对所述目标游戏的控制方式,所述控制方式包括采用操作光标对所述目标游戏进行控制的第一控制方式,或通过所述用户界面对所述目标游戏进行触控控制的第二控制方式;
所述渲染单元601,还用于若确定对所述目标游戏的控制方式为所述第一控制方式,则根据所述目标容器下发的游戏数据在所述用户界面上渲染所述目标游戏的操作光标。
在一个实施例中,所述确定单元606,具体用于:
获取用于显示所述用户界面的终端设备的屏幕类型;
若所述屏幕类型为触控屏类型,则确定对所述目标游戏的控制方式为第二控制方式;
若所述屏幕类型为非触控屏类型,则确定对所述目标游戏的控制方式为第一控制方式。
在一个实施例中,显示所述操作光标的界面为所述用户界面的光标界面;所述渲染单元601,具体用于:
获取所述光标界面中显示的系统光标,所述系统光标是未从所述目标容器获取游戏数据时显示在所述光标界面中的;
从所述目标容器下发的游戏数据解析获取待渲染的图标,所述图标用于标识目标游戏的操作光标;
隐藏所述系统光标,并在所述用户界面的光标界面渲染所述操作光标的图标。
在一个实施例中,所述装置还包括更新单元607。
所述确定单元606,还用于向所述目标容器发送数据获取请求,所述数据获取请求用于请求获取所述控制操作对应的响应数据;
更新单元607,用于从所述目标容器获取下发的响应数据,并按照所述响应数据的指示,更新在所述用户界面中显示的游戏画面。
在本申请实施例中,在目标游戏的运行过程中,渲染单元601通过向云服务器的目标容器请求该目标游戏的游戏数据,从而可基于该游戏数据在用户界面上渲染该目标游戏的游戏画面,此外,该获取单元602可获取针对该目标游戏的控制操作,从而使得绘制单元603可根据获取到的控制操作在用户界面上绘制该控制操作对应的操作动画,那么显示单元605可将该操作动画叠加显示在游戏画面上,由于将针对控制操作的操作动画的绘制保留在本地进行执行,可提升对游戏用户的控制操作绘制操作动画的流畅性,使得游戏用户达到在本地进行游戏操作的游戏体验,提升用户满意度。
请参见图7,是本申请实施例提供的一种终端设备的结构示意性框图。如图7所示的本实施例中的终端设备可包括:一个或多个处理器701;一个或多个输入设备702,一个或多个输出设备703和存储器704。上述处理器701、输入设备702、输出设备703和存储器704通过总线705连接。存储器704用于存储计算机程序,所述计算机程序包括程序指令,处理器701用于执行所述存储器704存储的程序指令。
所述存储器704可以包括易失性存储器(volatile memory),如随机存取存储器(random-access memory,RAM);存储器704也可以包括非易失性存储器(non-volatile memory),如快闪存储器(flash memory),固态硬盘(solid-state drive,SSD)等;存储器704还可以包括上述种类的存储器的组合。
所述处理器701可以是中央处理器(central processing unit,CPU)。所述处理器701还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)等。该PLD可以是现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)等。所述处理器701也可以为上述结构的组合。
本申请实施例中,所述存储器704用于存储计算机程序,所述计算机程序包括程序指令,处理器701用于执行存储器704存储的程序指令,用来实现上述如图2和图4中相应方法的步骤。
在一个实施例中,所述处理器701被配置调用所述程序指令,用于执行:
在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染所述目标游戏的游戏画面,所述目标游戏是在所述目标容器中运行的云游戏;
获取针对所述目标游戏的控制操作,并根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画;
将所述操作动画叠加到所述游戏画面上,并在所述用户界面中显示叠加了所述操作动画的游戏画面。
本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机 程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述如图2或图4所示的方法实施例。其中,所述的计算机可读存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
另外,本申请实施例还提供了一种存储介质,所述存储介质用于存储计算机程序,所述计算机程序用于执行上述实施例提供的方法。
本申请实施例还提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例提供的方法。
以上所揭露的仅为本申请的局部实施例而已,当然不能以此来限定本申请之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或局部流程,并依本申请权利要求所作的等同变化,仍属于发明所涵盖的范围。

Claims (13)

  1. 一种画面显示方法,所述方法由终端设备执行,所述方法包括:
    在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染所述目标游戏的游戏画面,所述目标游戏是在所述目标容器中运行的云游戏;
    获取针对所述目标游戏的控制操作,并根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画;
    将所述操作动画叠加到所述游戏画面上,并在所述用户界面中显示叠加了所述操作动画的游戏画面。
  2. 根据权利要求1所述的方法,所述用户界面显示有所述目标游戏的操作光标,显示所述操作光标的光标界面为所述用户界面在显示方向上的上一层界面,所述控制操作包括对所述操作光标的移动操作;所述根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画,包括:
    获取移动所述操作光标时,所述操作光标在所述光标界面的初始显示位置;
    根据对所述操作光标的移动操作,获取所述操作光标在所述光标界面的位置变化信息;
    根据所述初始显示位置和所述位置变化信息,在所述光标界面绘制所述移动操作对应的移动轨迹。
  3. 根据权利要求1所述的方法,所述控制操作包括针对所述用户界面的触控操作;所述根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画,包括:
    获取在所述用户界面执行所述触控操作时的操作手势,并获取所述操作手势的关联操作动画;
    在所述用户界面上绘制所述关联操作动画。
  4. 根据权利要求1所述的方法,所述控制操作包括执行的选择操作,所述选择操作是根据操作光标执行的,或者是根据对所述用户界面的触控执行的;所述根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画,包括:
    确定所述选择操作在所述用户界面上的作用位置,并确定所述作用位置对应于所述游戏画面的映射位置;
    获取与所述映射位置关联的触发动画,并在所述用户界面上的所述作用位置处绘制所述触发动画。
  5. 根据权利要求4所述的方法,所述获取与所述映射位置关联的触发动画,包括:
    确定所述映射位置处是否显示有所述目标游戏的游戏设置组件,所述目标游戏的每个游戏设置组件的触发动画的渲染代码被存储在本地存储器中;
    若所述映射位置显示有所述游戏设置组件,则从所述本地存储器中获取与所述游戏设置组件关联的触发动画的渲染代码,并将所述渲染代码指示的动画作为与所述映射位置关联的触发动画;
    若所述映射位置未显示所述游戏设置组件,则获取预设渲染规则,并将所述预设渲染规则指示的动画作为与所述映射位置关联的触发动画。
  6. 根据权利要求1所述的方法,所述方法还包括:
    确定对所述目标游戏的控制方式,所述控制方式包括采用操作光标对所述目标游戏进行控制的第一控制方式,或通过所述用户界面对所述目标游戏进行触控控制的第二控制方式;
    若确定对所述目标游戏的控制方式为所述第一控制方式,则根据所述目标容器下发的游戏数据在所述用户界面上渲染所述目标游戏的操作光标。
  7. 根据权利要求6所述的方法,所述确定对所述目标游戏的控制方式,包括:
    获取用于显示所述用户界面的终端设备的屏幕类型;
    若所述屏幕类型为触控屏类型,则确定对所述目标游戏的控制方式为所述第二控制方式;
    若所述屏幕类型为非触控屏类型,则确定对所述目标游戏的控制方式为所述第一控制方式。
  8. 根据权利要求6所述的方法,显示所述操作光标的光标界面为所述用户界面在显示方向上的上一层界面;所述根据所述目标容器下发的游戏数据在所述用户界面上渲染所述目标游戏的操作光标,包括:
    获取所述光标界面中显示的系统光标,所述系统光标是未从所述目标容器获取游戏数据时显示在所述光标界面中的;
    从所述目标容器下发的游戏数据中解析获取待渲染的图标,所述图标用于标识目标游戏的操作光标;
    隐藏所述系统光标,并在所述光标界面渲染所述操作光标的图标。
  9. 根据权利要求1所述的方法,所述获取针对所述目标游戏的控制操作之后,所述方法还包括:
    向所述目标容器发送数据获取请求,所述数据获取请求用于请求获取所述控制操作对应的响应数据;
    从所述目标容器获取下发的所述响应数据,并按照所述响应数据的指示,更新在所述用户界面中显示的游戏画面。
  10. 一种画面显示装置,包括:
    渲染单元,用于在目标游戏的运行过程中,根据目标容器下发的游戏数据在用户界面中渲染所述目标游戏的游戏画面,所述目标游戏是在所述目标容器中运行的云游戏;
    获取单元,用于获取针对所述目标游戏的控制操作;
    绘制单元,用于根据所述控制操作在所述用户界面上绘制所述控制操作对应的操作动画;
    叠加单元,用于将所述操作动画叠加到所述游戏画面上;
    显示单元,用于在所述用户界面中显示叠加了所述操作动画的游戏画面。
  11. 一种终端设备,包括处理器、输入设备、输出设备和存储器,所述处理器、所述输入设备、所述输出设备和所述存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1~9任一项所述的方法。
  12. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1~9任一项所述的方法。
  13. 一种包括指令的计算机程序产品,当其在计算机上运行时,使得所述计算机执行权利要求1~9任一项所述的方法。
PCT/CN2022/078548 2021-03-04 2022-03-01 画面显示方法、装置、终端设备及存储介质 WO2022184041A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2023527432A JP2023548708A (ja) 2021-03-04 2022-03-01 画面表示方法、装置、端末機器及びコンピュータプログラム
US17/974,753 US20230046042A1 (en) 2021-03-04 2022-10-27 Picture display method and apparatus, terminal device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110242486.X 2021-03-04
CN202110242486.XA CN112843680A (zh) 2021-03-04 2021-03-04 画面显示方法、装置、终端设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/974,753 Continuation US20230046042A1 (en) 2021-03-04 2022-10-27 Picture display method and apparatus, terminal device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022184041A1 true WO2022184041A1 (zh) 2022-09-09

Family

ID=75991733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/078548 WO2022184041A1 (zh) 2021-03-04 2022-03-01 画面显示方法、装置、终端设备及存储介质

Country Status (4)

Country Link
US (1) US20230046042A1 (zh)
JP (1) JP2023548708A (zh)
CN (1) CN112843680A (zh)
WO (1) WO2022184041A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112843680A (zh) * 2021-03-04 2021-05-28 腾讯科技(深圳)有限公司 画面显示方法、装置、终端设备及存储介质
CN113476836B (zh) * 2021-06-30 2024-03-22 广州方硅信息技术有限公司 游戏画面显示方法、装置、电子设备及可读存储介质
CN113398581B (zh) * 2021-06-30 2023-09-19 广州方硅信息技术有限公司 游戏画面显示方法、装置、电子设备及可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140082539A1 (en) * 2012-09-17 2014-03-20 Adobe Systems Incorporated Computer-implemented methods and systems for multi-touch duplication and swapping interactions
US20140349755A1 (en) * 2012-12-07 2014-11-27 Gree, Inc. Game control method, server apparatus, and storage medium
US20190065619A1 (en) * 2017-08-24 2019-02-28 Coursera, Inc. Scalable server-side rendering
CN110368686A (zh) * 2019-07-03 2019-10-25 上海闻泰信息技术有限公司 云游戏实现方法、装置、云端服务器、终端及介质
CN111882626A (zh) * 2020-08-06 2020-11-03 腾讯科技(深圳)有限公司 图像处理方法、装置、服务器及介质
CN112044079A (zh) * 2020-10-14 2020-12-08 腾讯科技(深圳)有限公司 一种游戏运行方法、装置、存储介质和电子设备
CN112843680A (zh) * 2021-03-04 2021-05-28 腾讯科技(深圳)有限公司 画面显示方法、装置、终端设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954848A (zh) * 2015-05-12 2015-09-30 乐视致新电子科技(天津)有限公司 智能终端的显示图形用户界面的控制方法及装置
CN111861854A (zh) * 2019-04-30 2020-10-30 华为技术有限公司 用于图形渲染的方法及装置
CN110138769B (zh) * 2019-05-09 2021-06-15 深圳市腾讯网域计算机网络有限公司 一种图像传输的方法以及相关装置
CN111803940B (zh) * 2020-01-14 2022-05-31 厦门雅基软件有限公司 游戏的处理方法、装置、电子设备及计算机可读存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140082539A1 (en) * 2012-09-17 2014-03-20 Adobe Systems Incorporated Computer-implemented methods and systems for multi-touch duplication and swapping interactions
US20140349755A1 (en) * 2012-12-07 2014-11-27 Gree, Inc. Game control method, server apparatus, and storage medium
US20190065619A1 (en) * 2017-08-24 2019-02-28 Coursera, Inc. Scalable server-side rendering
CN110368686A (zh) * 2019-07-03 2019-10-25 上海闻泰信息技术有限公司 云游戏实现方法、装置、云端服务器、终端及介质
CN111882626A (zh) * 2020-08-06 2020-11-03 腾讯科技(深圳)有限公司 图像处理方法、装置、服务器及介质
CN112044079A (zh) * 2020-10-14 2020-12-08 腾讯科技(深圳)有限公司 一种游戏运行方法、装置、存储介质和电子设备
CN112843680A (zh) * 2021-03-04 2021-05-28 腾讯科技(深圳)有限公司 画面显示方法、装置、终端设备及存储介质

Also Published As

Publication number Publication date
JP2023548708A (ja) 2023-11-20
CN112843680A (zh) 2021-05-28
US20230046042A1 (en) 2023-02-16

Similar Documents

Publication Publication Date Title
WO2022184041A1 (zh) 画面显示方法、装置、终端设备及存储介质
US10771565B2 (en) Sending application input commands over a network
US11213743B2 (en) Method, system and electronic device for achieving remote control of computer game by game controller
WO2018113140A1 (zh) 一种视频直播中虚拟礼物显示方法和系统
US9573057B2 (en) Method and system for remote game display
US11863832B2 (en) Start-up performance improvement for remote computer application
CN109495427B (zh) 多媒体数据展示方法、装置、存储介质和计算机设备
CN106878825B (zh) 基于直播的声效展示方法和装置
WO2023093698A1 (zh) 游戏直播的交互方法、存储介质、程序产品及电子设备
CN111359220B (zh) 游戏广告生成方法、装置和计算机设备
WO2021178176A1 (en) A method for caching and presenting an interactive menu for disparate applications
EP4182782B1 (en) Dynamic multi-user media streaming
US9497238B1 (en) Application control translation
CN114895787A (zh) 多人互动方法、装置、电子设备及存储介质
WO2022105426A1 (zh) 设备加入方法、装置、电子设备及计算机可读介质
WO2017140226A1 (zh) 视频处理方法及其设备
US11936928B2 (en) Method, system and device for sharing contents
US20140344283A1 (en) Method of server-based application hosting and streaming of video output of the application
US10862946B1 (en) Media player supporting streaming protocol libraries for different media applications on a computer system
EP3048524B1 (en) Document display support device, terminal, document display method, and computer-readable storage medium for computer program
KR20220098010A (ko) 제1 스크린 디바이스 상에 제공된 미디어 피처들이 제2 스크린 디바이스 상에 제시될 수 있도록 하기
CN116843802A (zh) 虚拟形象的处理方法及相关产品
CN114594881B (zh) 一种消息展示方法和装置
US12034780B2 (en) Dynamic multi-user media streaming
CN113952724A (zh) 云游戏角色控制方法、装置、存储介质及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22762506

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023527432

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.01.2024)