CN112044079B - Game running method and device, storage medium and electronic equipment - Google Patents

Game running method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112044079B
CN112044079B CN202011098091.9A CN202011098091A CN112044079B CN 112044079 B CN112044079 B CN 112044079B CN 202011098091 A CN202011098091 A CN 202011098091A CN 112044079 B CN112044079 B CN 112044079B
Authority
CN
China
Prior art keywords
game
container
target
image file
server
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
CN202011098091.9A
Other languages
Chinese (zh)
Other versions
CN112044079A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011098091.9A priority Critical patent/CN112044079B/en
Publication of CN112044079A publication Critical patent/CN112044079A/en
Application granted granted Critical
Publication of CN112044079B publication Critical patent/CN112044079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • 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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • A63F2300/534Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing for network load management, e.g. bandwidth optimization, latency reduction

Abstract

The application provides a game running method and device, a storage medium and electronic equipment, belongs to the technical field of computers and relates to cloud technology. In the method, a game starting request aiming at a target game sent by a terminal device is received, and a target server is determined; creating a game container for running the target game on the target server according to the container image file of the target game; establishing connection between the terminal equipment and the game container; and according to the game operation instruction sent by the terminal equipment, running the target game through the game container, and returning a game picture to the terminal equipment. The method allocates the target server in response to the game starting request, creates the game container according to the pre-created container image file of the target game, and returns the game picture of the target game to the terminal equipment, so that the time consumption for deploying the online game can be reduced, and the resource expense is effectively reduced.

Description

Game running method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a game running method, an apparatus, a storage medium, and an electronic device.
Background
With the popularization of smart devices, more and more people are used to play entertainment games with portable smart devices. Due to factors such as difference of hardware configuration of different intelligent devices, the compatibility of the intelligent devices to games is poor.
With the continuous development of internet technology, online games are produced. In the cloud game, almost all game data can be processed and put on a server through a cloud computing technology, the server runs game logic, the rendered game picture is transmitted to a client, and an operation instruction of a player is received from the client.
At present, a plurality of simulators are generally required to be started on a server in advance for realizing a cloud game, and one simulator is allocated to a client when the client sends a connection request. The simulator runs based on the virtual machine, and due to the fact that the requirement of the simulator for running the used virtual machine is high, the deployment of the simulator and the simulator on the server to start the cloud game is not only long in time, but also high in resource consumption.
Disclosure of Invention
In order to solve technical problems in related technologies, embodiments of the present application provide a game running method, an apparatus, a storage medium, and an electronic device, which can effectively reduce the duration of deploying an online game and resource overhead.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a game running method, including:
receiving a game starting request aiming at a target game sent by a terminal device, and determining a target server for providing game service for the terminal device;
creating a game container for running the target game on the target server according to the container image file of the target game; the container mirror image file of the target game is generated according to a system file of an operating system and an installation file of the target game; the operating system is an operating system supporting the running of the target game;
establishing connection between the terminal equipment and the game container;
and according to the game operation instruction sent by the terminal equipment, the target game is operated through the game container, and a game picture in the operation process of the target game is returned to the terminal equipment.
In an optional embodiment, after generating the container image file of the target game according to the image file of the operating system and the installation file of the target game, the method further includes:
storing a container mirror image file of the target game by adopting a distributed storage system; alternatively, the first and second electrodes may be,
and storing the container mirror image file of the target game into a mirror image file library.
In an optional embodiment, the establishing the connection between the terminal device and the game container includes:
establishing connection with the game container and starting the game container;
and sending the game container information returned by the game container to the terminal equipment so as to establish the connection between the terminal equipment and the game container.
In a second aspect, an embodiment of the present application provides a game running method, including:
displaying a game picture of a target game acquired from a background server in response to a login operation for the target game; the game picture of the target game is a game picture in the running process of the target game, which is acquired by the background server from a game container positioned on the target server; the target server is a server which is determined to provide game service for the terminal equipment when the background server receives a game starting request generated by the terminal equipment according to the login operation; the game container is created on the target server according to the container image file of the target game;
and responding to the control operation aiming at the target game in the game running process, and displaying the game picture of the target game after the control operation is executed, which is acquired from the background server.
In a third aspect, an embodiment of the present application provides a game execution apparatus, including:
the server allocation unit is used for receiving a game starting request aiming at a target game sent by terminal equipment and determining a target server for providing game service for the terminal equipment;
a container creating unit, configured to create, on the target server, a game container for running the target game according to a container image file of the target game; the container mirror image file of the target game is generated according to a system file of an operating system and an installation file of the target game; the operating system is an operating system supporting the running of the target game;
a connection establishing unit for establishing a connection between the terminal device and the game container;
and the picture transmission unit is used for running the target game through the game container according to the game operation instruction sent by the terminal equipment and returning the game picture in the running process of the target game to the terminal equipment.
In an optional embodiment, further comprising:
the container mirror image generation unit is used for obtaining a mirror image file of the operating system according to the obtained system file of the operating system supporting the operation of the target game; and generating a container image file of the target game according to the image file of the operating system and the installation file of the target game.
In an optional embodiment, the container mirror image generating unit is specifically configured to:
converting the image file of the operating system into a container image file suitable for running in a container;
starting a file generation container according to the container mirror image file of the operating system;
and installing the target game in the file generation container according to the installation file of the target game to obtain a container mirror image file of the target game.
In an optional embodiment, the container mirror image generating unit is specifically configured to:
obtaining an image file of the target game according to the installation file of the target game;
generating a synthetic image file of the target game according to the image file of the operating system and the image file of the target game;
and converting the mirror image file of the target game into a container file format suitable for running in a container to obtain a container mirror image file of the target game.
In an optional embodiment, the container image generation unit is further configured to:
storing a container mirror image file of the target game by adopting a distributed storage system; alternatively, the first and second liquid crystal display panels may be,
and storing the container mirror image file of the target game into a mirror image file library.
In an optional embodiment, the connection creating unit is specifically configured to:
establishing connection with the game container and starting the game container;
and sending the game container information returned by the game container to the terminal equipment so as to establish the connection between the terminal equipment and the game container.
In an optional embodiment, further comprising:
and the container release unit is used for informing the target server to stop and delete the game container if receiving the game quitting instruction sent by the terminal equipment.
In a fourth aspect, an embodiment of the present application provides a game running method and apparatus, which are applied to a terminal device, and include:
a game login unit for displaying a game screen of a target game acquired from a background server in response to a login operation for the target game; the game picture of the target game is a game picture in the running process of the target game, which is acquired by the background server from a game container positioned on the target server; the target server is a server which is determined to provide game service for the terminal equipment when the background server receives a game starting request generated by the terminal equipment according to the login operation; the game container is created on the target server according to the container image file of the target game;
and the game display unit is used for responding to the control operation aiming at the target game in the game running process and displaying the game picture of the target game after the control operation is executed, which is acquired from the background server.
In a fifth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the game running method of the first aspect is implemented.
In a sixth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for running a game according to the second aspect is implemented.
In a seventh aspect, an embodiment of the present application further provides an electronic device, including a memory and a processor, where the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, the processor is caused to implement the game execution method of the first aspect.
In an eighth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and when the computer program is executed by the processor, the processor is enabled to implement the game execution method of the second aspect.
According to the game running method, the game running device, the storage medium and the electronic equipment, after a game starting request aiming at a target game sent by the terminal equipment is received, the target server is distributed to the terminal equipment, a game container is created on the target server according to a container image file of the target game, the target game is run through the game container, and a game picture of the target game is returned to the terminal equipment. By running the game in the mode of creating the game container, the time consumption for deploying the online game can be reduced, and the resource expense can be effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
FIG. 2 is an interaction diagram of a method for running a game according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a game login interface of a game running method according to an embodiment of the present disclosure;
fig. 4 is a schematic view of a game screen of a game running method according to an embodiment of the present application;
FIG. 5 is a flow chart of a method for running a game according to an embodiment of the present disclosure;
FIG. 6 is a flowchart of a container image file generation process of a game execution method according to an embodiment of the present disclosure;
FIG. 7 is a flow chart of another method for running a game according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a game execution device according to an embodiment of the present application;
FIG. 9 is a schematic diagram of another game execution apparatus according to an embodiment of the present application;
FIG. 10 is a schematic diagram of another game execution apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
(1) Cloud computing (cloud computing): the method is a computing mode, and distributes computing tasks on a resource pool formed by a large number of computers, so that various application systems can acquire computing power, storage space and information services according to needs. An Infrastructure as a Service (IaaS) cloud computing resource pool platform (cloud platform for short, generally referred to as IaaS) is established by a cloud computing Infrastructure as a Service provider, and multiple types of virtual resources are deployed in a resource pool and are selectively used by external clients.
(2) Cloud gaming (Cloud gaming): also called game on demand (gaming) is an online game technology based on cloud computing technology. Cloud game technology enables light-end devices (thin clients) with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud game scene, cloud game software is not operated on a myriad of game terminals but is operated in a cloud server. The player game terminal does not need to have strong graphic operation and data processing capacity, and only needs to have basic streaming media playing capacity and capacity of acquiring player input instructions and sending the instructions to the cloud server. The user-selected cloud game may be run in a cloud game server. The cloud game server acquires the audio and video stream of the cloud game software through the audio and video acquirer, then codes the audio and video stream through the audio and video encoder, and sends the coded audio and video stream to the game client of the terminal device through internet communication protocols such as Real Time Streaming Protocol (RTSP). After receiving the encoded audio and video stream, the game client decodes the audio and video stream through the audio and video decoder, and then plays the picture and sound of the game through the audio and video player, so that the user can see the game picture and hear the game sound at the terminal. The game client monitors an input instruction of a user, event coding is carried out according to the instruction input by the user, and then the coded input event is sent to the cloud game server through a custom communication protocol. The cloud game server decodes the encoded input events after receiving them, and then reproduces the user's input.
(3) A distributed cloud storage system (hereinafter, referred to as a storage system) refers to a storage system that aggregates a large number of storage devices (storage devices are also referred to as storage nodes) of various types in a network through application software or application interfaces to cooperatively work through functions such as cluster application, grid technology, and a distributed storage file system, and provides data storage and service access functions to the outside. At present, a storage method of a storage system is as follows: logical volumes are created, and when a logical volume is created, physical storage space, which may be the disk composition of a certain storage device or several storage devices, is allocated to each logical volume. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as data Identification (ID), the file system writes each object into a physical storage space of the logical volume, and the file system records storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object. The process of allocating physical storage space for the logical volume by the storage system specifically includes: physical storage space is pre-partitioned into stripes according to a set of capacity measures of objects stored in the logical volumes (which often have a large margin with respect to the capacity of the actual objects to be stored) and Redundant Array of Independent Disks (RAID), and a logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.
(4) Database (Database): the user can perform operations such as adding, inquiring, updating, deleting and the like on data in the file by an electronic file cabinet or a place for storing electronic files. A "database" is a collection of data that is stored together in a manner that can be shared by multiple users, has as little redundancy as possible, and is independent of the application.
(5) Preloading: in order to enable a player to start playing the online game, before the user starts the online game, the image recognition program automatically controls the game to log in advance, enables the game to start by simulating clicking and enters a specified interface, and the stage of preloading the game in the specified interface is preloading.
The word "exemplary" is used hereinafter to mean "serving as an example, embodiment, or illustration. Any embodiment described as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The terms "first" and "second" are used herein for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
An application scenario of the game running method provided in the embodiment of the present application can be shown in fig. 1, where the application scenario includes a background server 100, a plurality of terminal devices (such as terminal devices 301, 302, 303, and the like), and a plurality of cloud game servers 400. In the embodiments of the present application, the games related to the game running method are all described by taking online games as examples. The background server 100 is configured to manage and schedule the cloud game servers 400, and is communicatively connected to a plurality of terminal devices and the cloud game servers 400 through a network 200, where the network 200 may be, but is not limited to, a local area network, a metropolitan area network, a wide area network, or the like. The terminal devices 301 to 303 may be portable devices (e.g., mobile phones, tablet computers, and notebook computers), smart screens, personal Computers (PCs), and the like. The backend server 100 may be any device capable of providing internet services, such as a device capable of providing online gaming services for online gaming clients, and the like. The background server 100 may be an independent server, or may be a cloud server, and may include one or more servers.
Taking the terminal device 301 as an example, when a cloud game server 400 is allocated to the terminal device 301, the background server 100 transmits the uploaded operation instruction to the cloud game server 400, and the cloud game server 400 performs corresponding processing according to the received operation instruction. Meanwhile, the game screen of the cloud game server 400 is transmitted to the terminal device 301 through the backend server 100, and the user operates the cloud game software actually running on the cloud game server 400 on the terminal device 301.
In the related art, the cloud game server usually runs the cloud game in a simulator mode, and 3-4 minutes are required for creating one simulator, so that the time required by the existing deployment process of the cloud game is long. In order to obtain a better user experience for the user, the cloud game software on the cloud game server 400 is preloaded in advance before the cloud game server 400 is allocated to the terminal device 301. For example, when 80 users are expected to play a certain cloud game, the backend server 100 may pre-start the cloud game in the 80 cloud game servers. When the user initiates a request through the terminal device 301 to specify that the cloud game is to be played, the backend server 100 directly allocates the cloud game server 400 that has completed preloading to the terminal device 301. Such a cloud game implementation method is high in resource consumption due to the fact that cloud game software of a plurality of cloud game servers is started in advance.
In order to solve the problems of long time consumption and high resource consumption in online game deployment in the related art, the embodiment of the application provides a game running method, a game running device, a storage medium and electronic equipment.
In the game running method provided by the embodiment of the present application, a user may access the cloud game server 401 running in the cloud end through the terminal device 301 in a browser or cloud game client manner, where the cloud game client may be a client including a plurality of cloud games, and cloud games in the cloud game client may be added or deleted. The user can respectively select different cloud games as target online games for entertainment through the cloud game client. When a user accesses the cloud game server running in the cloud through the cloud game client, the terminal device 301 does not need to install a client of the target online game, and the user opens the cloud game client to find the target online game in a small game interface. In the following embodiments, a cloud game client installed on the terminal device 301 is taken as an example for description.
In this embodiment, the terminal device 301 is installed with a cloud game client, where the cloud game client includes a plurality of online games, and a user may select a favorite online game from the plurality of online games, where the online game selected by the user is hereinafter referred to as a target online game. A user may send a launch game request for a target online game using a cloud game client on terminal device 301. After receiving the game starting request for the target online game sent by the terminal device 301, the backend server 100 selects a cloud game server with a relatively good connection status from a cluster consisting of a plurality of cloud game servers 400 as a target server for providing a game service to the terminal device 301 according to the region and network condition of the terminal device 301 of the user, and sends the game starting request to the target server. In the embodiments of the present application, the target server is the cloud game server 401. The backend server 100 creates a game container for running the target online game on the cloud game server 401 according to the container image file of the target online game. The backend server 100 will then establish a connection between the terminal device 301 and the game container on the cloud game server 401. Thereby allocating the cloud game server 401 to the terminal device 301. In the running process of the target online game, a game picture of the cloud game server 401 is transmitted to the terminal device 301 through the background server 100, a user can input an operation instruction for the game in a display interface of the terminal device, the background server 100 transmits the operation instruction uploaded by the user at the terminal device 301 to the cloud game server 401, and the cloud game server 401 performs corresponding processing according to the operation instruction. Thus, the user can realize to operate the cloud game software actually running on the cloud game server 401 on the terminal device 301.
Fig. 2 shows an interaction diagram of a game running method provided by an embodiment of the present application. The game running method can be cooperatively executed by the terminal device, the background server and the target server, wherein the game can be a cloud game or other online games. The following embodiment is described by taking a cloud game as an example, and as shown in fig. 2, the game running method includes the following steps:
step S201, the terminal device sends a game starting request to the background server.
For example, a client including the target online game may be installed on the terminal device, or the target online game may also be a mini game that is executed based on a third-party client, such as a client of the instant messaging application, in this case, the client of the target online game may not be installed on the terminal device, and the user may open the client of the instant messaging application, and find the target online game in a mini game interface therein.
And the user clicks the icon corresponding to the target online game to start the target online game. The terminal equipment receives the starting operation of the user aiming at the target online game and sends a game starting request to the background server.
Step S202, the background server determines a target server for providing game service for the terminal device according to the game starting request.
Illustratively, the background server may be a management server in the server cluster for managing other servers in the server cluster. The background server may also be a server independent from the server cluster, and is used for managing the servers in the server cluster.
The background server receives the game starting request, analyzes the game starting request, obtains the region and the network condition of a user sending the game starting request, and selects a cloud game server with better connection state, such as a cloud game server, from a server cluster consisting of a plurality of cloud game servers as a target server for providing game service for the terminal equipment.
Step S203, the background server sends a game starting instruction to the target server.
And the background server sends a game starting instruction to the target server according to the received game starting request. The game starting instruction can include the following information: the name of the target online game, the storage path of the relevant file of the target online game, etc.
Step S204, the target server obtains the container mirror image file of the target game according to the received game starting instruction.
Illustratively, the target server finds a storage path of the container image file of the target online game according to the name of the target online game in the received game starting instruction, and obtains the container image file of the target online game. Or the target server acquires the container image file of the target online game according to the storage path of the container image file of the target online game in the received game starting instruction. Or the target server searches the installation file of the target online game according to the name of the target online game in the received game starting instruction, and generates a container image file of the target online game according to the installation file of the target online game.
In some embodiments, the container image of the target online game may be generated in advance and saved in an image file library for storing the container image of the online game. The target server may download the container image of the target online game from the image file library and store it in a local disk. In other embodiments, the container image file for the target online game may be pre-generated and stored in the distributed storage system.
In step S205, the target server creates a game container for running the target game according to the container image file of the target game.
After the target server obtains the container image file of the target online game, the container image file of the target online game can be stored in a local disk, and then a game container for running the target online game is created according to the container image file of the target online game stored in the local disk.
In step S206, the backend server creates a connection with the game container.
In step S207, the background server sends an instruction to start the game container on the target server.
Illustratively, the background server 100 connects to the game container through an adb command and starts a game process of the game container.
In step S208, the target server starts the game container.
Step S209 is to send start completion feedback information to the background server after the game container on the target server is started.
And step S210, the background server acquires the game container information according to the received starting completion feedback information.
Exemplary game container information includes, but is not limited to: IP information, port information, etc. The game container information is used for being subsequently provided to the terminal device, so that the terminal device can send a login game request according to the game container information.
And step S211, the background server sends the game container information to the terminal equipment.
In step S212, the terminal device sends a request for logging in the game to the background server according to the received container information.
The login game request includes user information, such as a game account number and a password.
Illustratively, after the terminal device receives the container information, the target online game client of the terminal device 301 displays a start game interface as shown in fig. 3. When the user clicks the "start game" button on the start game interface shown in fig. 3, the terminal device transmits a request for logging in a game to the background server based on the received container information.
In step S213, the backend server parses the login game request to obtain the user information in the login game request.
Specifically, the background server parses the login game request, and obtains user information in the login game request, including but not limited to a game account and a password. In some embodiments, the background server further searches a user information table of the target online game prestored in the system according to the user information, and identifies whether the user is a new user in the user information according to the search result. If the matched user information is found in the user information table, the user is not the first time login target online game and is an old user. If the matched user information is not found in the user information table, the user is indicated to log in the target online game for the first time and is a new user.
And step S214, the background server sends the user information to the target server.
In step S215, the target server loads the user configuration for the game container according to the user information.
If the user corresponding to the user information received by the target server is not a new user, the target server loads a corresponding user configuration on the game container on the target server directly according to the user information, wherein the user configuration may include: game level, account balance, experience value, props, etc.
And if the user corresponding to the user information received by the target server is a new user, the target server directly loads factory configuration on the game container on the target server.
In step S216, the backend server transmits the game screen of the target game acquired from the target server to the terminal device.
And in the process of running the game by the target server, the background server acquires the game picture of the target online game from the target server and transmits the game picture to the terminal equipment. For example, the background server may encode the collected game pictures from the game pictures of the target server target online game according to the set sampling frequency, and transmit the encoded game pictures to the terminal device in a video streaming manner.
In step S217, the terminal device displays a game screen of the target game.
In step S218, the terminal device transmits an operation instruction to the background server in response to an operation of the game screen of the target game displayed by the terminal device by the user.
For example, as shown in fig. 4, the game screen of the target online game displayed by the terminal may be a breakthrough game, and the currently displayed game screen is a level selection screen including a plurality of levels. The user can select the target level in the game screen to enter the game corresponding to the target level. For example, the user selects the level 5, and the terminal device transmits an operation instruction to execute the level 5 to the background server in response to an operation of the user selecting the level 5 in the game screen.
In step S219, the background server transmits the received operation instruction to the target server.
Step S220, the target server performs corresponding processing according to the received operation instruction.
In step S221, the terminal device sends a game quitting instruction to the background server in response to the operation of the user to quit the game.
In step S222, the backend server sends a command to delete the game container to the target server.
And the background server receives the command of quitting the game sent by the terminal equipment and sends a command of deleting the game container to the target server.
In step S223, the target server deletes the game container according to the received instruction to delete the game container.
In some embodiments, after receiving the instruction of deleting the game container, the target server stops the corresponding game container according to the instruction, deletes the game container, and transmits the game related information of the user, such as game progress information, to the background server for storage, so that the user can continue to play the game at the current game progress when logging in the game next time.
In the embodiment of the application, a background server receives a game starting request aiming at a target online game sent by a terminal device, determines a target server providing game service for the terminal device, and creates a game container for running the target online game on the target server according to a container image file of the target online game; and establishing connection between the terminal equipment and the game container, running the target online game through the game container according to the game operation instruction sent by the terminal equipment, and returning a game picture in the running process of the target online game to the terminal equipment. The method can allocate the target server by responding to the received game starting request, create the game container according to the pre-created container image file of the target online game, establish the connection with the terminal equipment after starting and running, and return the game picture in the running process of the target online game to the terminal equipment, thereby reducing the time consumption for deploying the cloud game and effectively reducing the resource overhead.
In one embodiment, the game running method provided by the embodiment of the present application may be executed by the background server 100 in fig. 1. Fig. 5 shows a flow chart of the game running method, which, as shown in fig. 5, may include the steps of:
step S501, receiving a game starting request aiming at a target game sent by a terminal device, and determining a target server providing a game service for the terminal device.
Specifically, when the user wants to open the target online game a using the terminal device, the user may click on a client of the target online game a installed on the terminal device to send a game starting request for the target online game. The background server receives a game starting request aiming at a target online game A sent by the terminal equipment, and determines a target server for providing game service for the terminal equipment.
Step S502, according to the container mirror image file of the target game, a game container for running the target game is created on the target server.
The container mirror image file of the target game is generated according to the system file of the operating system and the installation file of the target game; the operating system is an operating system that supports the running of a target game.
Specifically, the background server creates a game container for running the target online game on the target server according to the container image file of the target online game a. In some embodiments, the container image file of the target online game is generated in advance and then stored in the database in a centralized manner, and when a game container for running the target online game is created on the target server, the container image file of the target online game needs to be downloaded from the database to a local disk of the target server. In other embodiments, the container image file of the target online game is generated in advance and stored in the cloud storage system, and when a game container for running the target online game is created on the target server, the container image file of the target online game on the cloud storage system can be directly read and the game container can be created on the target server.
Step S503, establishing a connection between the terminal device and the game container.
Specifically, in this embodiment, the process of establishing a connection between the terminal device and the game container includes: and the background server establishes connection with the game container in an adb mode and starts the game container. And the background server sends the received game container information returned after the game container is started to the terminal equipment. The background server receives a game login request sent by the terminal equipment, wherein the game login request comprises user information. The background server analyzes the login game request, obtains user information in the login game request, sends the user information to the game container so that the game container loads user configuration corresponding to the terminal equipment, and transmits game pictures of the target online game acquired from the target server to the terminal equipment.
For example, the process of connecting the background server to the game container by means of adb may adopt the following program codes:
adb connect 192.168.0.xxx:5555
where 192.168.0.xxx is the IP address of the destination server and 5555 is the port number of the destination server.
The background server starts the game container, and the following program codes can be referred to:
adb shell am start-n com.tencent.myapp/.MyActivity
after the game container is started, the background server sends the obtained game container information to the terminal device, wherein the game container information includes but is not limited to: IP, port of game container.
The terminal device sends a login game request to the background server through the obtained game container information, wherein the login game request comprises user information such as an account number, a password and the like.
The background server analyzes the login game request, obtains user information in the login game request, and sends the user information to the game container, so that the game container loads user configuration corresponding to the terminal device, and connection between the terminal device and the game container is established.
After the connection between the terminal device and the game container is established, the background server can also transmit the game picture of the target online game acquired from the target server to the terminal device for displaying.
Step S504, according to the game operation instruction sent by the terminal device, the target game is operated through the game container, and the game picture in the operation process of the target game is returned to the terminal device.
Specifically, the background server transmits the game operation instruction sent by the terminal device to the target server, and the target server executes the game operation instruction through the game container. Meanwhile, game pictures of the cloud game server can be transmitted to the terminal equipment through the background server.
In an alternative embodiment, the generation process of the container image file of the target online game used in the embodiment of the present application may be as shown in fig. 6, and includes the following steps:
step S601, obtaining an image file of the operating system according to the obtained system file of the operating system supporting the target game to run.
Optionally, the operating system includes but is not limited to: android, hongmengso, iOS. In the following embodiments of the present application, the operating system is Android as an example for explanation.
Specifically, the background server downloads the Android source code through an Android source code synchronization tool on the Ubuntu system by using the following commands:
repo init-u https://android.googlesource.com/platform/manifest-b pie-release
repo sync
wherein, repo is an Android command line tool and is used for encapsulating partial commands of the code management tool. A repoinit command to download a repo tool and copy a manifest repository, -u to specify a network address URL, which is linked to a manifest repository; the repo sync is used to download the code.
The program segment codes can realize downloading of Android source codes at a specified network address.
Next, the backend server executes the following commands to compile the image:
source build/envsetup.sh
make
the commands are compiled into an Android system through source commands, android image files such as system.
Step S602, according to the image file of the operating system and the installation file of the target game, a container image file of the target game is generated.
In some alternative embodiments, the container image file of the target online game may be generated by:
step A1, converting the image file of the operating system into a container image file suitable for running in a container.
Illustratively, to convert the operating system's image file into a container image file that is adapted to run in a container, first, the backend server packages the simulator image into a tar file using the following commands:
qemu-nbd-c/dev/nbd1-r-f raw system.img
partprobe/dev/nbd1
mount/dev/nbd1p1/tmp/android-system
tar cpf system.tar-C/tmp/android-system.
wherein the qemu-nbd-c command is to let/dev/nbd 1 connect to the Android image named system. The partProbe command is used to read the partition information of/dev/nbd 1; the mount command is used to hang/dev/nbd 1p1 under the android-system; and then packaging the android-system by a tar command to build a compressed file.
Then, with the following example code, compiling a container image named Android-cloudgame using the system.
From scratch
ADD system.tar/
ADD vendor.tar/vendor
docker build.-t android-cloudgame
The ADD command is used for copying the file of the host into an image file, and is the same as COPY;
the docker built-t android-cloudgate command line is used for constructing a container image file by using the Dockerfile of the current path through the docker built command, wherein the container image file is named android-cloudgate.
In some embodiments, the codes of the starting process in the Android module, the network, the picture rendering and other modules are finely adjusted, so that the container image file can better run normally in a container environment.
And step A2, starting a file according to the container mirror image file of the operating system to generate a container.
Illustratively, the backend server may start the android container using the following commands:
docker run-itd–privileged android-cloudgame
the docker run is used for creating and starting the container by using the container image file, and the android container can be started by the above code according to the container image file named android-cloudgame.
And step A3, installing the target game in the file generation container according to the installation file of the target game to obtain a container mirror image file of the target game.
Illustratively, in order to install the target online game into the file generation container, the background server first downloads a target online game installation file (game.apk) to the local disk, and then copies the target online game installation file into the file generation container:
docker cp game.apk{DockerID}:/sdcard
wherein the docker cp command is used for data copying between the container and the host.
And the background server finds the target online game installation file copied to the file generation container in a file manager of the android system, the target online game installation file is automatically operated and installed, and the installed target online game can be displayed on a desktop. The background server can automatically run the target online game and perform updating operation to ensure that the current game content is the latest content.
After the update is completed, the backend server may stop the file generation container using the following commands:
docker stop-f{DockerID}
the container contents are then saved as a new image with the following commands:
docker commit{DockerID}-t android-game
wherein the docker commit command is used to create a new image from the container.
In the embodiment of the application, the game container is created through the container mirror image file, and then the game can be run in a mode of creating the game container, so that the time consumption for deploying the online game can be reduced, and the resource overhead can be effectively reduced.
In other optional embodiments, the process of generating the container image file of the target online game is different from the above scheme, and the background server first converts the installation file of the target online game to obtain the image file of the target online game, and then generates the synthetic image file of the target online game together with the image file of the operating system. The method comprises the following specific steps:
step B1, obtaining a mirror image file of the target game according to the installation file of the target game;
b2, generating a synthetic image file of the target game according to the image file of the operating system and the image file of the target game;
and step B3, converting the mirror image file of the target game into a container file format suitable for running in a container to obtain a container mirror image file of the target game.
After the container mirror image file of the target online game is generated, the container mirror image file of the target online game can be stored into a mirror image file library, and the mirror image file library can be a database, centrally stores the container mirror image through the database, and provides functions of uploading, downloading, checking and the like. The distributed storage system may be an NFS file system, and the container image file of the target online game may be stored in the NFS file system.
In an optional embodiment, the user logs out of the game after experiencing the target online game through the terminal device, and when receiving the operation of the user to log out of the game, the terminal device sends a game log-out instruction to the background server. And the background server receives a game quitting instruction sent by the terminal equipment, and informs the target server to stop and delete the game container. Specifically, the background server may send a game container deletion instruction to the target server according to the received game quitting instruction sent by the terminal device, notify the target server to stop the game container of the target online game, and delete the game container.
In this embodiment, when monitoring a game exit instruction of a user, the background server deletes the game container of the target online game after stopping the game container, which can further reduce resource consumption and improve the utilization rate of the cloud game server cluster.
It should be noted that the above embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts in the embodiments are referred to each other.
Based on the same inventive concept, the embodiment of the present application further provides another online game running method, as shown in fig. 7. In one embodiment, the method may be performed by a terminal device, such as terminal device 301 shown in fig. 1. When executed by a terminal device, the method can comprise the following steps:
in step S701, in response to a login operation for the target game, a game screen of the target game acquired from the backend server is displayed.
The game picture of the target game is a game picture in the running process of the target game, which is acquired by a background server from a game container positioned on the target server; the target server is a server which is determined to provide game service for the terminal equipment when the background server receives a game starting request generated by the terminal equipment according to the login operation; the game container is created on the target server based on the container image file of the target game.
Specifically, the terminal device responds to the login operation of the user for the target online game, and displays a target online game picture, such as the picture shown in fig. 3, of the cloud game server transmitted to the terminal device by the background server, so as to realize game login.
Step S702, in response to the control operation for the target game during the game running process, displaying the game screen of the target game after the control operation is executed, which is acquired from the background server.
Specifically, the terminal device responds to the control operation of the user for the target online game in the game running process, displays the game picture of the target online game after the cloud game server transmitted to the terminal device by the background server executes the control operation, and realizes that the target online game actually running on the game container is operated on the terminal device.
The terminal equipment can also respond to the operation of the user for quitting the game and send a game quitting instruction to the background server so that the background server informs the target server to stop and delete the game container.
Based on the same inventive concept, the embodiment of the application also provides a game running device which is arranged in the background server. Because the device is a device corresponding to the game running method applied to the background server in the embodiment of the application, and the principle of the device for solving the problem is similar to that of the method, the implementation of the device can refer to the implementation of the method, and repeated parts are not described again.
Fig. 8 is a schematic structural diagram of a game execution apparatus according to an embodiment of the present application, and as shown in fig. 8, the game execution apparatus includes: a server assignment unit 801, a container creation unit 802, a connection creation unit 803, and a screen transmission unit 804; wherein the content of the first and second substances,
a server allocation unit 801, configured to receive a game starting request for a target game sent by a terminal device, and determine a target server that provides a game service for the terminal device;
a container creating unit 802, configured to create a game container for running the target game on the target server according to the container image file of the target game; the container mirror image file of the target game is generated according to the system file of the operating system and the installation file of the target game; the operating system supports the running of the target game;
a connection creating unit 803 for establishing a connection between the terminal device and the game container;
and the picture transmission unit 804 is used for running the target game through the game container according to the game operation instruction sent by the terminal equipment and returning the game picture in the running process of the target game to the terminal equipment.
Fig. 9 is a schematic structural diagram of another game execution apparatus provided in an embodiment of the present application, and as shown in fig. 9, the game execution apparatus further includes:
an image file generating unit 901, configured to obtain an image file of an operating system according to an acquired system file of the operating system that supports the operation of a target game; and generating a container mirror image file of the target game according to the mirror image file of the operating system and the installation file of the target game.
In an alternative embodiment, the image file generating unit 901 is specifically configured to:
converting the image file of the operating system into a container image file suitable for running in a container;
starting a file generation container according to a container mirror image file of an operating system;
and installing the target game in the file generation container according to the installation file of the target game to obtain a container mirror image file of the target game.
In an optional embodiment, the image file generating unit 901 is specifically configured to:
obtaining a mirror image file of the target game according to the installation file of the target game;
generating a synthetic image file of the target game according to the image file of the operating system and the image file of the target game;
and converting the mirror image file of the target game into a container file format suitable for running in the container to obtain the container mirror image file of the target game.
In an optional embodiment, the game execution apparatus further includes:
and a container releasing unit 902, configured to notify the target server to stop and delete the game container if receiving the game quitting instruction sent by the terminal device.
Based on the same inventive concept, the embodiment of the application also provides another game running device which is arranged in the terminal equipment. Because the device is a device corresponding to the game running method applied to the terminal device in the embodiment of the application, and the principle of solving the problem of the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
Fig. 10 is a schematic structural diagram of another game execution apparatus provided in an embodiment of the present application, and as shown in fig. 10, the game execution apparatus is arranged on a terminal device, and includes:
a game login unit 1001 for presenting a game screen of a target game acquired from a backend server in response to a login operation for the target game; the game picture of the target game is a game picture in the running process of the target game, which is acquired by the background server from the game container positioned on the target server; the target server is a server which is determined to provide game service for the terminal equipment when the background server receives a game starting request generated by the terminal equipment according to the login operation; the game container is created on the target server according to the container image file of the target game;
the game display unit 1002 is configured to display a game screen of the target game after the control operation is executed, the game screen being acquired from the background server, in response to the control operation for the target game during the game running process.
Based on the same inventive concept, the embodiment of the application also provides the electronic equipment. In one embodiment, the electronic device may be a server, such as backend server 100 shown in FIG. 1. In this embodiment, the electronic device may be configured as shown in fig. 11, and include a memory 111, a communication module 113, and one or more processors 112.
A memory 111 for storing computer programs executed by the processor 112. The memory 111 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, programs required for running game functions, and the like; the storage data area may store various game information and operation instruction sets, etc.
The memory 111 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 111 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a hard disk (HDD) or a solid-state drive (SSD), or the memory 701 may be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 111 may be a combination of the above memories.
Processor 112, which may include one or more Central Processing Units (CPUs), a digital processing unit, or the like. And a processor 112, configured to implement the game running method when calling the computer program stored in the memory 111.
The communication module 113 is used for communicating with the terminal device and other servers.
The specific connection medium among the memory 111, the communication module 113, and the processor 112 is not limited in the embodiments of the present application. In fig. 11, the memory 111 and the processor 112 are connected by a bus 114, the bus 114 is represented by a thick line in fig. 11, and the connection manner between other components is merely illustrative and not limited. The bus 114 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.
The memory 111 stores therein a computer storage medium, and the computer storage medium stores therein computer-executable instructions for implementing the game running method according to the embodiment of the present application. The processor 112 is used to execute the game running method described above.
In another embodiment, the electronic device may be a terminal device. In this embodiment, the structure of the electronic device may be as shown in fig. 12, including: a communication component 210, a memory 220, a display unit 230, a camera 240, a sensor 250, an audio circuit 260, a bluetooth module 270, a processor 280, and the like.
The communication component 210 is used to communicate with a server. In some embodiments, a WiFi (Wireless Fidelity) module may be included, the WiFi module belongs to a short-distance Wireless transmission technology, and the electronic device may help the user to send and receive information through the WiFi module.
Memory 220 may be used to store software programs and data. The processor 280 executes various functions of the terminal device 301 and data processing by executing software programs or data stored in the memory 220. The memory 220 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 memory 220 stores an operating system that enables the terminal device 301 to operate. The memory 220 in the present application may store an operating system and various application programs, and may also store codes for executing the game running method according to the embodiment of the present application.
The display unit 230 may also be used to display a Graphical User Interface (GUI) of information input by or provided to the user and various menus of the terminal apparatus 301. Specifically, the display unit 230 may include a display screen 232 disposed on the front surface of the terminal device 301. The display screen 132 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 230 may be used to display a game screen of an online game in the embodiment of the present application.
The display unit 230 may also be used to receive input numeric or character information, generate signal input related to user settings and function control of the terminal device 301, and specifically, the display unit 230 may include a touch screen 231 disposed on the front surface of the terminal device 301, and may collect touch operations by the user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The touch screen 231 may be covered on the display screen 232, or the touch screen 231 and the display screen 232 may be integrated to implement the input and output functions of the terminal device 301, and after the integration, the touch screen may be referred to as a touch display screen for short. In the present application, the display unit 230 may display the application programs and the corresponding operation steps.
The camera 240 may be used to capture still images, and the user may send the images captured by the camera 240 to a background server or other game users via a cloud game client. The number of the cameras 240 may be one or plural. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to a processor 280 for conversion into digital image signals.
The terminal device may further comprise at least one sensor 250, such as an acceleration sensor 251, a distance sensor 252, a fingerprint sensor 253, a temperature sensor 254. The terminal device may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and the like.
The audio circuitry 260, speaker 261, and microphone 262 may provide an audio interface between a user and the terminal device 301. The audio circuit 260 may transmit the electrical signal converted from the received audio data to the speaker 261, and convert the electrical signal into a sound signal for output by the speaker 261. The terminal device 301 may also be provided with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 262 converts the collected sound signals into electrical signals, which are received by the audio circuit 260 and converted into audio data, which are then output to the communication component 210 for transmission to, for example, another terminal device 302, or to the memory 220 for further processing. In this application, the microphone 262 may capture the user's voice.
The bluetooth module 270 is used for information interaction with other bluetooth devices having bluetooth modules through a bluetooth protocol. For example, the terminal device may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) that is also equipped with a bluetooth module through the bluetooth module 270, so as to perform data interaction.
The processor 280 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, performs various functions of the terminal device and processes data by operating or executing software programs stored in the memory 220 and calling data stored in the memory 220. In some embodiments, processor 280 may include one or more processing units; the processor 280 may also integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 280. In the present application, the processor 280 may run an operating system, an application program, a user interface display and a touch response, and a game running method according to the embodiment of the present application. Further, the processor 280 is coupled with the display unit 230.
The embodiment of the application further provides a computer storage medium, wherein computer executable instructions are stored in the computer storage medium and are used for realizing the game running method of any embodiment of the application.
In some possible embodiments, various aspects of the game running method provided by the present application may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of the game running method according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device, for example, the computer device may perform the flow of the game running method of steps S501 to S504 shown in fig. 5.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (8)

1. A method of game play comprising:
receiving a game starting request aiming at a target game sent by a terminal device, and determining a target server for providing game service for the terminal device;
creating a game container for running the target game on the target server according to the container image file of the target game; the container mirror image file of the target game is generated according to a system file of an operating system and an installation file of the target game; the operating system is an operating system supporting the running of the target game;
establishing connection with the game container, and starting the game container;
sending the game container information returned by the game container to the terminal equipment;
receiving a login game request sent by the terminal equipment through the game container information, and acquiring user information in the login game request;
sending the user information to the game container to establish connection between the terminal equipment and the game container;
according to a game operation instruction sent by the terminal equipment, the target game is operated through the game container, and a game picture in the operation process of the target game is returned to the terminal equipment;
if receiving a game quitting instruction sent by the terminal equipment, informing the target server to stop and delete the game container;
the generation process of the container image file of the target game comprises the following steps: obtaining a mirror image file of the operating system according to the obtained system file of the operating system supporting the operation of the target game; and generating a container image file of the target game according to the image file of the operating system and the installation file of the target game.
2. The method of claim 1, wherein generating the container image file of the target game from the image file of the operating system and the installation file of the target game comprises:
converting the image file of the operating system into a container image file suitable for running in a container;
starting a file generation container according to the container mirror image file of the operating system;
and installing the target game in the file generation container according to the installation file of the target game to obtain a container mirror image file of the target game.
3. The method of claim 1, wherein generating the container image file of the target game from the image file of the operating system and the installation file of the target game comprises:
obtaining a mirror image file of the target game according to the installation file of the target game;
generating a synthetic image file of the target game according to the image file of the operating system and the image file of the target game;
and converting the mirror image file of the target game into a container file format suitable for running in a container to obtain a container mirror image file of the target game.
4. A method of game play comprising:
in response to a login operation for a target game, displaying a game picture of the target game acquired from a background server; the game picture of the target game is a game picture in the running process of the target game, which is acquired by the background server from a game container positioned on the target server; the target server is a server which is determined to provide game service for the terminal equipment when the background server receives a game starting request generated by the terminal equipment according to the login operation; the game container is created on the target server by the background server according to the container image file of the target game; after the background server creates the game container, establishing connection with the game container, and starting the game container; sending the game container information returned by the game container to the terminal equipment; receiving a login game request sent by the terminal equipment through the game container information, and obtaining user information in the login game request; sending the user information to the game container to establish connection between the terminal equipment and the game container;
responding to a control operation aiming at a target game in a game running process, and displaying a game picture of the target game after the control operation is executed, wherein the game picture is acquired from a background server;
sending a game quitting instruction to the background server so that the background server informs the target server to stop and delete the game container;
the generation process of the container image file of the target game comprises the following steps: obtaining a mirror image file of the operating system according to the obtained system file of the operating system supporting the operation of the target game; and generating a container mirror image file of the target game according to the mirror image file of the operating system and the installation file of the target game.
5. A game execution apparatus, comprising:
the server allocation unit is used for receiving a game starting request aiming at a target game sent by terminal equipment and determining a target server for providing game service for the terminal equipment;
a container creating unit, configured to create, on the target server, a game container for running the target game according to a container image file of the target game; the container mirror image file of the target game is generated according to a system file of an operating system and an installation file of the target game; the operating system is an operating system supporting the running of the target game; the generation process of the container image file of the target game comprises the following steps: obtaining a mirror image file of the operating system according to the obtained system file of the operating system supporting the running of the target game; generating a container mirror image file of the target game according to the mirror image file of the operating system and the installation file of the target game;
the connection establishing unit is used for establishing connection with the game container and starting the game container; sending the game container information returned by the game container to the terminal equipment; receiving a login game request sent by the terminal equipment through the game container information, and obtaining user information in the login game request; sending the user information to the game container to establish connection between the terminal equipment and the game container;
the picture transmission unit is used for running the target game through the game container according to a game operation instruction sent by the terminal equipment and returning a game picture in the running process of the target game to the terminal equipment;
and the container release unit is used for informing the target server to stop and delete the game container if receiving the game quitting instruction sent by the terminal equipment.
6. A game play apparatus, comprising:
the game login unit is used for responding to login operation of a target game and displaying a game picture of the target game acquired from the background server; the game picture of the target game is a game picture in the running process of the target game, which is acquired by the background server from a game container positioned on the target server; the target server is a server which is determined to provide game service for the terminal equipment when the background server receives a game starting request generated by the terminal equipment according to the login operation; the game container is created on the target server according to the container image file of the target game; after the background server creates the game container, establishing connection with the game container, and starting the game container; sending the game container information returned by the game container to the terminal equipment; receiving a login game request sent by the terminal equipment through the game container information, and obtaining user information in the login game request; sending the user information to the game container to establish connection between the terminal equipment and the game container; the generation process of the container image file of the target game comprises the following steps: obtaining a mirror image file of the operating system according to the obtained system file of the operating system supporting the running of the target game; generating a container mirror image file of the target game according to the mirror image file of the operating system and the installation file of the target game;
the game display unit is used for responding to the control operation aiming at the target game in the game running process and displaying the game picture of the target game after the control operation is executed and acquired from the background server; and sending a game quitting instruction to the background server so that the background server informs the target server to stop and delete the game container.
7. A computer-readable storage medium having a computer program stored therein, the computer program characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 3 or claim 4.
8. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, the computer program, when executed by the processor, implementing the method of any one of claims 1 to 3 or claim 4.
CN202011098091.9A 2020-10-14 2020-10-14 Game running method and device, storage medium and electronic equipment Active CN112044079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011098091.9A CN112044079B (en) 2020-10-14 2020-10-14 Game running method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011098091.9A CN112044079B (en) 2020-10-14 2020-10-14 Game running method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112044079A CN112044079A (en) 2020-12-08
CN112044079B true CN112044079B (en) 2023-02-07

Family

ID=73606160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011098091.9A Active CN112044079B (en) 2020-10-14 2020-10-14 Game running method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112044079B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112619162B (en) * 2020-12-22 2023-04-07 上海米哈游天命科技有限公司 Resource object management method and device, electronic equipment and storage medium
CN112691369A (en) * 2020-12-28 2021-04-23 维沃移动通信有限公司 Display method, display device, electronic equipment and storage medium
CN112791413B (en) * 2021-02-04 2024-02-23 网易(杭州)网络有限公司 Game prop data processing method and device, processor and electronic device
CN112843680A (en) * 2021-03-04 2021-05-28 腾讯科技(深圳)有限公司 Picture display method and device, terminal equipment and storage medium
CN112891952A (en) * 2021-03-04 2021-06-04 广州虎牙科技有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN113413592B (en) * 2021-06-16 2024-03-01 北京达佳互联信息技术有限公司 Cloud game acceleration starting method and device and electronic equipment
CN113710339A (en) * 2021-08-25 2021-11-26 商汤国际私人有限公司 Application configuration method, device and equipment and computer storage medium
CN114100117B (en) * 2021-11-30 2023-07-25 腾讯科技(深圳)有限公司 Game loading method, game loading device, computer equipment and storage medium
CN115758334A (en) * 2023-01-06 2023-03-07 天津卓朗昆仑云软件技术有限公司 Cloud application access method and device, electronic equipment and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9462081B2 (en) * 2012-04-17 2016-10-04 Igt Cloud based virtual environment validation
CN103023872B (en) * 2012-11-16 2016-01-06 杭州顺网科技股份有限公司 A kind of cloud game service platform
CN105763602B (en) * 2016-01-29 2017-12-01 腾讯科技(深圳)有限公司 A kind of method of data request processing, server and system
CN106302434B (en) * 2016-08-11 2022-01-14 腾讯科技(深圳)有限公司 Server adaptation method, device and system
CN108568109B (en) * 2018-04-25 2021-08-06 咪咕互动娱乐有限公司 Game control method, device and storage medium
CN110704156A (en) * 2019-08-16 2020-01-17 北京奇艺世纪科技有限公司 Docker mirror image construction method and device
CN111084983B (en) * 2019-11-25 2021-12-14 腾讯科技(深圳)有限公司 Cloud game service method, device, equipment and storage medium
CN211659246U (en) * 2020-01-08 2020-10-13 武汉勾勾互娱科技有限公司 Cloud game system
CN111481921B (en) * 2020-04-10 2023-06-13 网易(杭州)网络有限公司 Scheduling method, device, equipment and storage medium of cloud game instance
CN111643889A (en) * 2020-05-06 2020-09-11 腾讯科技(深圳)有限公司 Game control method, device, storage medium and electronic equipment
CN111596932B (en) * 2020-06-22 2021-03-02 腾讯科技(深圳)有限公司 Mirror image file generation method and device and computer readable storage medium
CN111729293B (en) * 2020-08-28 2020-12-22 腾讯科技(深圳)有限公司 Data processing method, device and storage medium

Also Published As

Publication number Publication date
CN112044079A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN112044079B (en) Game running method and device, storage medium and electronic equipment
US20210081232A1 (en) Mobile Mini-cloud system enabling user subscription to cloud service
AU2019233201A1 (en) Resource configuration method and apparatus, terminal, and storage medium
US11394875B2 (en) Content capture service
US20160154659A9 (en) Mega Data Center Using Mini-cloud Host in Residential Environment
US20130311566A1 (en) Method and apparatus for creating rule-based interaction of portable client devices at a live event
US20060068911A1 (en) Game console communication with a computer
CN111643889A (en) Game control method, device, storage medium and electronic equipment
US9063770B2 (en) System and method for mobile platform virtualization
KR102385081B1 (en) Method, system, and non-transitory computer readable record medium for sharing information in chat room using application added to platform in messenger
CN109194972B (en) Live stream acquisition method and device, computer equipment and storage medium
CN111045781B (en) Method, device and storage medium for creating mirror image by cloud platform
JP2020009426A (en) Method, system, and non-transitory computer-readable recording medium for providing copied message list
KR20140106838A (en) Cloud service provide apparatus and method using game flatform based on streaming
JP2023517367A (en) Virtual scene data processing method, device, electronic device and program
CN113542379A (en) Application program management method and device, electronic equipment and storage medium
CN112044078A (en) Access method, device, equipment and storage medium for virtual scene application
CN114998543A (en) Construction method and system of digital twin exhibition hall, computer equipment and storage medium
KR101814747B1 (en) Method for providing image authoring based on cloud computing, and service apparatus therefor
CN113742716A (en) Code running method, device, electronic equipment, storage medium and program product
JP2011099881A (en) Display control method, display control program, and display
US20230074714A1 (en) Optimization of Resource Usage in Cross-Reality Sessions
CN114390300B (en) Live broadcast control method and device, electronic equipment and computer storage medium
WO2024055402A1 (en) Application running processing method and apparatus, electronic device, and medium
EP4191401A1 (en) Application installation method based on cloud phone, and cloud platform and related device

Legal Events

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