Resource allocation method and device of cloud game platform, electronic equipment and storage medium
By issuing different game resources for different games on the cloud gaming platform and deducting resources separately after the target account ends and runs the target game, the problem of lack of flexibility in resource allocation and deduction in the existing technology is solved, and the game experience is improved.
Patent Information
- Application Number
- CN202510487681.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-06-03
AI Technical Summary
The existing cloud gaming platforms use a unified fixed order and fixed method for resource deduction in the entire platform in terms of game resource consumption, which lacks flexibility, resulting in poor accuracy and flexibility of resource allocation and deduction, affecting players' gaming experience.
The cloud game platform issues different game resources for different games, and after the target account finishes running the target game, the resource of the target game is deducted separately to improve the accuracy and flexibility of resource allocation and deduction.
Through resource management for different games, the accuracy and flexibility of resource allocation and deduction of cloud gaming platforms are improved, thereby improving the player's gaming experience.
Smart Images

Figure CN120079112A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for resource allocation of a cloud game platform. Background Art
[0002] Cloud gaming is a game mode based on cloud computing. In the operating mode of cloud gaming, all games are run on the server side, and the rendered game screens are compressed and transmitted to users through the network. On the client side, the user's game device does not require any high-end processors and graphics cards, and only basic video decompression capabilities are needed, greatly reducing the data processing pressure on the terminal device.
[0003] During the operation of cloud gaming, target game resources of a target account need to be consumed, and a player needs to determine that there are sufficient target game resources in the corresponding target account to bear the resource consumption of the target game started through the cloud game platform each time.
[0004] In the related art, regarding the game resource consumption of the cloud game platform, a fixed order and a fixed method that are unified across the platform are adopted for resource deduction. When a player starts using the cloud game service, the fixed order and the fixed method of resource deduction for all games on the cloud game platform are simple but lack flexibility and cannot be adjusted according to the actual needs of the game, resulting in poor accuracy and flexibility in the game resource allocation and deduction of the cloud game platform, and further affecting the player's game experience. Summary of the Invention
[0005] In view of this, the purpose of the present disclosure is to provide a method, an apparatus, an electronic device, and a storage medium for resource allocation of a cloud game platform. The cloud game platform distributes different game resources for different games, and after the target account finishes running the target game on the cloud game platform, the target game resources corresponding to the target game are deducted specifically for the target game, so as to improve the accuracy and flexibility of the game resource allocation and deduction of the cloud game platform, and further improve the player's game experience.
[0006] In a first aspect, an embodiment of the present disclosure provides a method for resource allocation of a cloud game platform. The cloud game platform is configured with multiple games, and the resource allocation method includes:
[0007] In response to a target account starting a target game through the cloud game platform, determining whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform;
[0008] In response to the target account being configured with the target game resource, run the target game on the cloud gaming platform and display the game screen of the target game on the terminal device corresponding to the target account;
[0009] In response to the target account ending the operation of the target game on the cloud gaming platform, deduct the target game resource under the target account.
[0010] In a second aspect, an embodiment of the present disclosure further provides a resource allocation device for a cloud gaming platform. The cloud gaming platform is configured with multiple games. The resource allocation device includes:
[0011] A game resource determination module, configured to determine whether the target account is configured with the target game resource issued by the cloud gaming platform in response to the target account starting a target game through the cloud gaming platform, where the target game resource corresponds to the target game, and different games correspond to different game resources issued by the cloud gaming platform;
[0012] A game screen display module, configured to run the target game on the cloud gaming platform and display the game screen of the target game on the terminal device corresponding to the target account in response to the target account being configured with the target game resource;
[0013] A resource deduction module, configured to deduct the target game resource under the target account in response to the target account ending the operation of the target game on the cloud gaming platform.
[0014] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus. The processor executes the machine-readable instructions to perform the resource allocation method of the cloud gaming platform as described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it performs the resource allocation method of the cloud gaming platform as described in the first aspect.
[0016] The resource allocation method, device, electronic device, and storage medium of the cloud game platform provided by the embodiments of the present disclosure, in response to a target account starting a target game through the cloud game platform, determine whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform; in response to the target account being configured with the target game resources, run the target game on the cloud game platform and display the game screen of the target game on the terminal device corresponding to the target account; in response to the target account ending the operation of the target game on the cloud game platform, deduct the target game resources under the target account. In this way, the cloud game platform issues different game resources for different games, and after the target account ends the operation of the target game on the cloud game platform, specifically for the target game, deduct the target game resources corresponding to the target game, so as to improve the accuracy and flexibility of the game resource allocation and deduction of the cloud game platform, and further improve the game experience of players.
[0017] To make the above objects, features, and advantages of the present disclosure more obvious and understandable, the following specifically enumerates preferred embodiments and, in conjunction with the accompanying drawings, makes a detailed description as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative efforts.
[0019] Figure 1 It is a flowchart of a resource allocation method for a cloud game platform provided by an embodiment of the present disclosure;
[0020] Figure 2 It is one of the calculation diagrams of the end time of the first type of valid resources provided by an embodiment of the present disclosure;
[0021] Figure 3 It is the second calculation diagram of the end time of the first type of valid resources provided by an embodiment of the present disclosure;
[0022] Figure 4 It is a flowchart of target game resource deduction for a cloud game provided by an embodiment of the present disclosure;
[0023] Figure 5 It is a structural diagram of a resource allocation device for a cloud game platform provided by an embodiment of the present disclosure;
[0024] Figure 6 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. Specific Embodiments
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part rather than all of the embodiments of the present disclosure. Components of the embodiments of the present disclosure usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed present disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, every other embodiment obtained by those skilled in the art without creative efforts falls within the scope of protection of the present disclosure.
[0026] Cloud gaming is a game mode based on cloud computing. In the operating mode of cloud gaming, all games are run on the server side, and the rendered game screens are compressed and transmitted to users through the network. On the client side, the user's gaming device does not require any high-end processors and graphics cards, only basic video decompression capabilities are needed, which greatly reduces the data processing pressure on the terminal device.
[0027] During the operation of cloud gaming, target game resources of the target account need to be consumed. Players need to determine that there are sufficient target game resources in the corresponding target account to bear the resource consumption of each target game started through the cloud gaming platform.
[0028] In the related art, regarding the game resource consumption of the cloud gaming platform, a fixed order and fixed method that are unified across the platform are adopted for resource deduction. When players start using the cloud gaming service, the fixed order and fixed method of resource deduction for all games on the cloud gaming platform are simple but lack flexibility and cannot be adjusted according to the actual needs of the games, resulting in poor accuracy and flexibility in the game resource allocation and deduction of the cloud gaming platform, thereby affecting the gaming experience of players.
[0029] Exemplarily, taking the target game resource as the duration as an example, there are mainly three types of time cards in the cloud game duration management method: free duration, paid duration, and membership package duration. The free duration is usually obtained by watching advertisements or daily check-ins, etc. The paid duration is obtained by players through direct purchase and is usually billed in hours or minutes. The membership package duration is obtained by subscribing to the membership service, and member players can enjoy a certain amount of duration usage rights during the subscription period. In terms of duration consumption, a unified fixed order across all platforms is adopted for deduction. When a player starts using the cloud game service, the system will first consume the free duration. After the free duration is exhausted, the paid duration and the membership package duration will be consumed in sequence. This single deduction rule ignores the differences in resource consumption among different games. For example, some high-quality, large-scale multiplayer online games (MMOs) may require more computing resources and bandwidth, while some simple casual games may consume fewer resources. The single deduction rule cannot reflect these differences, resulting in players feeling unfair when using resource-intensive games. At the same time, the existing duration asset management system lacks a duration asset strategy customized for game personalization. Each game has its unique gameplay and user group, and the needs and behavior patterns of players in different games are also different. However, the existing system usually cannot design personalized duration strategies based on these differences. For example, for some strategy games that require long-term investment, players may be more inclined to purchase a longer usage duration, while for some fast-paced competitive games, players may be more inclined to purchase a short-term usage right. The lack of personalized duration strategy design cannot meet the needs of different players and may affect the player's usage experience and satisfaction. The fixed-order deduction method for games on all platforms is simple but lacks flexibility and cannot be adjusted according to the actual needs of the game, resulting in poor accuracy and flexibility in the duration deduction of cloud games, thereby affecting the player's game experience.
[0030] Based on this, the embodiments of the present disclosure provide a resource allocation method for a cloud game platform to improve the accuracy and flexibility of game resource allocation and deduction on the game platform, thereby enhancing the player's game experience.
[0031] Please refer to Figure 1 , Figure 1 which is a flowchart of a resource allocation method for a cloud game platform provided by the embodiments of the present disclosure. As Figure 1 shown in
[0032] S101. In response to a target account starting a target game through the cloud game platform, determine whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform.
[0033] S102. In response to the target account being configured with the target game resources, run the target game on the cloud game platform and display the game screen of the target game on the terminal device corresponding to the target account.
[0034] S103. In response to the target account ending the running of the target game on the cloud game platform, deduct the target game resources of the target account.
[0035] The resource allocation method of the cloud game platform provided by the embodiments of the present disclosure. The cloud game platform issues different game resources for different games. After the target account ends the running of the target game on the cloud game platform, specifically for the target game, the target game resources corresponding to the target game are deducted, so as to improve the accuracy and flexibility of the game resource allocation and deduction of the cloud game platform, and further improve the game experience of players.
[0036] The following describes the exemplary steps of the embodiments of the present disclosure:
[0037] S101. In response to a target account starting a target game through the cloud game platform, determine whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform.
[0038] In the embodiments of the present disclosure, cloud games are a game mode based on cloud computing. In the operation mode of cloud games, all games are run on the server side, and the rendered game screens are compressed and transmitted to users through the network. On the client side, the user's game device does not require any high-end processors and graphics cards, only basic video decompression capabilities are needed, greatly reducing the data processing pressure on the terminal device.
[0039] In an alternative embodiment, if it is determined that the target account is currently logged in to the cloud platform and starts the target game through the cloud platform, the target game needs to consume the target game resources of the target account during the running process on the cloud game platform. Therefore, when it is determined that the target account starts the game through the cloud game platform, it is necessary to determine whether the target account is configured with the target game resources issued by the cloud game platform to ensure that there are sufficient target game resources in the target account to bear the resource consumption generated when running different games.
[0040] In an alternative embodiment, when different game cloud game platforms distribute game resources, different game resources will be distributed. It is possible to determine the game resources corresponding to the target game according to the platform resource consumption information of the cloud platform when running different target games. In this way, different resource consumption deductions can be made according to different game types, thereby improving the accuracy and flexibility of resource deduction on the cloud game platform.
[0041] Specifically, the target game resources corresponding to the target game are determined through the following steps:
[0042] a1: Based on the platform resource consumption information of the target game, determine the target game resources corresponding to the target game.
[0043] In an alternative embodiment, the platform resource consumption information of the target game represents the consumption of cloud platform resources when the cloud game platform runs the target game. Exemplarily, if the target game is a large multiplayer game, the cloud game platform consumes more resources when running the target game; if the target game is a single-player small game, the cloud game platform consumes fewer resources when running the target game. Regarding the different resource consumptions of the cloud game platform when running different games, the cloud game platform can distribute different game resources for different games.
[0044] In an alternative embodiment, players can obtain the target game resources for the target game by performing resource acquisition tasks. Specifically, resource acquisition tasks can be configured for the target game through configuration operations on the target game, and the resource acquisition tasks are displayed to the players. The players obtain different target game resources by performing different resource acquisition tasks.
[0045] Specifically, the resource allocation method further includes:
[0046] b1: In response to a resource configuration operation for the target game, generate a resource acquisition task for the target game on the cloud game platform.
[0047] b2: In response to the target account completing the resource acquisition task, based on the resource acquisition task, distribute the target game resources corresponding to the target game to the target account.
[0048] In an alternative embodiment, different resource allocation operations can be set according to different promotion periods of different target games, configuring the current specific resource acquisition tasks, as well as the target game resource types corresponding to different resource acquisition tasks, the effective duration of the target game resources, etc. Then, after determining that the resource acquisition tasks are configured, the resource acquisition tasks will be released. The cloud game platform will detect different game operations of the player for the target game. If it is determined that the player of the target account has completed the resource acquisition tasks, the target game resources corresponding to the target game will be issued to the target account.
[0049] Here, for different target games, the specific content of the resource acquisition tasks may be the same or may vary. And for different games, the types of target game resources that may be obtained by completing the same resource acquisition task, the effective duration of the target game resources, etc. may all be different.
[0050] In an alternative embodiment, the resource acquisition tasks include at least one of the following:
[0051] Logging in to the target game through the target account on the cloud game platform, the continuous duration of logging in to the target game through the target account on the cloud game platform being greater than a preset duration threshold, registering a corresponding game account for the target game on the cloud game platform, making a consumption for the target account corresponding to the target game on the cloud game platform, participating in a target game activity when running the target game on the cloud game platform, and the game time of running the target game on the cloud game platform reaching a preset gift time node.
[0052] In an alternative embodiment, triggers can be configured in the target game, and the completion status of different resource acquisition tasks can be determined through the triggers. Different target games support configuring different policy triggers; to improve the flexibility and scalability of the system, the triggers are implemented in the form of plugins. The plugin-based design can add, modify, or delete triggers at any time according to the needs of cloud games, without the need for large-scale changes to the core code. This design not only improves the maintainability of the system but also enables the target game resource acquisition method to quickly adapt to the needs of different cloud games.
[0053] In an alternative embodiment, the cloud game platform logs in to the target game through the target account and determines that the target account has completed the resource acquisition tasks. At this time, the target game resources corresponding to the target game logged in by the cloud game platform through the target account can be allocated to the target account.
[0054] In another alternative embodiment, if it is determined that the continuous duration of logging in to the target game through the target account on the cloud game platform is greater than a preset duration threshold (i.e., the target account continuously logs in to the same target game), it is determined that the target account has completed the resource acquisition task. At this time, target game resources corresponding to the continuous duration of logging in to the target game through the target account on the cloud game platform being greater than the preset duration threshold can be allocated to the target account.
[0055] In another alternative embodiment, if a player registers a corresponding game account for the target game on the cloud game platform, that is, the target account of the player is the game account that logs in to the cloud game platform for the first time, then it is also determined that the target account has completed the resource acquisition task. At this time, target game resources corresponding to the game account registered for the target game on the cloud game platform can be allocated to the target account.
[0056] In another alternative embodiment, there may be a situation where target game resources can be purchased within or outside the cloud game platform. If it is determined that the game platform consumes for the target account corresponding to the target game (for example, the game platform uses virtual resources to purchase the corresponding game resources, etc.), it is determined that the target account has completed the resource acquisition task. At this time, target game resources corresponding to the consumption for the target account corresponding to the target game on the cloud game platform can be allocated to the target account.
[0057] In another alternative embodiment, there may be target game activities that need to be participated in within the cloud game platform. Different target game activities correspond to different target game resources. If it is determined that a target game activity is participated in when the target game is running on the cloud game platform, it is determined that the target account has completed the resource acquisition task. At this time, target game resources corresponding to the target game activity participated in when the target game is running through the cloud game platform can be allocated to the target account.
[0058] Exemplarily, the target game activity may include participating in a game invitation activity, purchasing a membership within the target game, etc.
[0059] In another alternative embodiment, the background system will also determine the preset gift time node of the game time for running the target game on the cloud game platform according to the loss and activity of the game account when the player runs the target game on different cloud game platforms. If it is determined that the game time for running the target game on the cloud game platform reaches the preset gift time node and it is determined that the target account has completed the resource acquisition task, corresponding target game resources will be allocated to the corresponding target account.
[0060] In an alternative embodiment, different types of target game resources may be allocated for completing different resource acquisition tasks. Exemplarily, if it is determined that consumption is made for a target account corresponding to a target game on a cloud game platform, the first game resource with a preset valid duration will be allocated to the target account; if the game time of the target account reaches a preset gift time node, the first game resource with a preset valid duration can also be allocated to the target account.
[0061] In an alternative embodiment, for different cloud game duration strategies, the valid duration of the same type of game resources may vary. That is, under different cloud game duration strategies, when the same resource acquisition task is completed, the same type of game resources will be configured, but the valid duration of the game resources may vary.
[0062] Among them, the cloud game duration strategy refers to different game promotion periods for the target game running on the cloud game platform.
[0063] Specifically, if it is determined that the target account logs in to the target game through the cloud game platform and it is determined that the resource acquisition task is completed, the second game resource will be configured for the target account at this time; if it is in the first cloud game duration strategy, the second game resource with a three-day validity period within a week will be configured for the target account; if it is in the second cloud game duration strategy, the second game resource with a five-day validity period within a week will be configured for the target account.
[0064] In an alternative embodiment, when distributing the target game resources to the target account, it is also necessary to determine whether the target account meets the distribution requirements. If the target account does not meet the distribution requirements, even if the target account completes the resource acquisition task, the cloud game platform cannot be triggered to distribute the corresponding target game resources for the target game.
[0065] Specifically, the step of "distributing the target game resources corresponding to the target game to the target account based on the resource acquisition task" includes:
[0066] c1: In response to the target account completing the resource acquisition task, based on the task type of the resource acquisition task, if the target account meets the preset game resource distribution requirements, distribute the target game resources corresponding to the target game to the target account.
[0067] Among them, the target account meeting the preset game resource distribution requirements includes at least one of the following:
[0068] The number of game resources currently owned by the target account is less than the preset quantity threshold, and the time difference between the time when the target account completes the resource acquisition task and the time when the target account triggered the same resource acquisition task last time is greater than the preset time difference threshold.
[0069] In an alternative embodiment, for each target account, an upper limit is set for the distribution of the quantity of the target game resources, so as to limit the quantity of the target game resources owned by each target account within a certain period of time. If it is determined that the quantity of the game resources currently owned by the target account is less than the preset quantity threshold, at this time, it is determined that the target game resources can be distributed to the target account again; if it is determined that the quantity of the game resources currently owned by the target account is greater than or equal to the preset quantity threshold, at this time, it is determined that the quantity of the target game resources owned by the target account in the current period has reached the upper limit, and even if the target account completes the resource acquisition task, the target game resources will not be distributed to the target account anymore.
[0070] Among them, the preset quantity threshold can be set differently according to the different types of target games running on the cloud game platform and the different duration strategies corresponding to the target games. The specific setting method is not specifically limited here.
[0071] Here, the setting of the preset quantity threshold only restricts the target game resources owned by the target account within a certain period of time, and the quantity of the target game resources owned by the target account in different periods will not be restricted.
[0072] In another alternative embodiment, after the same resource acquisition task, the target game resources will be distributed to the target account again after a certain period of time, that is, for the same resource acquisition task, the target game needs to obtain the corresponding target game resources again within a certain period of time.
[0073] Here, similarly, the preset time difference threshold can be set differently according to the different types of target games running on the cloud game platform and the different duration strategies corresponding to the target games. The specific setting method is not specifically limited here.
[0074] Exemplarily, if the target game is participated in the first game activity when running on the cloud game platform, the resource acquisition task is completed, and the corresponding target game resources are obtained, then, when the target game is run on the cloud game platform within a certain period of time and the first game activity is participated in, the corresponding target game resources cannot be obtained at this time, and the corresponding target game resources will be obtained again only after participating in the first game activity when running the target game on the cloud game platform after the preset period.
[0075] Furthermore, if it is determined that the target account is configured with the target game resources issued by the cloud game platform, at this time, the target game can be run through the cloud game platform, and the game screen of the target game can be displayed on the terminal device corresponding to the target account.
[0076] S102. In response to the target account being configured with the target game resource, run the target game on the cloud gaming platform and display the game screen of the target game on the terminal device corresponding to the target account.
[0077] In an optional implementation manner, when running a target game through a cloud gaming platform, the game content is streamed over the Internet without the need to download or install the game on the terminal device corresponding to the target account. All calculations and rendering are completed on a remote server, and the player can simply receive the video stream and input operation instructions through a terminal device (such as a mobile phone, tablet, computer, smart TV, etc.) to play the game in real time, greatly reducing the data processing pressure on the terminal device.
[0078] Furthermore, if it is determined that the target account ends running the target game on the cloud gaming platform, the target game resources under the target account can be deducted for the target game.
[0079] S103. In response to the target account ending the operation of the target game on the cloud gaming platform, deduct the target game resources under the target account.
[0080] In an optional implementation manner, for the target account to end running the target game on the cloud gaming platform, it can be that the player controls the target account to end the login state (the player issues an instruction to log out of the current target account), or the target account ends playing the target game. Even if the player starts other games on the cloud gaming platform again, it is determined that the target account ends running the target game on the cloud gaming platform.
[0081] Specifically, after determining that the target account ends running the target game on the cloud gaming platform, it is necessary to deduct the resources consumed by the target game for the target game itself. When deducting the target game resources corresponding to the target account, it is necessary to perform the deduction according to the resource consumption corresponding to the target game.
[0082] Specifically, the step "In response to the target account ending the operation of the target game on the cloud gaming platform, deduct the target game resources under the target account" includes:
[0083] d1: In response to the target account ending the operation of the target game on the cloud gaming platform, based on the resource consumption corresponding to the target game, deduct the target game resources under the target account.
[0084] In an alternative embodiment, the resource consumption corresponding to the target game can be time consumption. The target game resources that can exist under the target account on the cloud game platform are time resources. If it is determined that the total duration of the target game run by the target account on the cloud game platform is 3 hours, then 3 hours need to be deducted from the target game resources under the target account, thereby completing the deduction for the target game.
[0085] In an alternative embodiment, the target game resources include first game resources and second game resources. The target game resources corresponding to the target account can be determined based on the first game resources and second game resources owned by the player.
[0086] Specifically, the target game resources corresponding to the target account are determined through the following steps:
[0087] e1: For various first game resources corresponding to the target account that are currently within the valid time period, based on the valid duration of each first game resource and the current time, determine the first type of valid resources.
[0088] e2: For various second game resources corresponding to the target account that are currently within the valid time, accumulate the remaining time of each second game resource to determine the second type of valid resources.
[0089] e3: Add the first type of valid resources and the second type of valid resources to determine the target game resources corresponding to the target account.
[0090] In an alternative embodiment, the target game resources are valid duration resources issued by the cloud game platform; the first game resources are continuous game resources that are continuously valid within the valid duration; the second game resources are discrete game resources that have a preset number of valid durations within the valid duration.
[0091] Specifically, the first game resources are continuously valid throughout the entire valid duration. Even if the target account does not consume the time resources in the first game resources throughout the entire valid duration, the time resources of the first game resources are still consumed as time goes by; while the second game resources are game resources with a preset number of valid times allocated within the valid duration. If the target account does not consume the valid number of times within the valid duration, then the valid number of times of the second game resources still exists and is not consumed.
[0092] Exemplarily, the first game resource can be set as a game resource valid for seven consecutive days, and the second game resource can be set with a validity period of 7 days and a valid duration of 3 days within 7 days. On the third day within the valid time period, even if the duration resource in the first game resource is not consumed, the valid duration of the first game resource still consumes three days; however, if the valid duration times of the second game resource are not consumed on the third day within the valid time period, then, at this time, the target account of the second game resource still has a valid duration of three days.
[0093] In an alternative embodiment, for the first game resource, it is necessary to determine multiple first game resources currently within the valid time period, and at the same time, determine the first type of valid resources based on the valid duration of each of the multiple first game resources and the current time.
[0094] Specifically, the step of "determining the first type of valid resources based on the valid duration of each first game resource and the current time" includes:
[0095] f1: Determine the target first type of valid resource with the longest valid duration among the valid durations of the multiple first game resources.
[0096] f2: Based on the difference between the end time of the target first type of valid resource and the current time, determine the target valid duration.
[0097] f3: Take the minimum value of the target valid duration and the remaining duration of the target first type of valid resource to determine the first type of valid resources.
[0098] In the embodiments of the present disclosure, for the target account, the total valid duration of the target account is the total valid duration of the first type of valid resources and the second type of valid resources owned by the target account, that is, the valid duration of the target account can be determined by the valid duration of the first game resource and the total valid duration of the second type of valid resources.
[0099] In an alternative embodiment, when calculating the total valid duration of the target account, it is necessary to determine the target first type of valid resource with the longest valid duration among the valid durations of the multiple first game resources based on the multiple first type of valid resources.
[0100] Exemplarily, the target account has three first game resources. The valid duration of the first first game resource 1 is seven days, the valid duration of the second first game resource 2 is thirty days, and the valid duration of the third first game resource 3 is one hundred and twenty days. Then, at this time, the third first game resource 3 with the longest valid duration needs to be determined as the target first type of valid resource.
[0101] Further, after determining the target first - type valid resources, it is necessary to determine the target valid duration according to the difference between the end time of the current target first - type valid resources and the time before the current time.
[0102] Exemplarily, if it is determined that the end time of the current target first - type valid resources is next Wednesday and the current time is this Friday, then the target valid duration is five days.
[0103] In an alternative implementation, when determining the target valid duration of the target first - type valid resources, it is necessary to determine according to the end time of the target first - type valid resources. The following will elaborate on the determination method of the end time of the target first - type valid resources.
[0104] Specifically, the end time of the target first - type valid resources is determined through the following steps:
[0105] g1: Detect whether the target first - type valid resources are the first first - type valid resources issued among multiple first - type valid resources.
[0106] g2: If the target first - type valid resources are the first first - type valid resources issued among multiple first - type valid resources, determine the end time of the target first - type valid resources based on the start time of the target first - type valid resources, the valid duration of the target first - type valid resources, and the additional resources configured for the target first - type valid resources.
[0107] g3: If the target first - type valid resources are not the first first - type valid resources issued among multiple first - type valid resources, determine the end time of the first - type valid resources that are adjacent to the target first - type valid resources and whose issuance time is before the target first - type valid resources as the target start time of the target first - type valid resources.
[0108] g4: Determine the end time of the target first - type valid resources based on the target start time and the valid duration of the target first - type valid resources.
[0109] In an alternative implementation, if the target account has multiple first - type game resources, it is necessary to determine whether the target first - type valid resources are the first first - type valid resources issued among multiple first - type valid resources. If the target first - type valid resources are the first first - type valid resources issued among multiple first - type valid resources, additional duration will be given as a gift to the target first - type valid resources. Then, when calculating the end time of the target first - type valid resources, in addition to calculating according to the start time and the valid duration, the additional duration given as a gift needs to be added.
[0110] Exemplarily, please refer to Figure 2 , Figure 2 which is one of the schematic diagrams for calculating the end time of the first type of valid resource provided by the embodiments of the present disclosure. As shown in Figure 2 , when the target first type of valid resource is the first first type of valid resource issued among multiple first types of valid resources, when calculating the end time of the target first type of valid resource, it is necessary to calculate based on the additional duration and the valid duration in combination with the start time of the target first type of valid resource.
[0111] In an alternative embodiment, the end time of the target first type of valid resource can be calculated by the following formula:
[0112]
[0113] where end_time is the end time of the target first type of valid resource; begin_time is the start time of the target first type of valid resource, duration is the valid duration of the target first type of valid resource; extend_today_left*(today_end_time - now) is the calculated gift duration for the target first type of valid resource, extend_today_left is the gift coefficient. If the target first type of valid resource is the first first type of valid resource issued among multiple first types of game resources, extend_today_left is 1. If the target first type of valid resource is not the first first type of valid resource issued among multiple first types of game resources, extend_today_left is 0; today_end_time is the current end time, and now is the current time.
[0114] In an alternative embodiment, if the target first type of valid resource is not the first first type of valid resource issued among multiple first types of valid resources, there is no gift duration. At the same time, it is also necessary to determine the end time of the target first type of valid resource according to the end time of the first type of valid resource adjacent to the target first type of valid resource.
[0115] In the embodiments of the present disclosure, if the target first type of valid resource is not the first first type of valid resource issued among multiple first types of valid resources, the end time of the first type of valid resource whose release time is before the target first type of valid resource and adjacent to the target first type of valid resource is determined as the target start time of the target first type of valid resource. Then, according to the determined target start time and the valid duration of the target first type of valid resource, the end time of the target first type of valid resource is determined.
[0116] Exemplarily, please refer toFigure 3 , Figure 3 This is the second schematic diagram for calculating the end time of the first type of valid resources provided by the embodiments of the present disclosure. As Figure 3 shown, if the target first type of valid resource is the nth first type of valid resource, then the end time of the (n - 1)th first type of valid resource is determined as the target start time of the first type of valid resource, and then the target start time is added with the valid duration of the first type of valid resource to determine the end time of the first type of valid resource.
[0117] In an alternative embodiment, the end time of the first type of valid resource can be calculated by the following formula:
[0118]
[0119] where timecard(n) is the end time of the target first type of valid resource, timecard(n - 1) is the end time of the first type of valid resource whose issuance time is before the target first type of valid resource and adjacent to the target first type of valid resource; duration is the valid duration of the target first type of valid resource; extend_today_left*(today_end_time - now) is the calculated gift duration for the target first type of valid resource, extend_today_left is the gift coefficient. If the target first type of valid resource is the first first type of valid resource issued among multiple first types of valid resources, extend_today_left is 1. If the target first type of valid resource is not the first first type of valid resource issued among multiple first types of valid resources, extend_today_left is 0; today_end_time is the current end time, and now is the current time.
[0120] In an alternative embodiment, if the target account re - obtains multiple first - type game resources after a period of time, the end time of the first type of valid resource will be recalculated by adding the extra duration to the first first type of valid resource issued.
[0121] Further, after determining the difference between the end time of the target first type of valid resource and the current time, the target valid duration of the target first type of valid resource is determined. Then, in combination with the valid duration of the target first type of valid resource, the minimum value of the target remaining duration and the valid duration of the target first type of valid resource is taken to determine the first type of valid resource corresponding to the first game resource.
[0122] Specifically, in order to prevent a situation where there is still a lot of remaining valid duration for the first game resource, but the first game resource is already approaching its end time, and only determine the error of the first game resource based on the valid duration, it is necessary to compare the valid duration and the remaining duration of the first game resource to determine a more reasonable first type of valid resource.
[0123] Exemplarily, if it is determined based on the player's previous usage that the remaining duration of the target first type of valid resource is 10 hours, and the end time of the target first type of valid resource is 3 pm on the same day, and the current time is already 12 noon, at this time, the valid duration of the target first type of valid resource is 3 hours. Then, when determining the first type of valid resource of the target first type of valid resource, taking the minimum of the two is 3 hours. If it is determined based on the player's previous usage that the remaining duration of the target first type of valid resource is 5 hours, and the end time of the target first type of valid resource is 8 pm on the same day, and the current time is 12 noon, at this time, the valid duration of the target first type of valid resource is 8 hours, but the remaining time of the current target first type of valid resource is only 5 hours. Then, when determining the first type of valid resource of the target first type of valid resource, taking the minimum of the two is 5 hours.
[0124] In another alternative implementation, after determining the first type of valid resource of the first game resource, it is also necessary to determine the second type of valid resource of the second game resource.
[0125] In an alternative implementation, for each second game resource, it is necessary to determine the remaining time of the second game resource based on the difference between the end time of the second game resource and the current time and the valid duration of the second game resource.
[0126] Specifically, the remaining time of each second game resource is determined through the following steps:
[0127] h1: For each second game resource, based on the difference between the end time of this second game resource and the current time, determine the second type of valid duration.
[0128] h2: For each second game resource, take the minimum of this second type of valid duration and the remaining duration of the second game resource to determine the remaining time of this second game resource.
[0129] In an alternative embodiment, similarly, in order to prevent a large amount of the effective duration of the second game resource remaining, but the second game resource already approaching the end time, and to avoid errors in determining the remaining time of the second game resource based only on the effective duration, it is necessary to compare the effective duration and the remaining duration of the second game resource to determine a more reasonable remaining time for the second game resource. The specific determination method is the same as that for the first type of effective resource of the first game resource and will not be elaborated here.
[0130] Further, after determining the first type of effective resource and the second type of effective resource, add up the effective durations of the first type of effective resource and the second type of effective resource to determine the target game resource corresponding to the target account.
[0131] Specifically, the target game resource corresponding to the target account can be determined by the following formula:
[0132]
[0133] where user_quota is the target game resource corresponding to the target account; end timei is the end time of the i-th first game resource or second game resource; left_quota i is the remaining time of the i-th first game resource or second game resource.
[0134] Further, after determining the target game resource existing in the target game, it is necessary to deduct the target game resource according to the resource deduction order.
[0135] Specifically, the step of "deducting the target game resource under the target account based on the resource consumption corresponding to the target game" includes:
[0136] i1: Deduct the target game resource within the effective time period from the target game resource under the target account based on the resource consumption corresponding to the target game and the resource deduction order corresponding to the target game.
[0137] In an alternative embodiment, the resource deduction order for the target game can be determined according to the end time of each game resource and the priority of the resource type.
[0138] Specifically, the resource deduction order is determined through the following steps:
[0139] j1: Determine the resource deduction order based on the order of the end times of each game resource in the target game resource and the priority of each game resource type corresponding to the target game.
[0140] In the embodiments of the present disclosure, when performing target game resources, it is first necessary to determine whether each game resource is a game resource that can be deducted for consumption resources, that is, whether each game resource is within the effective duration. Only the effective game resources within the effective duration can be deducted.
[0141] Exemplarily, if the current time is the 3rd of X month in X year, and the effective duration of game resource A is one week, and it is calculated that the end time of the duration of game resource A is the 4th of X month in X year, then at this time, game resource A is a game resource whose duration can be deducted and the duration can be deducted; the effective duration of game resource B is ten days, and it is calculated that the end time of the duration of game resource B is the 1st of X month in X year, then at this time, game resource B is a game resource whose duration cannot be deducted and the duration cannot be deducted.
[0142] Furthermore, for the determined game resources that can be deducted for consumption resources, it is necessary to determine the resource deduction order according to the order of the end times of each game resource that can be deducted for consumption resources and the resource type priority of each game resource.
[0143] Specifically, for different resource types, when performing resource deduction, the priorities are different, and different resource type priorities need to be determined according to different target game types or different duration strategies; for game resources of the same type, it is necessary to determine the end time of each game resource and sort them in ascending order of the end time of the game resources, and give priority to deducting the game resources with earlier end times, which can ensure that players can maximize the extension of the effective duration of the target game resources they own and help improve the game experience of players.
[0144] Exemplarily, if it is determined that the priority of the first game resource is higher than that of the second game resource, and there are two first game resources and two second game resources in the target account, the end time corresponding to the first game resource 1 is the 10th of X month in X year, and the end time corresponding to the first game resource 2 is the 5th of X month in X year; the end time corresponding to the second game resource 3 is the 1st of X month in X year, and the end time corresponding to the second game resource 4 is the 15th of X month in X year, then at this time, the resource deduction order of the target account is: the first game resource 2, the first game resource 1, the second game resource 3, the second game resource 4.
[0145] Furthermore, after determining that the target account ends running the target game on the cloud game platform, according to the resource consumption corresponding to the target game and the resource deduction order corresponding to the target game, each game resource can be deducted in turn from the target game resources corresponding to the target account, thereby completing the current deduction of the target game.
[0146] Specifically, it is necessary to calculate the available duration of the first game resource ranked ahead according to the calculation order, as well as the deductible duration; deduct the duration of the first game resource, take the minimum value of the deductible duration and the current usage duration, record the current resource deduction log, and update the available duration of the first game resource after reducing the deductible duration; move the start duration of the current deduction backward by the deducted duration. If the deduction is still not completed, obtain the first game resource to continue deducting the duration until the deduction process of the current target game resource is completed.
[0147] Exemplarily, the target game resource to be deducted for the current target game is 50 minutes. The game resource list obtained according to the deduction order is the first game resource 2, the first game resource 1, the second game resource 3, and the second game resource 4. Among them, the available duration of the first game resource 2 is 20 minutes, the available duration of the first game resource 1 is 50 minutes, the available duration of the second game resource 3 is 10 minutes, and the available duration of the second game resource 4 is 30 minutes. At this time, after starting the deduction duration process, after all of the first game resource 2 is deducted, the deduction of the target game resource for the target game is not completely finished. At this time, it is necessary to deduct the available duration of the first game resource 1 in turn. It is necessary to deduct 30 minutes from the available duration of the first game resource 1. After the deduction duration ends, update the available duration of each game resource. The available duration of the first game resource 2 is 0 minutes, the available duration of the first game resource 1 is 20 minutes, the available duration of the second game resource 3 is 10 minutes, and the available duration of the second game resource 4 is 30 minutes.
[0148] Exemplarily, please refer to Figure 4 , Figure 4 the target game resource deduction flowchart of the cloud game provided by the embodiment of the present disclosure. As Figure 4 shown, first trigger the start deduction duration process, then determine the duration strategy of the target game, and determine various game resources under the current duration strategy; determine the resource deduction order of the deductible duration based on the resource type priority, end time, and effective duration of each game resource; judge whether the effective duration of the effective game resource is less than or equal to 0. If the effective duration of the effective game resource is less than or equal to 0, end the current target game resource deduction process; if the effective duration of the effective game resource is not less than or equal to 0, obtain the effective game resource according to the resource deduction order, determine the available time and deductible time of the current effective game resource, record the deduction record of the current game resource, and deduct the current game resource. After updating the available duration of each game resource, judge again whether the effective duration of the effective game resource is less than or equal to 0 until the current target game resource deduction process ends if the effective duration of the effective game resource is less than or equal to 0.
[0149] The resource allocation method of the cloud game platform provided by the embodiments of the present disclosure, in response to a target account starting a target game through the cloud game platform, determines whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform; in response to the target account being configured with the target game resources, runs the target game on the cloud game platform, and displays the game screen of the target game on the terminal device corresponding to the target account; in response to the target account ending the operation of the target game on the cloud game platform, deducts the target game resources under the target account. In this way, the cloud game platform issues different game resources for different games, and after the target account ends the operation of the target game on the cloud game platform, specifically for the target game, deducts the target game resources corresponding to the target game, so as to improve the accuracy and flexibility of the game resource allocation and deduction of the cloud game platform, and further improve the game experience of players.
[0150] Based on the same inventive concept, the embodiments of the present disclosure also provide a resource allocation device of a cloud game platform corresponding to the resource allocation method of the cloud game platform. Since the principle of solving problems by the device in the embodiments of the present disclosure is similar to the above-mentioned resource allocation method of the cloud game platform in the embodiments of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0151] Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of a resource allocation device of a cloud game platform provided by the embodiments of the present disclosure. As Figure 5 shown in
[0152] The game resource determination module 510 is configured to, in response to a target account starting a target game through the cloud game platform, determine whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform;
[0153] The game screen display module 520 is configured to, in response to the target account being configured with the target game resources, run the target game on the cloud game platform, and display the game screen of the target game on the terminal device corresponding to the target account;
[0154] The resource deduction module 530 is configured to, in response to the target account ending the operation of the target game on the cloud game platform, deduct the target game resources under the target account.
[0155] In an alternative embodiment, the resource allocation device 500 further includes a game resource configuration module (not shown in the figure), and the game resource configuration module is used to determine the target game resources corresponding to the target game through the following steps:
[0156] Based on the platform resource consumption information of the target game, determine the target game resources corresponding to the target game.
[0157] In an alternative embodiment, the resource allocation device 500 further includes a game resource distribution module (not shown in the figure), and the game resource distribution module is used for:
[0158] In response to a resource configuration operation for the target game, generate a resource acquisition task for the target game on the cloud game platform;
[0159] In response to the target account completing the resource acquisition task, based on the resource acquisition task, distribute the target game resources corresponding to the target game to the target account.
[0160] In an alternative embodiment, the resource acquisition task includes at least one of the following:
[0161] Logging in to the target game on the cloud game platform through the target account, the continuous duration of logging in to the target game on the cloud game platform through the target account being greater than a preset duration threshold, registering a corresponding game account for the target game on the cloud game platform, making a consumption for the target account corresponding to the target game on the cloud game platform, participating in a target game activity when running the target game on the cloud game platform, and the game time of running the target game on the cloud game platform reaching a preset gift time node.
[0162] In an alternative embodiment, when the game resource distribution module is used to distribute the target game resources corresponding to the target game to the target account based on the resource acquisition task, the game resource distribution module is used for:
[0163] In response to the target account completing the resource acquisition task, based on the task type of the resource acquisition task, if the target account meets the preset game resource distribution requirements, distribute the target game resources corresponding to the target game to the target account;
[0164] Wherein, the target account meeting the preset game resource distribution requirements includes at least one of the following:
[0165] The number of game resources currently owned by the target account is less than a preset quantity threshold, and the time difference between the time when the target account completes the resource acquisition task and the time when the target account last triggered the same resource acquisition task is greater than a preset time difference threshold.
[0166] In an alternative embodiment, when the resource deduction module 530 is used to respond to the target account ending the operation of the target game on the cloud game platform and deduct the target game resources under the target account, the resource deduction module 530 is configured to:
[0167] Respond to the target account ending the operation of the target game on the cloud game platform, and based on the resource consumption corresponding to the target game, deduct the target game resources under the target account.
[0168] In an alternative embodiment, when the resource deduction module 530 is used to deduct the target game resources under the target account based on the resource consumption corresponding to the target game, the resource deduction module 530 is configured to:
[0169] Based on the resource consumption corresponding to the target game and the resource deduction order corresponding to the target game, deduct the target game resources within the valid time period from the target game resources under the target account.
[0170] In an alternative embodiment, the target game resources include first game resources and second game resources; the game resource configuration module is used to determine the target game resources corresponding to the target account through the following steps:
[0171] For multiple first game resources corresponding to the target account that are currently within the valid time period, based on the valid duration of each first game resource and the current time, determine the first type of valid resources;
[0172] For multiple second game resources corresponding to the target account that are currently within the valid time, accumulate the remaining time of each second game resource to determine the second type of valid resources;
[0173] Sum the first type of valid resources and the second type of valid resources to determine the target game resources corresponding to the target account.
[0174] In an alternative embodiment, when the game resource configuration module is used to determine the first type of valid resources based on the valid duration of each first game resource and the current time, the game resource configuration module is configured to:
[0175] Determine the target first type of valid resources with the longest valid duration among the valid durations of multiple first game resources;
[0176] Determine a target effective duration based on the difference between the end time of the target first - type valid resource and the current time;
[0177] Take the minimum value of the target effective duration and the remaining duration of the target first - type valid resource to determine the first - type valid resource.
[0178] In an optional implementation manner, the game resource configuration module is used to determine the end time of the target first - type valid resource through the following steps:
[0179] Detect whether the target first - type valid resource is the first - issued first - type valid resource among multiple first - type valid resources;
[0180] If the target first - type valid resource is the first - issued first - type valid resource among multiple first - type valid resources, determine the end time of the target first - type valid resource based on the start time of the target first - type valid resource, the effective duration of the target first - type valid resource, and the additional resources configured for the target first - type valid resource;
[0181] If the target first - type valid resource is not the first - issued first - type valid resource among multiple first - type valid resources, determine the end time of the first - type valid resource that is adjacent to the target first - type valid resource and has a release time before the target first - type valid resource as the target start time of the target first - type valid resource;
[0182] Determine the end time of the target first - type valid resource based on the target start time and the effective duration of the target first - type valid resource.
[0183] In an optional implementation manner, the game resource configuration module is used to determine the remaining time of each second - type game resource through the following steps:
[0184] For each second - type game resource, determine a second - type effective duration based on the difference between the end time of this second - type game resource and the current time;
[0185] For each second - type game resource, take the minimum value of this second - type effective duration and the remaining duration of the second - type game resource to determine the remaining time of this second - type game resource.
[0186] In an optional implementation manner, the target game resource is an effective - duration resource issued by the cloud game platform; the first - type game resource is a continuous game resource that is continuously valid within the effective duration; the second - type game resource is a discrete game resource that has a preset number of effective - duration times within the effective duration.
[0187] In an alternative embodiment, the resource allocation device 500 further includes a resource deduction order determination module (not shown in the figure), and the resource deduction order determination module is configured to:
[0188] Determine the resource deduction order based on the order of the end times of each game resource in the target game resources and the resource type priorities of each game resource corresponding to the target game.
[0189] The resource allocation device of the cloud game platform provided by the embodiments of the present disclosure, in response to a target account starting a target game through the cloud game platform, determines whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform; in response to the target account being configured with the target game resources, runs the target game on the cloud game platform, and displays the game screen of the target game on the terminal device corresponding to the target account; in response to the target account ending the operation of the target game on the cloud game platform, deducts the target game resources under the target account. In this way, the cloud game platform issues different game resources for different games, and after the target account ends the operation of the target game on the cloud game platform, specifically for the target game, deducts the target game resources corresponding to the target game, so as to improve the accuracy and flexibility of the game resource allocation and deduction of the cloud game platform, and further improve the game experience of players.
[0190] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of an electronic device provided by the embodiments of the present disclosure. As Figure 6 shown in
[0191] The memory 620 stores machine-readable instructions executable by the processor 610. When the electronic device 600 runs, the processor 610 communicates with the memory 620 through the bus 630, so that the processor 610 executes the following instructions when running:
[0192] In response to a target account starting a target game through the cloud game platform, determine whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform;
[0193] In response to the target account being configured with the target game resources, run the target game on the cloud game platform, and display the game screen of the target game on the terminal device corresponding to the target account;
[0194] In response to the target account finishing running the target game on the cloud game platform, deduct the target game resources under the target account.
[0195] In an optional implementation manner, in the instructions executed by the processor 610, determine the target game resources corresponding to the target game through the following steps:
[0196] Based on the platform resource consumption information of the target game, determine the target game resources corresponding to the target game.
[0197] In an optional implementation manner, the instructions executed by the processor 610 further include:
[0198] In response to a resource configuration operation for the target game, generate a resource acquisition task for the target game on the cloud game platform;
[0199] In response to the target account completing the resource acquisition task, based on the resource acquisition task, distribute the target game resources corresponding to the target game to the target account.
[0200] In an optional implementation manner, the resource acquisition task includes at least one of the following:
[0201] Logging in to the target game on the cloud game platform through the target account, the continuous duration of logging in to the target game on the cloud game platform through the target account being greater than a preset duration threshold, registering a corresponding game account for the target game on the cloud game platform, making a consumption for the target account corresponding to the target game on the cloud game platform, participating in a target game activity when running the target game on the cloud game platform, and the game time of running the target game on the cloud game platform reaching a preset gift time node.
[0202] In an optional implementation manner, in the instructions executed by the processor 610, the distributing the target game resources corresponding to the target game to the target account based on the resource acquisition task includes:
[0203] In response to the target account completing the resource acquisition task, based on the task type of the resource acquisition task, if the target account meets the preset game resource distribution requirements, distribute the target game resources corresponding to the target game to the target account;
[0204] Among them, the target account meeting the preset game resource distribution requirements includes at least one of the following:
[0205] The number of game resources currently owned by the target account is less than a preset quantity threshold, and the time difference between the time when the target account completes the resource acquisition task and the time when the target account last triggered the same resource acquisition task is greater than a preset time difference threshold.
[0206] In an alternative implementation, in the instructions executed by the processor 610, the deducting the target game resources under the target account in response to the target account ending the operation of the target game on the cloud game platform includes:
[0207] In response to the target account ending the operation of the target game on the cloud game platform, based on the resource consumption corresponding to the target game, deduct the target game resources under the target account.
[0208] In an alternative implementation, in the instructions executed by the processor 610, the deducting the target game resources under the target account based on the resource consumption corresponding to the target game includes:
[0209] Based on the resource consumption corresponding to the target game and the resource deduction order corresponding to the target game, deduct the target game resources within the effective time period from the target game resources under the target account.
[0210] In an alternative implementation, the target game resources include first game resources and second game resources; in the instructions executed by the processor 610, the target game resources corresponding to the target account are determined through the following steps:
[0211] For multiple first game resources corresponding to the target account that are currently within the effective time period, based on the effective duration of each first game resource and the current time, determine the first type of effective resources;
[0212] For multiple second game resources corresponding to the target account that are currently within the effective time, accumulate the remaining time of each second game resource to determine the second type of effective resources;
[0213] Sum the first type of effective resources and the second type of effective resources to determine the target game resources corresponding to the target account.
[0214] In an alternative implementation, in the instructions executed by the processor 610, the determining the first type of effective resources based on the effective duration of each first game resource and the current time includes:
[0215] Determine the target first type of effective resources with the longest effective duration among the effective durations of multiple first game resources;
[0216] Determine a target effective duration based on the difference between the end time of the target first - type valid resource and the current time;
[0217] Take the minimum value of the target effective duration and the remaining duration of the target first - type valid resource to determine the first - type valid resource.
[0218] In an optional implementation, in the instructions executed by the processor 610, the end time of the target first - type valid resource is determined through the following steps:
[0219] Detect whether the target first - type valid resource is the first first - type valid resource issued among multiple first - type valid resources;
[0220] If the target first - type valid resource is the first first - type valid resource issued among multiple first - type valid resources, determine the end time of the target first - type valid resource based on the start time of the target first - type valid resource, the effective duration of the target first - type valid resource, and the additional resources configured for the target first - type valid resource;
[0221] If the target first - type valid resource is not the first first - type valid resource issued among multiple first - type valid resources, determine the end time of the first - type valid resource preceding the target first - type valid resource and adjacent to the target first - type valid resource as the target start time of the target first - type valid resource;
[0222] Determine the end time of the target first - type valid resource based on the target start time and the effective duration of the target first - type valid resource.
[0223] In an optional implementation, in the instructions executed by the processor 610, the remaining time of each second - type game resource is determined through the following steps:
[0224] For each second - type game resource, determine a second - type effective duration based on the difference between the end time of this second - type game resource and the current time;
[0225] For each second - type game resource, take the minimum value of this second - type effective duration and the remaining duration of the second - type game resource to determine the remaining time of this second - type game resource.
[0226] In an optional implementation, the target game resource is a valid - duration resource issued by the cloud game platform; the first game resource is a continuous game resource that remains valid within the valid duration; the second game resource is a discrete game resource that has a preset number of valid - duration times within the valid duration.
[0227] In an alternative embodiment, among the instructions executed by the processor 610, the resource deduction order is determined through the following steps:
[0228] Based on the order of the end times of each game resource in the target game resources and the resource type priorities of each game resource corresponding to the target game, determine the resource deduction order.
[0229] In the above manner, the cloud game platform distributes different game resources for different games. After the target account ends running the target game on the cloud game platform, specifically for the target game, the target game resources corresponding to the target game are deducted to improve the accuracy and flexibility of the game resource allocation and deduction on the cloud game platform, thereby enhancing the gaming experience of players. At the same time, different strategy triggers can be configured in the target game, and different cloud games support configuring different strategy triggers. To improve the flexibility and scalability of the system. At the same time, determining the resource deduction order can ensure that players can maximize the effective duration of the target game resources they own, which helps to enhance the gaming experience of players.
[0230] The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, so that when the computer program is run by a processor, the following instructions are executed:
[0231] In response to the target account starting the target game through the cloud game platform, determine whether the target account is configured with the target game resources issued by the cloud game platform, where the target game resources correspond to the target game, and different games correspond to different game resources issued by the cloud game platform;
[0232] In response to the target account being configured with the target game resources, run the target game on the cloud game platform and display the game screen of the target game on the terminal device corresponding to the target account;
[0233] In response to the target account ending the operation of the target game on the cloud game platform, deduct the target game resources of the target account.
[0234] In an alternative embodiment, among the instructions executed by the computer-readable storage medium, the target game resources corresponding to the target game are determined through the following steps:
[0235] Based on the platform resource consumption information of the target game, determine the target game resources corresponding to the target game.
[0236] In an alternative embodiment, the instructions executed by the computer-readable storage medium further include:
[0237] In response to a resource configuration operation for the target game, a resource acquisition task for the target game is generated on the cloud gaming platform;
[0238] In response to the target account completing the resource acquisition task, based on the resource acquisition task, the target game resources corresponding to the target game are issued to the target account.
[0239] In an alternative implementation, the resource acquisition task includes at least one of the following:
[0240] Logging in to the target game on the cloud gaming platform through the target account, the continuous duration of logging in to the target game on the cloud gaming platform through the target account being greater than a preset duration threshold, registering a corresponding game account for the target game on the cloud gaming platform, making a consumption for the target account corresponding to the target game on the cloud gaming platform, participating in a target game activity when running the target game on the cloud gaming platform, and the game time of running the target game on the cloud gaming platform reaching a preset gift time node.
[0241] In an alternative implementation, in the instructions executed by the computer-readable storage medium, the issuing of the target game resources corresponding to the target game to the target account based on the resource acquisition task includes:
[0242] In response to the target account completing the resource acquisition task, based on the task type of the resource acquisition task, if the target account meets the preset game resource issuing requirements, the target game resources corresponding to the target game are issued to the target account;
[0243] Among them, the target account meeting the preset game resource issuing requirements includes at least one of the following:
[0244] The number of game resources currently owned by the target account is less than a preset quantity threshold, and the time difference between the time when the target account completes the resource acquisition task and the time when the target account last triggered the same resource acquisition task is greater than a preset time difference threshold.
[0245] In an alternative implementation, in the instructions executed by the computer-readable storage medium, the deduction of the target game resources under the target account in response to the target account ending the running of the target game on the cloud gaming platform includes:
[0246] In response to the target account ending the running of the target game on the cloud gaming platform, based on the resource consumption corresponding to the target game, the target game resources under the target account are deducted.
[0247] In an alternative embodiment, among the instructions executed by the computer-readable storage medium, the deduction of the target game resources under the target account based on the resource consumption corresponding to the target game includes:
[0248] Based on the resource consumption corresponding to the target game and the resource deduction order corresponding to the target game, deduct the target game resources within the valid time period from the target game resources under the target account.
[0249] In an alternative embodiment, the target game resources include first game resources and second game resources; among the instructions executed by the computer-readable storage medium, the target game resources corresponding to the target account are determined through the following steps:
[0250] For various first game resources currently within the valid time period corresponding to the target account, based on the valid duration of each first game resource and the current time, determine the first type of valid resources;
[0251] For various second game resources currently within the valid time corresponding to the target account, accumulate the remaining time of each second game resource to determine the second type of valid resources;
[0252] Sum the first type of valid resources and the second type of valid resources to determine the target game resources corresponding to the target account.
[0253] In an alternative embodiment, among the instructions executed by the computer-readable storage medium, the determination of the first type of valid resources based on the valid duration of each first game resource and the current time includes:
[0254] Determine the target first type of valid resources with the longest valid duration among the valid durations of various first game resources;
[0255] Based on the difference between the end time of the target first type of valid resources and the current time, determine the target valid duration;
[0256] Take the minimum value of the target valid duration and the remaining duration of the target first type of valid resources to determine the first type of valid resources.
[0257] In an alternative embodiment, among the instructions executed by the computer-readable storage medium, the end time of the target first type of valid resources is determined through the following steps:
[0258] Detect whether the target first type of valid resources is the first first type of valid resources issued among various first type of valid resources;
[0259] If the target first - type valid resource is the first - issued first - type valid resource among multiple first - type valid resources, determine the end time of the target first - type valid resource based on the start time of the target first - type valid resource, the valid duration of the target first - type valid resource, and the additional resources allocated for the target first - type valid resource;
[0260] If the target first - type valid resource is not the first - issued first - type valid resource among multiple first - type valid resources, determine the end time of the first - type valid resource that is adjacent to the target first - type valid resource and has a release time before the target first - type valid resource as the target start time of the target first - type valid resource;
[0261] Based on the target start time and the valid duration of the target first - type valid resource, determine the end time of the target first - type valid resource.
[0262] In an alternative implementation, in the instructions executed by the computer - readable storage medium, determine the remaining time of each second - type game resource through the following steps:
[0263] For each second - type game resource, determine the second - type valid duration based on the difference between the end time of this second - type game resource and the current time;
[0264] For each second - type game resource, take the minimum value of this second - type valid duration and the remaining duration of the second - type game resource to determine the remaining time of this second - type game resource.
[0265] In an alternative implementation, the target game resource is the valid - duration resource issued by the cloud game platform; the first - type game resource is a continuous game resource that remains valid within the valid duration; the second - type game resource is a discrete game resource that has a preset number of valid - duration times within the valid duration.
[0266] In an alternative implementation, in the instructions executed by the computer - readable storage medium, determine the resource deduction order through the following steps:
[0267] Based on the order of the end times of each game resource in the target game resource from earliest to latest and the resource - type priority of each game resource corresponding to the target game, determine the resource deduction order.
[0268] In the above manner, the cloud game platform distributes different game resources for different games. After the target account finishes running the target game on the cloud game platform, the target game resources corresponding to the target game are deducted specifically for the target game, so as to improve the accuracy and flexibility of the game resource allocation and deduction on the cloud game platform, thereby enhancing the game experience of players. At the same time, different strategy triggers can be configured in the target game, and different cloud games support different configuration of strategy triggers. In order to improve the flexibility and scalability of the system. At the same time, determining the order of resource deduction can ensure that players can maximize the effective duration of the target game resources they own, which helps to enhance the game experience of players.
[0269] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0270] In several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.
[0271] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0272] In addition, in each embodiment of the present disclosure, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0273] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such an understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.
[0274] Finally, it should be noted that the above-mentioned embodiments are only specific implementation manners of the present disclosure, used to illustrate the technical solutions of the present disclosure, rather than limiting them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed by the present disclosure can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A resource allocation method for a cloud gaming platform, characterized in that: The cloud gaming platform is configured with a plurality of games, and the resource allocation method comprises: In response to a target account opening a target game through the cloud gaming platform, determining whether the target account is configured with a target game resource issued by the cloud gaming platform, wherein the target game resource corresponds to the target game, and different games correspond to different game resources issued by the cloud gaming platform; In response to the target account being configured with the target game resource, running the target game on the cloud game platform, and displaying a game screen of the target game on a terminal device corresponding to the target account; In response to the target account ending running the target game on the cloud gaming platform, the target game resources under the target account are deducted.
2. The resource allocation method according to claim 1, characterized in that: Determine the target game resources corresponding to the target game by following the steps below: Based on the platform resource consumption information of the target game, target game resources corresponding to the target game are determined.
3. The resource allocation method according to claim 1, characterized in that: The resource allocation method further comprises: In response to the resource configuration operation for the target game, generating a resource acquisition task for the target game on the cloud gaming platform; In response to the target account completing the resource acquisition task, the target game resource corresponding to the target game is issued to the target account based on the resource acquisition task.
4. The resource allocation method according to claim 3, characterized in that: The resource acquisition task includes at least one of the following: The target game is logged in through the target account on the cloud game platform, the continuous time of logging in to the target game through the target account on the cloud game platform is greater than a preset time threshold, a corresponding game account is registered for the target game on the cloud game platform, consumption is made on the cloud game platform for the target account corresponding to the target game, target game activities are participated in when the target game is run on the cloud game platform, and the game time of running the target game on the cloud game platform reaches a preset gift time node.
5. The resource allocation method according to claim 3, characterized in that: The issuing of the target game resource corresponding to the target game to the target account based on the resource acquisition task includes: In response to the target account completing the resource acquisition task, based on the task type of the resource acquisition task, if the target account meets the preset game resource issuance requirement, issuing the target game resource corresponding to the target game to the target account; The target account satisfies the preset game resource distribution requirements, including at least one of the following: The number of game resources currently owned by the target account is less than a preset number threshold, and the time difference between the time when the target account completes the resource acquisition task and the time when the target account last triggered the same resource acquisition task is greater than a preset time difference threshold.
6. The resource allocation method according to claim 1, characterized in that: In response to the target account ending the running of the target game on the cloud game platform, deducting the target game resources under the target account, including: In response to the target account ending running the target game on the cloud gaming platform, the target game resources under the target account are deducted based on resource consumption corresponding to the target game.
7. The resource allocation method according to claim 5, characterized in that: The deducting the target game resources under the target account based on the resource consumption corresponding to the target game includes: Based on the resource consumption corresponding to the target game and the resource deduction order corresponding to the target game, the target game resources within the valid time period are deducted from the target game resources under the target account.
8. The resource allocation method according to claim 1, characterized in that: The target game resources include a first game resource and a second game resource; Determine the target game resources corresponding to the target account through the following steps: For the multiple first game resources currently in the valid time period corresponding to the target account, determine the first type of valid resources based on the valid time length of each first game resource and the current time; For the multiple second game resources currently within the valid time corresponding to the target account, the remaining time of each second game resource is accumulated to determine the second type of valid resources; The first type of valid resources and the second type of valid resources are added together to determine the target game resources corresponding to the target account.
9. The resource allocation method according to claim 8, characterized in that: The determining of the first type of valid resources based on the valid duration of each first game resource and the current time includes: Determine the target first-type valid resource with the longest valid duration among the multiple first game resources; Determine a target effective duration based on a difference between the end time of the target first type effective resource and the current time; The target effective duration and the remaining duration of the target first-type effective resource are taken as the minimum value to determine the first-type effective resource.
10. The resource allocation method according to claim 9, characterized in that: Determine the end time of the target first type of valid resources by following these steps: Detecting whether the target first-type valid resource is the first first-type valid resource issued among multiple first-type valid resources; If the target first-type valid resource is the first first-type valid resource issued among multiple first-type valid resources, based on the start time of the target first-type valid resource, the valid duration of the target first-type valid resource, and the additional resources configured for the target first-type valid resource, determine the end time of the target first-type valid resource; If the target first-type valid resource is not the first first-type valid resource issued among multiple first-type valid resources, the end time of a first-type valid resource whose issuance time is before the target first-type valid resource and adjacent to the target first-type valid resource is determined as the target start time of the target first-type valid resource; Based on the target start time and the effective duration of the target first-type effective resource, an end time of the target first-type effective resource is determined.
11. The resource allocation method according to claim 8, characterized in that: Determine the remaining time for each secondary game resource by following these steps: For each second game resource, determining the second type effective duration based on the difference between the end time of the second game resource and the current time; For each type of second game resource, the remaining time of the second type of game resource is determined by taking the minimum value of the effective time of the second type and the remaining time of the second game resource.
12. The resource allocation method according to claim 8, characterized in that: The target game resource is a valid duration resource issued by the cloud game platform; the first game resource is a continuous game resource that is valid within the valid duration; the second game resource is a discrete game resource that has a preset valid duration number of times within the valid duration.
13. The resource allocation method according to claim 7, characterized in that: The resource deduction order is determined by the following steps: The resource deduction order is determined based on the early and late order of the end time of each game resource in the target game resources and the resource type priority of each game resource corresponding to the target game.
14. A resource allocation device for a cloud gaming platform, characterized in that: The cloud gaming platform is configured with a plurality of games, and the resource allocation device comprises: a game resource determination module, configured to determine, in response to a target account opening a target game through the cloud game platform, whether the target account is configured with a target game resource issued by the cloud game platform, wherein the target game resource corresponds to the target game, and different games correspond to different game resources issued by the cloud game platform; A game screen display module, configured to run the target game on the cloud game platform and display the game screen of the target game on the terminal device corresponding to the target account in response to the target game resource being configured on the target account; The resource deduction module is used to deduct the target game resources under the target account in response to the target account ending the operation of the target game on the cloud game platform.
15. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the resource allocation method for the cloud gaming platform as described in any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the resource allocation method for a cloud gaming platform as described in any one of claims 1 to 13.