Starting method and device of game application and computer equipment

文档序号:1527072 发布日期:2020-02-14 浏览:30次 中文

阅读说明:本技术 游戏应用的启动方法、装置以及计算机设备 (Starting method and device of game application and computer equipment ) 是由 林俊洪 叶炳宏 王玉 于 2019-10-29 设计创作,主要内容包括:本发明提供了一种游戏应用的启动方法、装置以及计算机设备,涉及计算机技术领域,该方法包括:响应针对所述游戏应用的启动操作,加载至少一个第一资源图像集和至少一个第二资源图像集,以在所述终端的显示屏上渲染一启动界面;在所述启动界面的每个所述固定层分别固定显示相应的所述第一资源图像集;在所述启动界面的每个所述动态层分别动态显示相应的所述第二资源图像集,解决在启动游戏应用显示启动动画时,资源消耗过大的问题,在保证动态效果实现的前提下,降低资源占用,进而降低有游戏应用启动的影响。(The invention provides a starting method and a starting device of game application and computer equipment, and relates to the technical field of computers, wherein the method comprises the following steps: loading at least one first resource image set and at least one second resource image set in response to a starting operation for the game application so as to render a starting interface on a display screen of the terminal; respectively and fixedly displaying the corresponding first resource image set on each fixed layer of the starting interface; and dynamically displaying the corresponding second resource image sets on each dynamic layer of the starting interface respectively, solving the problem of overlarge resource consumption when starting the game application to display the starting animation, reducing the resource occupation on the premise of ensuring the realization of the dynamic effect, and further reducing the influence of the starting of the game application.)

1. A method for starting a game application, the method being applied to a game application running on a terminal, the method comprising:

loading at least one first resource image set and at least one second resource image set in response to a launching operation for the game application to render a launching interface on a display screen of the terminal, wherein the launching interface comprises at least one fixed layer and at least one dynamic layer, each first resource image set corresponds to one fixed layer, and each second resource image set corresponds to one dynamic layer;

respectively and fixedly displaying the corresponding first resource image set on each fixed layer of the starting interface;

and dynamically displaying the corresponding second resource image set on each dynamic layer of the starting interface respectively.

2. The method of claim 1, wherein the gaming application is configured with a plurality of resource image groups, each resource image group configured with a time window, each resource image group comprising a resource image set corresponding to at least one of the at least one fixed layer and the at least one dynamic layer;

in response to a start operation for the gaming application, the step of loading at least one first resource image set and at least one second resource image set includes:

determining a starting time of the game application in response to a starting operation for the game application;

and loading a resource image group corresponding to the time window where the starting time is located.

3. The method according to claim 1, wherein at least one of the at least one dynamic layer is a rotation layer, a second resource image set corresponding to the rotation layer includes a rotation resource image, and the step of dynamically displaying the corresponding second resource image set at each dynamic layer of the launching interface comprises:

displaying the rotated resource image at the rotated layer based on current screen coordinates of the rotated layer in the launch interface;

after a preset first time interval, rotating the rotating layer by a preset angle to obtain a new screen coordinate;

displaying the rotated resource image at the rotation layer based on the new screen coordinates.

4. The method of claim 3, wherein the rotation layer is configured with properties of a brush, the properties of the brush including a position parameter of the brush and an angle parameter of the brush, the brush being used to draw the rotated resource image in the rotation layer; a step of rotating the dynamic layer by a preset angle, comprising:

translating the position parameter of the brush from the original position to a central symmetrical position;

rotating the angle parameter of the painting brush by taking the central symmetrical point as a center according to the preset angle;

and translating the position parameter of the brush from the central symmetry point to the original position.

5. The method of claim 1, wherein at least one of the at least one dynamic layer is a sequence of frame layers, and wherein a second set of resource images corresponding to the sequence of frame layers comprises a first sequence of frames; the step of dynamically displaying the corresponding second resource image set at each dynamic layer of the launching interface comprises:

and sequentially displaying the images in the first sequence of frames in the sequence frame layer.

6. The method of claim 5, wherein the step of sequentially displaying the images in the first sequence of frames at the sequence frame level comprises:

and sequentially or randomly displaying the images in the first sequence of frames in the sequence frame layer.

7. The method of claim 5, wherein the step of sequentially displaying the images in the first sequence of frames at the sequence frame level comprises:

interpolating between any two continuous frames of images of the first sequence frame to obtain a second sequence frame;

and sequentially or randomly displaying the images in the second sequence of frames in the sequence frame layer.

8. The method according to any one of claims 1 to 7, wherein at least one of the at least one fixed layer is an interface layer, the interface layer is superimposed on the dynamic layer, a first resource image set corresponding to the interface layer includes a prefabricated control, and the interface layer is preset with a display area of the prefabricated control; the step of respectively and fixedly displaying the corresponding first resource image set on each fixed layer of the starting interface comprises the following steps:

and fixedly displaying the prefabricated control in the display area of the prefabricated control.

9. The method of claim 8, wherein the pre-made control comprises a progress control, and wherein a display area of the progress control is configured with a display area of a progress bar; the step of fixedly displaying the prefabricated control in the display area of the prefabricated control comprises the following steps:

and displaying the progress bar according to the loading progress of the game application in the display area of the progress bar.

10. The method of claim 8, wherein the pre-formed controls comprise controls of a browser.

11. The method of claim 10, wherein the launch interface further comprises a web page layer, wherein the web page layer is superimposed on the interface layer, wherein the web page layer comprises a display area of information, and wherein the display area of information corresponds to a display area of a control of the browser; the method further comprises the following steps:

acquiring data of at least one information page according to at least one preset Uniform Resource Locator (URL) corresponding to a display area of the information;

and sequentially displaying the at least one information page in the information display area according to the rendering rule corresponding to the browser.

12. The method of claim 1, wherein at least one of the at least one fixed layer is a background layer, and the background layer corresponding to the second resource image set comprises a background map, and the background layer is used for displaying the background map; wherein the at least one dynamic layer is superimposed on the background layer.

13. An apparatus for starting a game application, the apparatus being applied to a game application running on a terminal, the apparatus comprising:

a loading module, configured to load at least one first resource image set and at least one second resource image set in response to a start operation for the game application to render a start interface on a display screen of the terminal, where the start interface includes at least one fixed layer and at least one dynamic layer, each first resource image set corresponds to one fixed layer, and each second resource image set corresponds to one dynamic layer;

the fixed display module is used for fixedly displaying the corresponding first resource image set on each fixed layer of the starting interface respectively;

and the dynamic display module is used for dynamically displaying the corresponding second resource image set on each dynamic layer of the starting interface respectively.

14. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the method of launching a gaming application according to any of claims 1 to 12.

15. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for starting a game application according to any one of claims 1 to 12.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for starting a game application, and a computer device.

Background

For the starting of a traditional large-scale game application, on one hand, a longer loading time is needed due to the fact that more resources need to be loaded, and on the other hand, the game application can issue updates periodically, the updated content of the application needs to be synchronized before the application is started, and the process also needs a longer time. In order to avoid waiting for a long time, a sequence frame animation graph is usually adopted to show some starting animations while the game application is started, so that the user is prevented from feeling stuck and better user experience is obtained.

However, this method also has the problem of excessive resource consumption, and may cause the presentation of starting card pause caused by the presentation of animation for different hardware platforms.

Disclosure of Invention

The application aims to provide a starting method and device of a game application and computer equipment, so as to solve the problem of excessive resource consumption when a game application is started to display a starting animation.

In a first aspect, a method for starting a game application is provided. The method is applied to a game starter, and comprises the following steps: loading at least one first resource image set and at least one second resource image set in response to a launching operation for the game application to render a launching interface on a display screen of the terminal, wherein the launching interface comprises at least one fixed layer and at least one dynamic layer, each first resource image set corresponds to one fixed layer, and each second resource image set corresponds to one dynamic layer; respectively and fixedly displaying the corresponding first resource image set on each fixed layer of the starting interface; and dynamically displaying the corresponding second resource image set on each dynamic layer of the starting interface respectively.

In an alternative implementation, the game application is configured with a plurality of resource image groups, each of the resource image groups is configured with a time window, and each of the resource image groups comprises a resource image set corresponding to at least one of the at least one fixed layer and the at least one dynamic layer; in response to a start operation for the gaming application, the step of loading at least one first resource image set and at least one second resource image set includes: determining a starting time of the game application in response to a starting operation for the game application; and loading a resource image group corresponding to the time window where the starting time is located.

In another optional implementation, at least one of the at least one dynamic layer is a rotation layer, the second resource image set corresponding to the rotation layer includes a rotation resource image, and the step of dynamically displaying the corresponding second resource image set at each dynamic layer of the launching interface includes: displaying the rotated resource image at the rotated layer based on current screen coordinates of the rotated layer in the launch interface; after a preset first time interval, rotating the rotating layer by a preset angle to obtain a new screen coordinate; displaying the rotated resource image at the rotation layer based on the new screen coordinates.

In another optional implementation, the spin layer is configured with properties of a brush, the properties of the brush including a position parameter of the brush and an angle parameter of the brush, the brush to draw the spin-asset image in the spin layer; a step of rotating the dynamic layer by a preset angle, comprising: translating the position parameter of the brush from the original position to a central symmetrical position; rotating the angle parameter of the painting brush by taking the central symmetrical point as a center according to the preset angle; and translating the position parameter of the brush from the central symmetry point to the original position.

In another alternative implementation, at least one of the at least one dynamic layer is a sequence frame layer, and the second resource image set corresponding to the sequence frame layer includes the first sequence frame; the step of dynamically displaying the corresponding second resource image set at each dynamic layer of the launching interface comprises: and sequentially displaying the images in the first sequence of frames in the sequence frame layer.

In another alternative implementation, the step of sequentially displaying the images in the first sequence of frames at the sequence frame layer includes: and sequentially or randomly displaying the images in the first sequence of frames in the sequence frame layer.

In another alternative implementation, the step of sequentially displaying the images in the first sequence of frames at the sequence frame layer includes: carrying out interpolation in any two continuous frame images of the first sequence frame to obtain a second sequence frame; and sequentially or randomly displaying the images in the second sequence of frames in the sequence frame layer.

In another optional implementation, at least one of the at least one fixed layer is an interface layer, the interface layer is superimposed on the dynamic layer, the first resource image set corresponding to the interface layer includes a prefabricated control, and a display area of the prefabricated control is preset in the interface layer; the step of respectively and fixedly displaying the corresponding first resource image set on each fixed layer of the starting interface comprises the following steps: and fixedly displaying the prefabricated control in the display area of the prefabricated control.

In another optional implementation, the prefabricated control comprises a progress control, and a display area of the progress control is configured with a display area of a progress bar; the step of fixedly displaying the prefabricated control in the display area of the prefabricated control comprises the following steps: and displaying the progress bar according to the loading progress of the game application in the display area of the progress bar.

In another alternative implementation, the pre-formed controls include controls of a browser.

In another optional implementation, the launch interface further includes a web page layer, the web page layer is superimposed on the interface layer, the web page layer includes a display area of information, and the display area of the information corresponds to a display area of a control of the browser; the method further comprises the following steps: acquiring data of at least one information page according to at least one preset Uniform Resource Locator (URL) corresponding to a display area of the information; and sequentially displaying the at least one information page in the information display area according to the rendering rule corresponding to the browser.

In another optional implementation, at least one of the at least one fixed layer is a background layer, and the corresponding second resource image set of the background layer includes a background image, and the background layer is used for displaying the background image; wherein the at least one dynamic layer is superimposed on the background layer.

In a second aspect, a starting apparatus for a game application is provided. The device is applied to a game starter, and comprises: a loading module, configured to load at least one first resource image set and at least one second resource image set in response to a start operation for the game application to render a start interface on a display screen of the terminal, where the start interface includes at least one fixed layer and at least one dynamic layer, each first resource image set corresponds to one fixed layer, and each second resource image set corresponds to one dynamic layer; the fixed display module is used for fixedly displaying the corresponding first resource image set on each fixed layer of the starting interface respectively; and the dynamic display module dynamically displays the corresponding second resource image set on each dynamic layer of the starting interface respectively.

In an alternative implementation, the gaming application is configured with a plurality of resource image groups, each of the resource image groups configured with a time window, each of the resource image groups including a set of resource images corresponding to at least one of the at least one fixed layer and the at least one dynamic layer; the loading module is specifically configured to: determining a starting time of the game application in response to a starting operation for the game application; and loading a resource image group corresponding to the time window where the starting time is located.

In another optional implementation, at least one of the at least one dynamic layer is a rotation layer, the second resource image set corresponding to the rotation layer includes rotation resource images, and the dynamic display module is specifically configured to: displaying the rotated resource image at the rotated layer based on current screen coordinates of the rotated layer in the launch interface; after a preset first time interval, rotating the rotating layer by a preset angle to obtain a new screen coordinate; displaying the rotated resource image at the rotation layer based on the new screen coordinates.

In another optional implementation, the spin layer is configured with properties of a brush, the properties of the brush including a position parameter of the brush and an angle parameter of the brush, the brush to draw the spin-asset image in the spin layer; the dynamic display module is specifically configured to: translating the position parameter of the brush from the original position to a central symmetrical position; rotating the angle parameter of the painting brush by taking the central symmetrical point as a center according to the preset angle; and translating the position parameter of the brush from the central symmetry point to the original position.

In another alternative implementation, at least one of the at least one dynamic layer is a sequence frame layer, and the second resource image set corresponding to the sequence frame layer includes the first sequence frame; the dynamic display module is specifically configured to: and sequentially displaying the images in the first sequence of frames in the sequence frame layer.

In another optional implementation, the dynamic display module is specifically configured to: and sequentially or randomly displaying the images in the first sequence of frames in the sequence frame layer.

In another optional implementation, the dynamic display module is specifically configured to: interpolating between any two continuous frames of images of the first sequence frame to obtain a second sequence frame;

and sequentially or randomly displaying the images in the second sequence of frames in the sequence frame layer.

In another optional implementation, at least one of the at least one fixed layer is an interface layer, the interface layer is superimposed on the dynamic layer, the first resource image set corresponding to the interface layer includes a prefabricated control, and a display area of the prefabricated control is preset in the interface layer; the fixed display module is specifically configured to: and fixedly displaying the prefabricated control in the display area of the prefabricated control.

In another optional implementation, the prefabricated control comprises a progress control, and a display area of the progress control is configured with a display area of a progress bar; the fixed display module is specifically configured to: and displaying the progress bar according to the loading progress of the game application in the display area of the progress bar.

In another alternative implementation, the pre-formed controls include controls of a browser.

In another optional implementation, the launch interface further includes a web page layer, the web page layer is superimposed on the interface layer, the web page layer includes a display area of information, and the display area of the information corresponds to a display area of a control of the browser; the device further comprises: the acquisition module is used for acquiring data of at least one information page according to at least one preset Uniform Resource Locator (URL) corresponding to the display area of the information; and the dynamic display module is further used for sequentially displaying the at least one information page in the display area of the information according to the rendering rule corresponding to the browser.

In another optional implementation, at least one of the at least one fixed layer is a background layer, and the corresponding second resource image set of the background layer includes a background image, and the background layer is used for displaying the background image; wherein the at least one dynamic layer is superimposed on the background layer.

In a third aspect, an embodiment of the present application further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the method of launching a gaming application as described in the first aspect above.

In a fourth aspect, this application embodiment further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to execute the steps of the starting method of the game application according to the first aspect.

The embodiment of the application brings the following beneficial effects:

the embodiment of the application provides a starting method and device of a game application and computer equipment. The resource image to be displayed can be divided into a resource image of a fixed layer and a resource image of a dynamic layer, the resource image of the fixed layer is fixed and unchanged in the display process, and the resource image of the dynamic layer can be dynamically displayed, so that the animation effect is realized. The resource occupation of a single image can be reduced by dividing the resource image, and the resource required by generating a dynamic effect can be reduced by only dynamically displaying part of the resource image, so that the resource occupation is reduced on the premise of ensuring the realization of the dynamic effect, the influence of starting of the game application is reduced, the possibility of the game application being stuck in the starting process is reduced, and the user experience is improved.

Drawings

In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.

Fig. 1 is a schematic flowchart of a method for starting a game application according to an embodiment of the present disclosure;

FIG. 2 is a structural example of a graphical user interface of a game launcher of the method for launching a game application according to the embodiment of the present application;

FIG. 3 is a structural example of another graphical user interface of a game launcher of the launching method of the game application provided in the embodiment of the present application;

FIG. 4A is a structural example of another graphical user interface of a game launcher of the launching method of the game application provided in the embodiment of the present application;

FIG. 4B is a structural example of another graphical user interface of a game launcher of the launching method of the game application provided in the embodiment of the present application;

FIG. 5 is a structural example of another graphical user interface of a game launcher of the launching method of the game application provided in the embodiment of the present application;

FIG. 6A is a structural example of another graphical user interface of a game launcher of the launching method of the game application provided in the embodiment of the present application;

fig. 6B is another exemplary structure of a start page of the start method of the game application according to the embodiment of the present application;

fig. 7 is a schematic structural diagram of a starting apparatus for a game application according to an embodiment of the present disclosure;

fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.

Detailed Description

To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The terms "comprising" and "having," and any variations thereof, as referred to in the embodiments of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

At present, when a game application is started, due to the fact that a large number of files need to be loaded when the game application is started, starting time is too long, a user can feel stuck, and user experience is not friendly.

Before the proposal of the application, the common way is to improve the user experience by displaying the starting animation. But instead. In this manner, since the resources required for starting the animation are also very large, the start of the program itself may be adversely affected, for example, by jamming.

Based on this, the embodiment of the application provides a starting method and device of a game application and a computer device, which can be applied to a mobile phone, a tablet computer, a game machine and the like, for example, a device which can realize human-computer interaction and has a touch function. The touch terminal comprises a touch screen and a processor, wherein the touch screen is used for presenting a starting page and receiving instruction operation aiming at the starting page.

In order to facilitate understanding of the present embodiment, a method, an apparatus, and a computer device for starting a game application provided in the embodiments of the present application are described in detail in conjunction with a game scene.

Fig. 1 is a schematic flowchart of a method for starting a game application according to an embodiment of the present application. The method is applied to a game application running on a terminal. As shown in connection with fig. 1, the method includes:

s110, responding to the starting operation aiming at the game application, and loading at least one first resource image set and at least one second resource image set so as to render a starting interface on the display screen of the terminal.

Wherein the launch interface includes at least one fixed layer and at least one dynamic layer, each first resource image set corresponding to one fixed layer, and each second resource image set corresponding to one dynamic layer.

The resource image sets corresponding to different layers may be stored as files in different folders, or different files in the same folder. At the time of loading, loading may be performed separately. Each first resource image set or second resource image set may include one or more resource images, and the resource images may be transparent, semi-transparent, or opaque images, which may be determined according to actual display requirements. For example, the asset image may be a semi-transparent image in the PNG format.

Wherein the start-up operation for the game application may comprise a plurality of forms. As one example, a launch operation triggered for the present gaming application at an image user page of other gaming applications may be provided, for example, gaming applications of some gaming platforms, social platforms, and so forth may provide a program jump function, which may be implemented through a jump control. As another example, the starting operation of the game application may be a scene switching operation, for example, for the game application, when a game scene is switched, a scene file corresponding to the switched game scene needs to be loaded, and this process may also be regarded as a starting operation for the game application. As another example, a start operation triggered by an icon of a desktop game application for an operating system may also be performed, for example, for a touch terminal, the start operation may be an operation in which a touch point is left on the icon of the game application (for example, an "UP" operation for the icon of the game application).

After receiving the start operation for the game application, the start interface of the game launcher may be displayed before the file loading for the game application is completed by the start operation. Before displaying the starting interface of the game starter, the resource images required by the starting interface, namely at least one first resource image set and at least one second resource image set, can be loaded.

And S120, respectively and fixedly displaying the corresponding first resource image set on each fixed layer of the starting interface.

The resource images included in the first resource image set may be composed of elements that do not change in a plurality of frames of images that are dynamically displayed, for example, the elements corresponding to the fixed layer may include one or more items of a background, a control, a web page, a progress bar, and the like, and the first resource image set may include one or more images, and each image corresponds to one or more elements.

Wherein the at least one fixed layer may be used to display the same or different first resource image sets, respectively. The fixed layer of each layer can be superposed on the lower layer or the upper layer of the dynamic layer. For the resource image superimposed on the upper fixed layer of the dynamic layer, the transparency is set, so that the influence on the display of the resource image on the dynamic layer can be reduced, and the aesthetic feeling of the whole image user interface is improved.

And S130, dynamically displaying the corresponding second resource image set on each dynamic layer of the starting interface respectively.

The resource images in the second resource image set can be composed of elements which can change in a plurality of frames of images which are dynamically displayed. For example, the elements corresponding to the dynamic layer may include one or more of a rotation element, a dynamic special effect element, and the like dynamic display element, and the second resource image set may include one or more images, each image corresponding to one or more elements. For example, the element that changes may show special effects for rivers, birds, clouds, fog, rain, or other characters.

Wherein the at least one dynamic layer may display the same or different second resource image sets in the same or different dynamic display manners, respectively. Each dynamic layer may be superimposed on a lower or upper layer of the fixed layer. For the resource image of the upper fixed layer superposed on the fixed layer, the influence on the display of the resource image of the fixed layer can be reduced by setting the transparency, so that the aesthetic feeling of the whole image user interface is improved.

Through the embodiment of the application, the resource image to be displayed can be divided into the resource image set of the fixed layer and the resource image set of the dynamic layer, the resource image of the fixed layer is fixed and unchanged in the display process, and the resource image of the dynamic layer can be dynamically displayed to achieve an animation effect. The resource occupation of a single image can be reduced by dividing the resource image, and the resource required by generating a dynamic effect can be reduced by only dynamically displaying part of the resource image, so that the resource occupation is reduced on the premise of ensuring the realization of the dynamic effect, the influence of starting of the game application is reduced, the possibility of the game application being stuck in the starting process is reduced, and the user experience is improved.

In some embodiments, different resource images may be loaded depending on when the gaming application is launched, for example, a resource image set corresponding to at least one of the at least one fixed layer and the at least one dynamic layer may include day and night two sets of styles to provide a distinct feel to the user that can attract the user's vision. Based on this, the gaming application is configured with a plurality of resource image groups, each resource image group configured with a time window, each resource image group comprising a set of resource images corresponding to at least one of the at least one fixed layer and the at least one dynamic layer; the step S110 may specifically include:

step 1.1), responding to starting operation aiming at the game application, and determining starting time of the game application;

and step 1.2), loading a target resource image group corresponding to the time window of the starting time.

For step 1.2) above, resource image groups corresponding to different time windows may be stored in different folders. When the game application is started, reading the resource image group in the folder corresponding to the time window to which the game application belongs when the game application is started according to the starting time. For example, "res" may be the name of a folder whose time window is day, and "res _ night" may be the name of a folder whose time window is night.

Wherein, different time windows can be divided according to the day and the dark day, and can also be divided according to solar terms, festivals, seasons and the like.

Wherein, a plurality of groups of resource image groups can be configured for some or all layers of the starting interface. For the case that a plurality of groups of resource image groups are configured for a part of layers in the start interface, when loading, a resource image set corresponding to a layer not provided with a plurality of groups of resource image groups also needs to be loaded.

Through the embodiment of the application, different resource images can be displayed when the game application is started at different time, the display effect is better, and the user experience is better.

Certainly, in some embodiments, information such as weather can be further gathered, a resource image which is consistent with weather at that time is displayed, the user substitution feeling is stronger, and the user experience is better. For example, each of the resource image groups may be configured with weather information, which may include cloudy, sunny, rain, snow, wind, and the like. Responding to the starting operation aiming at the game application, determining the corresponding weather information when the game application is started, and loading the resource image group corresponding to the weather information.

Currently, each of the resource image group images may be configured with weather information and a time window. The resource image group corresponding to the time window and the weather information can be loaded.

In some embodiments, the at least one dynamic layer may include a rotation layer and/or a sequence frame layer. Discussed in detail below with respect to specific examples.

As an example, one or more of the at least one dynamic layer is a rotation layer, and the second resource image set corresponding to each rotation layer includes a rotation resource image, based on which the step S120 specifically includes:

step 2.1), displaying a spinning resource image on a spinning layer based on the current screen coordinate of the spinning layer in a graphical user interface;

step 2.2), after a preset first time interval, rotating the rotating layer by a preset angle to obtain a new screen coordinate;

and 2.3) displaying the rotating resource image on the rotating layer based on the new screen coordinate.

For the step 2.1) -the step 2.3), the rotating resource image displayed on the rotating layer is rotated by a preset angle when a preset time interval passes by firstly displaying the rotating resource image on the rotating layer, and the displayed rotating resource image displayed on the rotating layer is rotated again when the preset time interval passes again; and performing rotation operation once every preset time interval until the game application is started.

For rotation of the rotated resource image, this may be achieved by rotation of the rotation layer. As one example, the process of displaying an image of a resource at a rotation level may be implemented by drawing with a brush. For example, the spin layer is configured with properties of a brush including a position parameter of the brush and an angle parameter of the brush used to draw the rotated resource image in the spin layer; the step 2.2) can be specifically realized by the following steps:

step 3.1), translating the position parameters of the paintbrush of the rotating layer from the original position to the central symmetrical position according to a preset first time interval;

step 3.2), rotating the angle parameters of the painting brush by taking the central symmetry point as the center according to a preset angle;

and 3.3) translating the position parameters of the brush from the central symmetrical point to the original position.

For the above step 3.1) and step 3.2), the preset first time interval and the preset angle may be set according to actual needs, for example, a rotation frequency slightly faster than the recognition frame rate (24 frames per second) may be adopted to translate and rotate the pen, for example, the rotation frequency may be 24 frames per second, the preset time interval may be "1 second/24", and the preset rotation angle may be an angle that is not easily perceived by the user in cooperation with the preset time interval.

For the above step 3.1) -step 3.2), the resource image may be displayed through a Graphics device interface (Graphics device interface +, GDI +), and the rotated resource image may be a centrosymmetric image, at this time, a drawing pen provided by GDI + may be translated to a central symmetric point through a TranslateTransform through geometric transformation, and rotated by a preset angle through a rotatransform, and then the drawing pen is translated back to the origin to draw the rotated resource image, so that the effect of visual rotation may be achieved.

Through the embodiment of the application, the dynamic effect can be realized only through operations such as rotation of the same image, the resource occupation is less, and the user experience is better.

As another example, at least one of the at least one dynamic layer is a sequence of frame layers, the second resource image set corresponding to each sequence of frame layers comprising the first sequence of frames; based on this, the step S120 may specifically include: and sequentially displaying the images in the first sequence frame in the sequence frame layer.

One or more first sequence frames may be included, and each effect may correspond to one or more first sequence frames, respectively. When displaying, one or more first sequence frames corresponding to each effect can be displayed in sequence according to the effect. For example, the cloud layer variation may be implemented by a sequence frame layer. The cloud layer images in different states can be determined to serve as the resource images of the sequence frame layer, namely, the first sequence frame is formed, and when the cloud layer images are displayed, the cloud layer images can be sequentially displayed to form a dynamic cloud-turning effect.

The manner of sequentially displaying the first sequence of frames may include multiple manners. For example, the images in the first sequence of frames are displayed sequentially or randomly at the sequence frame level.

For another example, the step of sequentially displaying the images in the first sequence frame in the sequence frame layer may specifically include:

step 4.1), carrying out interpolation between any two continuous frame images of the first sequence frame to obtain a second sequence frame;

and 4.2) sequentially or randomly displaying the images in the second sequence frame in the sequence frame layer.

For example, the cloud layer variation may be implemented by a sequence frame layer. When displaying, on the basis of the cloud layer image with the part of continuous change, a specified number of images can be inserted between every two continuous frames of images to obtain a second sequence frame, and the inserted images can be obtained by performing difference calculation according to the two continuous frames of images. And playing the second sequence of frames in sequence to form a dynamic cloud-turning effect.

Through the embodiment of the application, the resource amount used by the sequence frame layer is greatly reduced compared with that of a full-image sequence frame, and the sequence frame layer can be superposed on the topmost layer of the dynamic layer, so that the rendering effect is better.

As another example, the at least one dynamic layer may include at least one rotation layer and at least one sequence frame layer. In this case, the step S120 may specifically include the steps corresponding to the rotation layer and the sequence frame layer.

In some embodiments, at least one of the at least one fixed layer is an interface layer, which may be superimposed on the dynamic layer, and the first resource image set corresponding to each interface layer may include a pre-formed control, which is pre-formed with a display area of the pre-formed control. Based on this, the step S120 may specifically include the following steps:

and 5.1) fixedly displaying the prefabricated control in the display area of the prefabricated control.

And the user can operate the prefabricated control, so that the function corresponding to the prefabricated control is triggered. For example, the pre-formed control can be a registered account jump control, a login jump control, an official home jump control, or a setup jump control, among others. The terminal responds to the operation of the registered account number jump control, the login jump control, the official home page jump control or the setting jump control, and the like, and can correspondingly display an account number registered page, a login page, an official home page or a setting page, and the like. In a specific implementation, the prefabricated control can be configured according to actual needs, for example, the prefabricated control can further include a control for information and the like.

As an example, the prefabricated control may be a progress control, and a display area of the progress control is configured with a display area of a progress bar; the step S120 may further include the following steps: and displaying the progress bar according to the loading progress of the game application in a display area of the progress bar.

The progress bar is mainly used for indicating the loading progress of the game application, and the loading progress of the game application may refer to the loading progress of a scene file of a game scene to be switched to, the loading progress of a client of the game application, and the like. The progress bar may include a variety of implementations, for example, the progress bar may be used to display the ratio of the number of loaded files to the total number of files, or the percentage of the number of loaded files to the total number of files, or the ratio of the loaded time to the estimated load time, etc. The shape of the progress bar is not limited to a bar shape, and may be a circle or other shape or pattern capable of showing the loading progress. For another example, the progress bar can make the image displayed in the graphical user interface of the whole game launcher have better kneading feeling, more beautiful appearance and better user experience by setting the transparency.

As another example, the pre-formed control comprises a control of a browser. The content obtained through the browser can be displayed on a webpage layer corresponding to the browser control, and the webpage layer can belong to a dynamic layer.

For example, the display area corresponding to the browser's controls includes the display area of information; based on this, the step 4.2) may specifically include the following steps:

step 6.1), acquiring page data of the information according to a preset Uniform Resource Locator (URL) corresponding to the display area of the information;

and 6.2) displaying the page data of the information in the information display area according to the rendering rule corresponding to the browser.

Wherein, the URL corresponding to the display area of the information can be configured according to the actual requirement. For example, the URL may be a URL of a forum to which the game application belongs, the URL of the forum pointing to a forum server. The forum server responds to a page data request sent by the game initiator, and can send the page data corresponding to the URL to the game initiator, and the game initiator can render the page data to generate a page and display the page in the information display area.

For example, the launch interface may further include a web page layer, the web page layer being superimposed on the interface layer, the web page layer including a display area of information, the display area of information corresponding to a display area of a control of the browser, based on which the method may further include:

step 7.1), acquiring data of at least one information page according to at least one preset Uniform Resource Locator (URL) corresponding to the display area of the information;

and 7.2) sequentially displaying at least one information page in the information display area according to the rendering rule corresponding to the browser.

In addition, the URL may include a plurality of URLs, and the terminal may sequentially obtain data of information pages corresponding to the plurality of URLs and sequentially render and display the data as the information pages.

For example, a browser control (e.g., a Microsoft ActiveX control) may be embedded in the start page, and a URL of the page (e.g., "http:// tx3.163.com/client/picturev2. html") may be preset, so that push information may be pushed to the user in real time by modifying content corresponding to the URL.

As another example, the pre-formed controls may include a progress control and a browser control, among other controls.

In some embodiments, at least one of the at least one fixed layer is a background layer, the background layer corresponding to the second resource image set including a background image, the background layer being for displaying the background image; wherein the at least one dynamic layer is superimposed on the background layer.

As one example, the background layer may display the background map semi-transparently. The starter can be more integrated with a desktop of a user operating system, and different picture styles can be made. The embodiment of the application can utilize GDI + to realize the function. GDI + is a subsystem in Windows system, which is mainly responsible for displaying relevant information on screen, and it is implemented by a set of C + + class game application programming interfaces. For compatibility, GDI + is a successor of the previous version of GDI, and when a new game application is developed, a developer needs to use GDI + in order to meet the requirement of graphic output, optimizes GDI in the previous Windows version, and adds a plurality of new functions. In some embodiments, the gaming application may be a conventional Massively Multiplayer Online Game (MMOG) type Game. The MMOG type game application generally has the following specific characteristics that firstly, the playing methods are various, and the whole game gives different game experiences to users through different playing methods; secondly, each game focuses more and more on the performance, including wide game scenes, real characters, animal models, cool skill special effects and the like; finally, various pre-loaded videos, animations and the like are further included in the game to improve game performance, one problem is caused by the characteristics that the game resource amount is huge, the game is loaded too slowly in the starting stage due to the fact that the resource amount is too large, most games are smoothly connected to start the loading process in a mode with a starter, the existing game starter is mostly in a static interface mode, the existing game starter is usually realized through a Microsoft Foundation class library (MFC) of C + +, the progress of game loading is fed back by matching with a starting progress bar, and although the mode can relieve waiting consumption of loading when the game is started by a user, the starting process of the whole process is monotonous; still another way is to use sequential frame animation, which can also be implemented by using the MFC library of C + +, which is vivid in terms of performance, but this way will consume too much resources of the initiator itself, and may cause the performance of initiating a stuck-at state for different hardware platforms. According to the embodiment of the application, the processing mode of resource consumption can be optimized, and the resource consumption of the starter is reduced.

In addition, since the game regularly issues updates, which are generally implemented by adding a patch, the game content updates need to be synchronized before starting the game, and the process also needs to wait for a relatively long time. In the loading process of starting the game or the process of downloading patch update, in order to avoid long waiting for the user, the starter is usually started first, the game information is displayed for the user, the loading progress is displayed, the progress feedback is given to the user in time, the dead feeling of the user card is avoided, and the user obtains better user experience.

Embodiments of the present application are further described below in connection with the launching of a gaming application. As shown in fig. 2, the method may be applied to a launcher of the game application, and a graphical user interface of the launcher may include a web page layer, an interface layer, a sequence layer, a rotation layer, and a background layer, which are sequentially stacked from top to bottom, and a display effect of the graphical user interface is as shown in fig. 3.

Wherein, for the graphical user interface of the launcher, the rotating layer is rotatable during the display process. For example, as shown in fig. 4A-4B, each frame of image corresponding to the rotation effect is obtained by performing translation and rotation transformation on the same image. Fig. 4A is a first image at a first time, and fig. 4B is a second image obtained by rotating the first image by a predetermined angle at a second time after a predetermined first time interval.

For the graphical user interface of the launcher, during display, the web page layer may display pages retrieved according to a preconfigured ULR, e.g., the pages shown in fig. 5. In which 6 pages as shown in fig. 5 may be acquired to be displayed at a specified time interval or in response to a corresponding operation. Of course, the URL may also correspond to multiple types, such as shown in FIG. 5, including both official and collaborative types of URLs.

For the graphical user interface of the launcher, the material images can be set in various combinations according to the time window during the display process. For example, fig. 6A and 6B show the display effect in the day time in fig. 6A, and the display effect in the night time in fig. 6B.

Fig. 7 is a schematic structural diagram of a starting apparatus for a game application according to an embodiment of the present application. As shown in fig. 7, the apparatus includes:

a loading module 701, configured to, in response to a start operation for the game application, load at least one first resource image set and at least one second resource image set to render a start interface on a display screen of the terminal, where the start interface includes at least one fixed layer and at least one dynamic layer, each first resource image set corresponds to one fixed layer, and each second resource image set corresponds to one dynamic layer;

a fixed display module 702, configured to respectively and fixedly display the corresponding first resource image set on each fixed layer of the launch interface;

and a dynamic display module 703 for dynamically displaying the corresponding second resource image set in each dynamic layer of the launching interface.

In some embodiments, the gaming application is configured with a plurality of resource image groups, each configured with a time window, each including a set of resource images corresponding to at least one of the at least one fixed layer and the at least one dynamic layer; the loading module 701 is specifically configured to:

determining a starting time of the game application in response to a starting operation for the game application; and loading a resource image group corresponding to the time window where the starting time is located.

In some embodiments, at least one of the at least one dynamic layer is a rotation layer, the second resource image set corresponding to the rotation layer includes a rotation resource image, and the dynamic display module 703 is specifically configured to:

displaying the rotated resource image at the rotated layer based on current screen coordinates of the rotated layer in the launch interface; after a preset first time interval, rotating the rotating layer by a preset angle to obtain a new screen coordinate; displaying the rotated resource image at the rotation layer based on the new screen coordinates.

In some embodiments, the spin layer is configured with properties of a brush including a position parameter of the brush and an angle parameter of the brush, the brush to draw the spin-asset image in the spin layer; the dynamic display module 703 is specifically configured to:

translating the position parameter of the brush from the original position to a central symmetrical position; rotating the angle parameter of the painting brush by taking the central symmetrical point as a center according to the preset angle; and translating the position parameter of the brush from the central symmetry point to the original position.

In some embodiments, at least one of the at least one dynamic layer is a sequence frame layer, and the second resource image set corresponding to the sequence frame layer comprises a first sequence frame; the dynamic display module 703 is specifically configured to:

and sequentially displaying the images in the first sequence of frames in the sequence frame layer.

In some embodiments, the dynamic display module 703 is specifically configured to: and sequentially or randomly displaying the images in the first sequence of frames in the sequence frame layer.

In some embodiments, the dynamic display module 703 is specifically configured to: interpolating between any two continuous frames of images of the first sequence frame to obtain a second sequence frame;

and sequentially or randomly displaying the images in the second sequence of frames in the sequence frame layer.

In some embodiments, at least one of the at least one fixed layer is an interface layer, the interface layer is superimposed on the dynamic layer, the first resource image set corresponding to the interface layer includes a prefabricated control, and the interface layer is preset with a display area of the prefabricated control; the fixed display module 702 is specifically configured to:

and fixedly displaying the prefabricated control in the display area of the prefabricated control.

In some embodiments, the prefabricated control comprises a progress control, and a display area of the progress control is configured with a display area of a progress bar; the fixed display module 702 is specifically configured to:

and displaying the progress bar according to the loading progress of the game application in the display area of the progress bar.

In some embodiments, the pre-formed control comprises a control of a browser.

In some embodiments, the launch interface further includes a web page layer, the web page layer is superimposed on the interface layer, the web page layer includes a display area of information, the display area of information corresponds to a display area of a control of the browser; the device further comprises:

the acquisition module is used for acquiring data of at least one information page according to at least one preset Uniform Resource Locator (URL) corresponding to the display area of the information; and the dynamic display module is further used for sequentially displaying the at least one information page in the display area of the information according to the rendering rule corresponding to the browser.

In some embodiments, at least one of the at least one fixed layer is a background layer, and the corresponding second resource image set of the background layer includes a background map for displaying the background map; wherein the at least one dynamic layer is superimposed on the background layer.

The starting device for the game application, provided by the embodiment of the application, can divide the resource image to be displayed into the resource image of the fixed layer and the resource image of the dynamic layer, the resource image of the fixed layer is fixed in the display process, and the resource image of the dynamic layer can be dynamically displayed, so that the animation effect is realized. The resource occupation of a single image can be reduced by dividing the resource image, and the resource required by generating a dynamic effect can be reduced by only dynamically displaying part of the resource image, so that the resource occupation is reduced on the premise of ensuring the realization of the dynamic effect, the influence of starting of the game application is reduced, the possibility of the game application being stuck in the starting process is reduced, and the user experience is improved.

As shown in fig. 8, an embodiment of the present application provides a computer device 800, including: a processor 801, a memory 802 and a bus, the memory 802 storing machine readable instructions executable by the processor 801, the processor 801 communicating with the memory 802 via the bus when the electronic device is operating, the processor 801 executing the machine readable instructions to perform the steps of the method for starting up a game application as described above.

Specifically, the memory 802 and the processor 801 can be general-purpose memory and processor, which are not limited to specific examples, and the starting method of the game application can be executed when the processor 801 runs a computer program stored in the memory 802.

Those skilled in the art will appreciate that the configuration of the computer device shown in fig. 8 does not constitute a limitation of the computer device and may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components.

In some embodiments, the computer device may further include a touch screen operable to display a graphical user interface (e.g., of an initiator of a gaming application) and receive user operations with respect to the graphical user interface (e.g., initiation operations with respect to the gaming application). A particular touch screen may include a display panel and a touch panel. The Display panel may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), and the like. The touch panel may collect contact or non-contact operations on or near the touch panel by a user and generate preset operation instructions, for example, operations of the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus, etc. In addition, the touch panel may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction and gesture of a user, detects signals brought by touch operation and transmits the signals to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into information capable of being processed by the processor, sends the information to the processor, and receives and executes commands sent by the processor. In addition, the touch panel may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, a surface acoustic wave, and the like, and may also be implemented by any technology developed in the future. Further, the touch panel may overlay the display panel, a user may operate on or near the touch panel overlaid on the display panel according to a graphical user interface displayed by the display panel, the touch panel detects an operation thereon or nearby and transmits the operation to the processor to determine a user input, and the processor then provides a corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel can be realized as two independent components or can be integrated.

Corresponding to the starting method of the game application, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps of the starting method of the game application.

The starting device of the game application provided by the embodiment of the application can be specific hardware on the device or software or firmware installed on the device. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.

Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.

In addition, functional modules in the embodiments provided in the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module.

The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the mobile control method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.

Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the scope of the embodiments of the present application. Are intended to be covered by the scope of the present application.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于AR游戏的安全防护方法、系统和可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类