CN110201397B - Game resource allocation method and device and electronic equipment - Google Patents
Game resource allocation method and device and electronic equipment Download PDFInfo
- Publication number
- CN110201397B CN110201397B CN201910580215.8A CN201910580215A CN110201397B CN 110201397 B CN110201397 B CN 110201397B CN 201910580215 A CN201910580215 A CN 201910580215A CN 110201397 B CN110201397 B CN 110201397B
- Authority
- CN
- China
- Prior art keywords
- resource
- resources
- folder
- game
- path
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/77—Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及游戏开发技术领域,特别是涉及一种游戏资源配置方法、装置及电子设备。The present invention relates to the technical field of game development, in particular to a game resource allocation method, device and electronic device.
背景技术Background technique
Unity(联合)游戏编辑器是一款多平台的综合型游戏开发工具,游戏开发人员通过Unity游戏编辑器可以方便的完成游戏项目的开发。Unity (joint) game editor is a multi-platform comprehensive game development tool, game developers can easily complete the development of game projects through the Unity game editor.
游戏开发人员在使用Unity游戏编辑器进行游戏项目开发的过程中,在每次添加或者修改游戏资源时,游戏开发人员都需要手动的对游戏资源进行配置,其中,游戏资源表示游戏运行所需的2D(2 Dimensions,二维)图片、3D(3 Dimensions,三维)模型或音乐等文件。示例性,当需要在游戏中添加一张2D图像时,游戏开发人员,需要在2D图像配置界面中手动选择2D图像的纹理类型、α通道来源,以及是否开启过滤算法等配置信息。When game developers use the Unity game editor to develop game projects, each time they add or modify game resources, game developers need to manually configure game resources. 2D (2 Dimensions, two-dimensional) pictures, 3D (3 Dimensions, three-dimensional) models or files such as music. For example, when a 2D image needs to be added to the game, the game developer needs to manually select the texture type of the 2D image, the source of the alpha channel, and whether to enable the filtering algorithm and other configuration information in the 2D image configuration interface.
发明人在实现本发明的过程中发现,现有技术至少存在如下问题:In the process of realizing the present invention, the inventor found that the prior art has at least the following problems:
在游戏项目开发的过程中,游戏资源会随着项目开发不断增多,游戏开发人员每次添加或者修改游戏资源时都需要手动对游戏资源进行重新配置,导致游戏资源配置的效率较低。In the process of game project development, game resources will continue to increase with project development, and game developers need to manually reconfigure game resources every time they add or modify game resources, resulting in low game resource allocation efficiency.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种资源配置方法,以提高游戏资源配置的效率。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a resource allocation method, so as to improve the efficiency of game resource allocation. The specific technical solutions are as follows:
本发明实施例提供一种游戏资源配置方法,包括:An embodiment of the present invention provides a method for configuring game resources, including:
获取预设的配置信息表,所述配置信息表中记录有资源文件夹路径、资源配置模板路径和待配置资源筛选规则;Obtaining a preset configuration information table, where the resource folder path, the resource configuration template path and the resource screening rule to be configured are recorded in the configuration information table;
确定所述资源文件夹路径对应的资源文件夹,以及所述资源配置模板路径对应的资源配置模板,其中,所述资源文件夹中预存有多个游戏资源,所述资源配置模板为预先生成的记录有资源配置信息的模板;Determine the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path, wherein the resource folder has multiple game resources pre-stored, and the resource configuration template is pre-generated A template that records resource configuration information;
基于所述待配置资源筛选规则,在所述资源文件夹预存的所述多个游戏资源中,筛选出待配置资源;Based on the to-be-configured resource screening rule, filter out the to-be-configured resources from the plurality of game resources pre-stored in the resource folder;
按照所述资源配置模板中记录的所述资源配置信息,对所述待配置资源进行配置。The resource to be configured is configured according to the resource configuration information recorded in the resource configuration template.
进一步的,在所述读取预设的配置信息表之前,还包括:Further, before the reading the preset configuration information table, it also includes:
展示自动配置控件;Display auto-configuration controls;
所述获取预设的配置信息表,包括:The obtaining of the preset configuration information table includes:
当接收到针对所述自动配置控件的选中操作时,获取预设的配置信息表。When a selection operation for the automatic configuration control is received, a preset configuration information table is acquired.
进一步的,在所述确定所述资源文件夹路径对应的资源文件夹,以及所述资源配置模板路径对应的资源配置模板之前,还包括:Further, before the determining of the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path, the method further includes:
判断所述资源文件夹路径下是否存在文件夹,以及所述资源配置模板路径下是否存在资源配置模板;Determine whether there is a folder under the resource folder path, and whether there is a resource configuration template under the resource configuration template path;
当所述资源文件夹路径下不存在文件夹,或者所述资源配置模板路径下不存在资源配置模板时,将所述配置信息表标记为不合格;When there is no folder under the resource folder path, or there is no resource configuration template under the resource configuration template path, marking the configuration information table as unqualified;
所述确定所述资源文件夹路径对应的资源文件夹,以及所述资源配置模板路径对应的资源配置模板,包括:The determining the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path includes:
当所述资源文件夹路径下存在文件夹,且所述资源配置模板路径下存在资源配置模板时,确定所述资源文件夹路径对应的资源文件夹,以及所述资源配置模板路径对应的资源配置模板。When a folder exists in the resource folder path and a resource configuration template exists in the resource configuration template path, determine the resource folder corresponding to the resource folder path and the resource configuration corresponding to the resource configuration template path template.
进一步的,所述待配置资源筛选规则包括预设的第一关键词和第二关键词;Further, the to-be-configured resource screening rule includes a preset first keyword and a second keyword;
所述基于所述待配置资源筛选规则,在所述资源文件夹预存的所述多个游戏资源中,筛选出待配置资源,包括:The to-be-configured resources are filtered out of the plurality of game resources pre-stored in the resource folder based on the to-be-configured resource screening rules, including:
在所述资源文件夹预存的所述多个游戏资源中,筛选出名称中包含所述第一关键词的游戏资源,作为第一类资源;From the plurality of game resources pre-stored in the resource folder, filter out game resources whose names contain the first keyword as the first type of resources;
在所述第一类资源中,筛选出名称中不包含所述第二关键词的游戏资源,作为待配置资源;或者,In the first type of resources, filter out game resources whose names do not contain the second keyword, as resources to be configured; or,
在所述第一类资源中,筛选出名称中包含所述第二关键词的游戏资源,作为待配置资源。Among the resources of the first type, game resources whose names contain the second keyword are screened out as resources to be configured.
进一步的,所述生成记录有资源配置信息的模板包括:Further, the generating and recording a template with resource configuration information includes:
获取待配置的游戏资源,作为第一资源,并确定所述第一资源所属的游戏资源类型;Acquire the game resource to be configured as the first resource, and determine the game resource type to which the first resource belongs;
根据所述游戏资源类型,弹出资源配置框,所述资源配置框中展示有所述游戏资源类型的各配置选项;According to the game resource type, a resource configuration box pops up, and the resource configuration box displays various configuration options of the game resource type;
当接收到针对所述各配置选项的选择操作时,确定所述选择操作所选择的配置信息,作为第一配置信息;When receiving a selection operation for each of the configuration options, determine the configuration information selected by the selection operation as the first configuration information;
当接收到资源配置模板生成操作时,生成记录有所述第一配置信息的资源配置模板。When the resource configuration template generation operation is received, a resource configuration template in which the first configuration information is recorded is generated.
本发明实施例还提供一种游戏资源配置装置,所述装置包括:An embodiment of the present invention further provides a game resource configuration device, the device includes:
信息表获取模块,用于获取预设的配置信息表,所述配置信息表中记录有资源文件夹路径、资源配置模板路径和待配置资源筛选规则;an information table obtaining module, configured to obtain a preset configuration information table, where the resource folder path, the resource configuration template path and the resource screening rule to be configured are recorded in the configuration information table;
第一确定模块,用于确定所述资源文件夹路径对应的资源文件夹,以及所述资源配置模板路径对应的资源配置模板,其中,所述资源文件夹中预存有多个游戏资源,所述资源配置模板为预先生成的记录有资源配置信息的模板;A first determination module, configured to determine a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path, wherein the resource folder has a plurality of game resources pre-stored, the The resource configuration template is a pre-generated template that records resource configuration information;
资源筛选模块,用于基于所述待配置资源筛选规则,在所述资源文件夹预存的所述多个游戏资源中,筛选出待配置资源;A resource screening module, configured to screen out the resources to be configured from the plurality of game resources pre-stored in the resource folder based on the resource screening rules to be configured;
资源配置模块,用于按照所述资源配置模板中记录的所述资源配置信息,对所述待配置资源进行配置。A resource configuration module, configured to configure the resource to be configured according to the resource configuration information recorded in the resource configuration template.
进一步的,所述装置还包括:Further, the device also includes:
控件展示模块,用于展示自动配置控件;The control display module is used to display the automatic configuration control;
所述信息表获取模块,具体用于当接收到针对所述自动配置控件的选中操作时,获取预设的配置信息表。The information table acquisition module is specifically configured to acquire a preset configuration information table when a selection operation for the automatic configuration control is received.
进一步的,所述装置还包括:Further, the device also includes:
判断模块,用于判断所述资源文件夹路径下是否存在文件夹,以及所述资源配置模板路径下是否存在资源配置模板;a judgment module, configured to judge whether a folder exists under the resource folder path, and whether a resource configuration template exists under the resource configuration template path;
标记模块,用于当所述资源文件夹路径下不存在文件夹,或者所述资源配置模板路径下不存在资源配置模板时,将所述配置信息表标记为不合格;a marking module, configured to mark the configuration information table as unqualified when there is no folder under the resource folder path, or when there is no resource configuration template under the resource configuration template path;
所述第一确定模块,具体用于当所述资源文件夹路径下存在文件夹,且所述资源配置模板路径下存在资源配置模板时,确定所述资源文件夹路径对应的资源文件夹,以及所述资源配置模板路径对应的资源配置模板。The first determining module is specifically configured to determine a resource folder corresponding to the resource folder path when a folder exists under the resource folder path and a resource configuration template exists under the resource configuration template path, and The resource configuration template corresponding to the resource configuration template path.
进一步的,所述待配置资源筛选规则包括预设的第一关键词和第二关键词;Further, the to-be-configured resource screening rule includes a preset first keyword and a second keyword;
所述资源筛选模块,具体用于在所述资源文件夹预存的所述多个游戏资源中,筛选出名称中包含所述第一关键词的游戏资源,作为第一类资源,并且在所述第一类资源中,筛选出名称中不包含所述第二关键词的游戏资源,作为待配置资源,或者,在所述第一类资源中,筛选出名称中包含所述第二关键词的游戏资源,作为待配置资源。The resource screening module is specifically configured to screen out the game resources that contain the first keyword in the name of the plurality of game resources pre-stored in the resource folder, as the first type of resources, and In the first type of resources, filter out game resources whose names do not contain the second keyword as resources to be configured, or, in the first type of resources, filter out game resources whose names contain the second keyword. Game resources, as resources to be configured.
进一步的,所述装置还包括:Further, the device also includes:
资源获取模块,用于获取待配置的游戏资源,作为第一资源,并确定所述第一资源所属的游戏资源类型;a resource acquisition module, configured to acquire a game resource to be configured as a first resource, and determine the game resource type to which the first resource belongs;
配置框弹出模块,用于根据所述游戏资源类型,弹出资源配置框,所述资源配置框中展示有所述游戏资源类型的各配置选项;a configuration box pop-up module, configured to pop up a resource configuration box according to the game resource type, and the resource configuration box displays each configuration option of the game resource type;
第二确定模块,用于当接收到针对所述各配置选项的选择操作时,确定所述选择操作所选择的配置信息,作为第一配置信息;a second determining module, configured to determine, when a selection operation for each configuration option is received, the configuration information selected by the selection operation as the first configuration information;
模板生成模块,用于当接收到资源配置模板生成操作时,生成记录有所述第一配置信息的资源配置模板。The template generation module is configured to generate a resource configuration template in which the first configuration information is recorded when a resource configuration template generation operation is received.
本发明实施例还提供一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An embodiment of the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现上述任一游戏资源配置方法的步骤。The processor is configured to implement the steps of any of the above game resource configuration methods when executing the program stored in the memory.
本发明实施还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一游戏资源配置方法的步骤。An implementation of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any of the above game resource configuration methods are implemented.
本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一游戏资源配置方法。Embodiments of the present invention also provide a computer program product containing instructions, which, when running on a computer, cause the computer to execute any of the above game resource configuration methods.
本发明实施例提供的一种游戏资源配置方法、装置及电子设备,方案中,获取预设的配置信息表,配置信息表中记录有资源文件夹路径、资源配置模板路径和待配置资源筛选规则,并且资源文件夹路径对应的资源文件夹,以及确定资源配置模板路径对应的资源配置模板,其中,资源文件夹中预存有多个游戏资源,资源配置模板为预先生成的记录有资源配置信息的模板,以及基于待配置资源筛选规则,在资源文件夹预存的多个游戏资源中,筛选出待配置资源,以及按照资源配置模板中记录的资源配置信息,对待配置资源进行配置,由于只通过配置信息表即可对资源文件夹中存在的待配置资源进行配置,避免了人工对待配置资源进行配置,提高了资源配置的效率。A game resource configuration method, device, and electronic device provided by the embodiments of the present invention. In the solution, a preset configuration information table is obtained, and the configuration information table records a resource folder path, a resource configuration template path, and a resource screening rule to be configured. , and the resource folder corresponding to the resource folder path, and the resource configuration template corresponding to the resource configuration template path, wherein the resource folder has multiple game resources pre-stored, and the resource configuration template is a pre-generated and recorded resource configuration information. template, and based on the filtering rules for resources to be configured, filter out the resources to be configured from the multiple game resources pre-stored in the resource folder, and configure the resources to be configured according to the resource configuration information recorded in the resource configuration template. The information table can configure the to-be-configured resources existing in the resource folder, which avoids manual configuration of the to-be-configured resources and improves the efficiency of resource configuration.
当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, it is not necessary for any product or method of the present invention to achieve all of the advantages described above at the same time.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are required in the description of the embodiments or the prior art.
图1为本发明一个实施例提供的游戏资源配置方法的流程图;1 is a flowchart of a method for configuring game resources provided by an embodiment of the present invention;
图2为本发明一个实施例提供的游戏资源配置装置的结构示意图;FIG. 2 is a schematic structural diagram of a game resource configuration device provided by an embodiment of the present invention;
图3为本发明一个实施例提供的资源配置模板生成方法的流程图;3 is a flowchart of a method for generating a resource configuration template provided by an embodiment of the present invention;
图4为本发明一个实施例提供的资源配置模板生成装置的结构示意图;4 is a schematic structural diagram of an apparatus for generating a resource configuration template provided by an embodiment of the present invention;
图5为本发明实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了给出提高游戏资源的配置效率的实现方案,本发明实施例提供了一种游戏资源配置方法、装置及电子设备,以下结合说明书附图对本发明的实施例进行说明。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。In order to provide an implementation scheme for improving the allocation efficiency of game resources, the embodiments of the present invention provide a method, apparatus and electronic device for configuring game resources. The embodiments of the present invention will be described below with reference to the accompanying drawings. And the embodiments in this application and the features in the embodiments may be combined with each other without conflict.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
在本发明的一个实施例中,提供一种游戏资源配置方法,如图1所示,该方法包括以下步骤:In an embodiment of the present invention, a method for configuring game resources is provided. As shown in FIG. 1 , the method includes the following steps:
S101:获取预设的配置信息表,配置信息表中记录有资源文件夹路径、资源配置模板路径和待配置资源筛选规则。S101: Acquire a preset configuration information table, where the resource folder path, the resource configuration template path and the to-be-configured resource screening rule are recorded in the configuration information table.
本步骤中,配置信息表可以是预先设置的,在一个实施例中,配置信息表可以为.json文件,例如,可以是Config.json文件。In this step, the configuration information table may be preset. In one embodiment, the configuration information table may be a .json file, for example, a Config.json file.
在一个实施例中,资源文件夹路径为资源文件夹所在的路径,可以预先设置有资源文件夹,资源文件夹中存放有事先制作、设置好的各游戏资源,示例性的,存在资源文件夹A,其存放有图片a、图片b和图片c,资源文件夹A的路径为C:\Users\Public,则配置信息表记录的资源文件夹路径为C:\Users\Public。In one embodiment, the resource folder path is the path where the resource folder is located, and a resource folder may be preset, and the resource folder stores various game resources that have been made and set in advance. Exemplarily, there is a resource folder. A, which stores picture a, picture b, and picture c, and the path of resource folder A is C:\Users\Public, then the resource folder path recorded in the configuration information table is C:\Users\Public.
在一个实施例中,资源配置模板路径为预先生成的资源配置模板所在的路径,示例性的,存在资源配置模板B,其所在的路径为C:\Userdata\Desktop\资源配置模板B,则配置信息表的资源配置模板路径为C:\Userdata\Desktop\资源配置模板B。In one embodiment, the resource configuration template path is the path where the pre-generated resource configuration template is located. Exemplarily, there is a resource configuration template B, and the path where the resource configuration template B is located is C:\Userdata\Desktop\Resource configuration template B, then configure The resource configuration template path of the information table is C:\Userdata\Desktop\Resource configuration template B.
在一个实施例中,待配置资源筛选规则可以是基于经验、需求、应用场景所确定,其用于,在资源文件夹存储的各游戏资源中,筛选出符合资源配置模板要求的待配置资源。In one embodiment, the to-be-configured resource screening rules may be determined based on experience, requirements, and application scenarios, and are used to filter out to-be-configured resources that meet the requirements of the resource configuration template from the game resources stored in the resource folder.
在一个实施例中,配置信息表可以记录有多对配置,每一对配置分别对应一个资源文件夹路径、一个资源配置模板路径和一个待配置资源筛选规则,且该资源文件夹路径、该资源配置模板路径和该待配置资源筛选规则相互关联。示例性的,配置信息表中记录有两对配置,配置T:资源文件夹路径A、资源配置模板路径B和待配置资源筛选规则C,配置P:资源文件夹路径D、资源配置模板路径E和待配置资源筛选规则F,在一个实施例,可以按照游戏资源的不同类型设置多个资源文件夹,例如,设置资源文件G存放图像类型的游戏资源,设置资源文件H存放3D模型类型的游戏资源,设置资源文件J存放音乐类型的游戏资源,进一步的,每个资源文件夹可以对应多个资源配置模板或者筛选规则。In one embodiment, the configuration information table may record multiple pairs of configurations, each pair of configurations corresponds to a resource folder path, a resource configuration template path, and a resource filtering rule to be configured, and the resource folder path, the resource The configuration template path and the to-be-configured resource filtering rule are associated with each other. Exemplarily, two pairs of configurations are recorded in the configuration information table, configuration T: resource folder path A, resource configuration template path B and resource filtering rule C to be configured, configuration P: resource folder path D, resource configuration template path E and resource screening rule F to be configured, in one embodiment, multiple resource folders can be set according to different types of game resources, for example, resource file G is set to store image type game resources, and resource file H is set to store 3D model type games Resources, set the resource file J to store game resources of the music type. Further, each resource folder can correspond to multiple resource configuration templates or filtering rules.
在一个实施例中,在获取预设的配置信息表之前,可以先展示自动配置控件,并当接收到针对自动配置控件的选中操作时,获取预设的配置信息表。其中,自动配置控件可以是图标控件,也可以是设置在菜单栏的选项,当接收到针对自动配置控件的选中操作时,获取预设的配置信息表。示例性的,在菜单栏设置AssetsSet(资源设置)选项为自动配置控件,当接收到AssetsSet的点击操作时,可以通过默认路径获取配置信息表,示例性的,默认路径可以为Assets/Third/AssetsSetRes/Config.json。In one embodiment, before obtaining the preset configuration information table, the automatic configuration control may be displayed first, and when a selection operation for the automatic configuration control is received, the preset configuration information table is obtained. The automatic configuration control may be an icon control or an option set in the menu bar. When a selection operation for the automatic configuration control is received, a preset configuration information table is obtained. Exemplarily, set the AssetsSet (resource setting) option on the menu bar as an automatic configuration control. When a click operation of AssetsSet is received, the configuration information table can be obtained through the default path. Exemplarily, the default path can be Assets/Third/AssetsSetRes /Config.json.
S102:判断资源文件夹路径下是否存在文件夹,且资源配置模板路径下是否存在资源配置模板;S102: Determine whether a folder exists in the resource folder path, and whether a resource configuration template exists in the resource configuration template path;
本步骤中,为了避免错误操作,可以在获取预设的配置信息表后,判断配置信息表中记录的资源文件夹路径下是否存在文件夹,以及配置信息表中记录的资源配置模板路径下是否存在资源配置模板。In this step, in order to avoid wrong operations, after obtaining the preset configuration information table, it is possible to determine whether there is a folder under the resource folder path recorded in the configuration information table, and whether there is a folder under the resource configuration template path recorded in the configuration information table. A resource configuration template exists.
在一个实施例中,当资源文件夹路径下存在文件夹,且资源配置模板路径下存在资源配置模板时,既配置信息表合法,则执行步骤S103。In one embodiment, when a folder exists in the resource folder path and a resource configuration template exists in the resource configuration template path, and the configuration information table is valid, step S103 is executed.
在一个实施例中,当资源文件夹路径下不存在文件夹,或者资源配置模板路径下不存在资源配置模板时,执行步骤S106。In one embodiment, when there is no folder under the resource folder path, or there is no resource configuration template under the resource configuration template path, step S106 is performed.
S103:确定资源文件夹路径对应的资源文件夹,以及资源配置模板路径对应的资源配置模板,其中,资源文件夹中预存有多个游戏资源,资源配置模板为预先生成的记录有资源配置信息的模板。S103: Determine a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path, wherein the resource folder has a plurality of game resources pre-stored, and the resource configuration template is a pre-generated file that records resource configuration information template.
本步骤中,可以在确定资源文件夹路径下存在文件夹,且资源配置模板路径下存在资源配置模板的情况下,通过资源文件夹路径确定资源文件夹路径下的资源文件夹,通过资源配置模板路径确定资源配置模板路径下的资源配置模板。In this step, if it is determined that a folder exists under the resource folder path, and a resource configuration template exists under the resource configuration template path, the resource folder under the resource folder path may be determined by the resource folder path, and the resource configuration template may be used to determine the resource folder under the resource folder path. Path determines the resource configuration template under the resource configuration template path.
在一个实施例中,资源文件夹中可以预存有多个游戏资源,示例性的,资源文件夹A,其预存有图片a、图片b和图片c。In one embodiment, multiple game resources may be pre-stored in the resource folder, for example, resource folder A, which pre-stores picture a, picture b, and picture c.
在一个实施例中,资源配置模板为预先生成的记录有资源配置信息的模板,具体如何生存资源配置模板后续有详细介绍,在此不再赘述。In one embodiment, the resource configuration template is a pre-generated template in which resource configuration information is recorded. How to survive the resource configuration template will be described in detail later, and will not be repeated here.
S104:基于待配置资源筛选规则,在资源文件夹预存的多个游戏资源中,筛选出待配置资源。S104: Based on the to-be-configured resource screening rule, filter out to-be-configured resources from multiple game resources pre-stored in the resource folder.
本步骤中,可以通过待配置资源筛选规则对资源文件夹预存的多个游戏资源进行筛选,从而确定对资源文件夹预存的多个游戏资源中,可以使用资源配置模板的游戏资源。In this step, a plurality of game resources pre-stored in the resource folder may be screened by the to-be-configured resource screening rules, so as to determine the game resources that can use the resource configuration template among the plurality of game resources pre-stored in the resource folder.
示例性的,资源文件夹A,其预存有图片a、图片b和图片c,其中图片a和图片b的纹理类型为Default(默认)类型,而图片c的纹理类型为NormalMap(标准图)类型,资源配置模板B对应的待配置资源筛选规则的纹理类型为Default类型的图片,则在资源文件A中确定图片a和图片b为待配置资源。Exemplarily, resource folder A, which pre-stores picture a, picture b, and picture c, wherein the texture types of picture a and picture b are Default (default) type, and the texture type of picture c is NormalMap (standard picture) type , the texture type of the to-be-configured resource filtering rule corresponding to the resource configuration template B is a picture of the Default type, then the picture a and the picture b are determined in the resource file A as the to-be-configured resources.
在一个实施例中,还可以通过游戏资源的名称进行待配置资源的筛选,本领域的技术人员可以理解的是,通过名称进行待配置资源的筛选意味着每个游戏资源的名称与其资源类型、应用场景等是相匹配的。In one embodiment, resources to be configured can also be screened by the name of the game resource. Those skilled in the art can understand that screening the resource to be configured by name means that the name of each game resource and its resource type, The application scenarios, etc. are matched.
在一个实施例中,待配置资源筛选规则包括预设的第一关键词和第二关键词,其中,第一关键词和第二关键词是不同的,此时,待配置资源筛选规则至少存在以下两种方式:In one embodiment, the resource screening rule to be configured includes a preset first keyword and a second keyword, where the first keyword and the second keyword are different. In this case, the resource screening rule to be configured exists at least The following two ways:
第一种方式:在资源文件夹预存的多个游戏资源中,筛选出名称中包含第一关键词的游戏资源,作为第一类资源,并在第一类资源中,筛选出名称中不包含第二关键词的游戏资源,作为待配置资源。The first method: From the multiple game resources pre-stored in the resource folder, filter out the game resources that contain the first keyword in the name as the first type of resources, and filter out the game resources that do not contain the first keyword in the first type of resources. The game resource of the second keyword is used as the resource to be configured.
示例性的,第一关键词为wood(石头),第二关键词为corrupt(腐败),并且资源文件夹A中图片a、图片b和图片c,其中图片a的名称为wood_normal.png,图片b的名称为stone_normal.png,图片c的名称为wood_corrupt.png,则基于第一关键词wood可以筛选出图片a和图片c,作为第一类资源,基于第二关键词corrupt,筛选出图片a,作为待配置资源。Exemplarily, the first keyword is wood (stone), the second keyword is corrupt (corruption), and picture a, picture b, and picture c in resource folder A, where the name of picture a is wood_normal.png, and the picture The name of b is stone_normal.png, and the name of picture c is wood_corrupt.png. Based on the first keyword wood, picture a and picture c can be filtered out as the first type of resources. Based on the second keyword corrupt, picture a can be filtered out. , as the resource to be configured.
第二种方式:在资源文件夹预存的多个游戏资源中,筛选出名称中包含第一关键词的游戏资源,作为第一类资源,在所述资源文件夹预存的所述多个游戏资源中,筛选出名称中包含所述第一关键词的游戏资源,作为第一类资源,并在所述第一类资源中,筛选出名称中包含所述第二关键词的游戏资源,作为待配置资源。The second way: from the multiple game resources pre-stored in the resource folder, filter out the game resources whose names contain the first keyword, as the first type of resources, the multiple game resources pre-stored in the resource folder. , screen out the game resources whose names contain the first keyword as the first type of resources, and filter out the game resources whose names contain the second keyword in the first type of resources, as the resources to be Configure resources.
示例性的,第一关键词为wood(石头),第二关键词为corrupt(腐败),并且资源文件夹A中图片a、图片b和图片c,其中图片a的名称为wood_normal.png,图片b的名称为stone_normal.png,图片c的名称为wood_corrupt.png,则基于第一关键词wood可以筛选出图片a和图片c,作为第一类资源,基于第二关键词corrupt,筛选出图片c,作为待配置资源。Exemplarily, the first keyword is wood (stone), the second keyword is corrupt (corruption), and picture a, picture b, and picture c in resource folder A, where the name of picture a is wood_normal.png, and the picture The name of b is stone_normal.png, and the name of picture c is wood_corrupt.png. Based on the first keyword wood, picture a and picture c can be filtered out as the first type of resources. Based on the second keyword corrupt, picture c can be filtered out. , as the resource to be configured.
在一个实施例中,待配置资源筛选规则只包括一个预设的关键词,其对应的待配置资源的筛选规则可以将名称中包含该关键词的游戏资源作为待配置资源,或者,将名称中不包含该关键词的游戏资源作为待配置资源。In one embodiment, the to-be-configured resource screening rule only includes a preset keyword, and the corresponding to-be-configured resource screening rule may use the game resource whose name contains the keyword as the to-be-configured resource, or, use the name in the Game resources that do not contain this keyword are used as resources to be configured.
S105:按照资源配置模板中记录的资源配置信息,对待配置资源进行配置。S105: Configure the resource to be configured according to the resource configuration information recorded in the resource configuration template.
本步骤中,在资源文件夹中筛选出待配置资源后,可以资源配置模板中记录的资源配置信息,对待配置资源进行配置,在一个实施例中,筛选出的带配置资源可以是多个。In this step, after the resources to be configured are screened out in the resource folder, the resource configuration information recorded in the resource configuration template can be used to configure the resources to be configured. In one embodiment, the selected resources with configuration may be multiple.
示例性的,资源配置模板B对应的待配置筛选规则筛选出的待配置资源为图像a,则可以根据资源配置模板B中记录的资源配置信息,对图像a进行配置。Exemplarily, the to-be-configured resource screened out by the to-be-configured filtering rule corresponding to the resource configuration template B is image a, then the image a may be configured according to the resource configuration information recorded in the resource configuration template B.
在一个实施例中,本领域的技术人员可以理解的是,对于游戏开发项目,在整个游戏开发过程中,游戏中所需的图片、3D模型以及音乐等事先已经制作完成,只有少部分游戏资源在游戏开发的过程中需要进行修改、替换,或者新增游戏资源,对于同一类型,且应用场景基本相同的游戏资源,其所需的资源配置是相同的,因此,可以事先针对不同类型、不同应用场景的游戏资源确定其资源配置信息,并将其保存为资源配置模板,在对资源文件夹中存在的同一类型,且同一应用场景的游戏资源使用该资源配置模板对其进行资源配置。In one embodiment, those skilled in the art can understand that, for a game development project, in the entire game development process, pictures, 3D models, music, etc. required in the game have been produced in advance, and only a small number of game resources In the process of game development, it is necessary to modify, replace, or add game resources. For the same type of game resources with basically the same application scenario, the required resource configuration is the same. The game resource of the application scene determines its resource configuration information, and saves it as a resource configuration template. The game resources of the same type and the same application scene that exist in the resource folder use the resource configuration template to configure resources.
S106:将配置信息表标记为不合格。S106: Mark the configuration information table as unqualified.
本步骤中,当资源文件夹路径下不存在文件夹,或者资源配置模板路径下不存在资源配置模板时,确定配置信息表中记录的信息有误,此时,可以将将配置信息表标记为不合格。In this step, when there is no folder under the resource folder path, or there is no resource configuration template under the resource configuration template path, it is determined that the information recorded in the configuration information table is incorrect. In this case, the configuration information table can be marked as Failed.
本发明实施例提供的上述游戏资源配置方法中,获取预设的配置信息表,配置信息表中记录有资源文件夹路径、资源配置模板路径和待配置资源筛选规则,并且资源文件夹路径对应的资源文件夹,以及确定资源配置模板路径对应的资源配置模板,其中,资源文件夹中预存有多个游戏资源,资源配置模板为预先生成的记录有资源配置信息的模板,以及基于待配置资源筛选规则,在资源文件夹预存的多个游戏资源中,筛选出待配置资源,以及按照资源配置模板中记录的资源配置信息,对待配置资源进行配置,由于只通过配置信息表即可对资源文件夹中存在的待配置资源进行配置,避免了人工对待配置资源进行配置,提高了资源配置的效率。In the above game resource configuration method provided by the embodiment of the present invention, a preset configuration information table is obtained, and the configuration information table records a resource folder path, a resource configuration template path, and a resource screening rule to be configured, and the resource folder path corresponds to The resource folder, and the resource configuration template corresponding to the determined resource configuration template path, wherein a plurality of game resources are pre-stored in the resource folder, and the resource configuration template is a pre-generated template that records resource configuration information, and is filtered based on resources to be configured. The rule is to filter out the resources to be configured from the multiple game resources pre-stored in the resource folder, and configure the resources to be configured according to the resource configuration information recorded in the resource configuration template. Since the resource folder can be configured only through the configuration information table. The resources to be configured exist in the configuration, which avoids manual configuration of the resources to be configured, and improves the efficiency of resource configuration.
本发明实施例还提供一种用于生成上述步骤S103中的资源配置模板的资源配置模板生成方法,如图2所示,包括步骤:The embodiment of the present invention also provides a resource configuration template generation method for generating the resource configuration template in the above step S103, as shown in FIG. 2, including steps:
S201:获取待配置的游戏资源,作为第一资源,并确定第一资源所属的游戏资源类型。S201: Acquire a game resource to be configured as a first resource, and determine a game resource type to which the first resource belongs.
本步骤中,可以获取待配置的游戏资源,其中,游戏资源可以是接收到游戏资源添加操作时进行获取的,在获取待配置的游戏资源后,确定该游戏资源的游戏资源类型,其中,游戏资源类型至少包括:图片、3D模型和音乐三种类型,进一步的,可以对图片、3D模型和音乐进一步的细分,具体分类规则可以根据经验、需求和应用场景等因素确定。In this step, the game resource to be configured may be obtained, wherein the game resource may be obtained when the game resource addition operation is received, and after obtaining the game resource to be configured, the game resource type of the game resource is determined, wherein the game resource The resource types include at least three types: pictures, 3D models, and music. Further, pictures, 3D models, and music can be further subdivided. The specific classification rules can be determined according to factors such as experience, needs, and application scenarios.
示例性的,获取待配置的游戏资源为图片a,则确定该游戏资源的资源类型为图片。Exemplarily, if the game resource to be configured is obtained as picture a, it is determined that the resource type of the game resource is a picture.
S202:根据游戏资源类型,弹出资源配置框,资源配置框中展示有游戏资源类型的各配置选项。S202: According to the game resource type, a resource configuration box pops up, and each configuration option of the game resource type is displayed in the resource configuration box.
本步骤中,针对每种游戏资源类型,都存在与其对应的资源配置框,其中,资源配置框中展示有游戏资源类型的各配置选项。In this step, for each game resource type, there is a corresponding resource configuration box, wherein the resource configuration box displays various configuration options of the game resource type.
示例性的,针对图片类型,弹出的资源配置框中可以包含纹理类型、α通道来源、α通道是否透明度,滤波模式等选项。Exemplarily, for the image type, the pop-up resource configuration box may include options such as the texture type, the source of the alpha channel, whether the alpha channel is transparent, the filtering mode, and the like.
S203:当接收到针对各配置选项的选择操作时,确定选择操作所选择的配置信息,作为第一配置信息。S203: When a selection operation for each configuration option is received, determine the configuration information selected by the selection operation as the first configuration information.
本步骤中,针对各配置选项的选择操作可以是针对资源配置框各配置选项的勾选操作,也可以是针对多个选择项的选择操作。In this step, the selection operation for each configuration option may be a check operation for each configuration option in the resource configuration box, or a selection operation for multiple selection items.
示例性的,针对图片类型,可以事先提供多种纹理类型的选择项,选择操作可以选择其中的一项纹理类型作为对应图片的纹理类型,当选择操作选择完成后,例如,选择的纹理类型为Default类型,则将Default类型确定为选择操作所选择的配置信息。Exemplarily, for the picture type, options of multiple texture types can be provided in advance, and the selection operation can select one of the texture types as the texture type of the corresponding image. After the selection operation is completed, for example, the selected texture type is Default type, the Default type is determined as the configuration information selected by the selection operation.
S204:当接收到资源配置模板生成操作时,生成记录有第一配置信息的资源配置模板。S204: When receiving the resource configuration template generating operation, generate a resource configuration template recording the first configuration information.
本步骤中,资源配置模板生成操作可以是在确定第一配置信息后的保持操作,保持生成的资源配置模板中记录有第一配置信息。In this step, the resource configuration template generating operation may be a maintaining operation after the first configuration information is determined, and the generated resource configuration template is maintained to record the first configuration information.
本发明实施例提供的上述资源配置模板生成方法中,获取待配置的游戏资源,作为第一资源,并确定第一资源所属的游戏资源类型,并且根据游戏资源类型,弹出资源配置框,资源配置框中展示有游戏资源类型的各配置选项,以及当接收到针对各配置选项的选择操作时,确定选择操作所选择的配置信息,作为第一配置信息,以及当接收到资源配置模板生成操作时,生成记录有第一配置信息的资源配置模板,可以对未配置过的资源类型的游戏资源生成用于自动配置的资源配置模板。In the above-mentioned resource configuration template generation method provided by the embodiment of the present invention, the game resource to be configured is obtained as the first resource, the game resource type to which the first resource belongs is determined, and a resource configuration box pops up according to the game resource type, and the resource configuration Each configuration option of the game resource type is displayed in the box, and when a selection operation for each configuration option is received, the configuration information selected by the selection operation is determined as the first configuration information, and when the resource configuration template generation operation is received. , generating a resource configuration template that records the first configuration information, and can generate a resource configuration template for automatic configuration for game resources of unconfigured resource types.
基于同一发明构思,根据本发明实施例提供的游戏资源配置方法,本发明实施例还提供了一种游戏资源配置装置,如图3所示,该装置包括:Based on the same inventive concept, according to the game resource configuration method provided by the embodiment of the present invention, the embodiment of the present invention further provides a game resource configuration device. As shown in FIG. 3 , the device includes:
信息表获取模块301,用于获取预设的配置信息表,配置信息表中记录有资源文件夹路径、资源配置模板路径和待配置资源筛选规则;An information
第一确定模块302,用于确定资源文件夹路径对应的资源文件夹,以及资源配置模板路径对应的资源配置模板,其中,资源文件夹中预存有多个游戏资源,资源配置模板为预先生成的记录有资源配置信息的模板;The
资源筛选模块303,用于基于待配置资源筛选规则,在资源文件夹预存的多个游戏资源中,筛选出待配置资源;A
资源配置模块304,用于按照资源配置模板中记录的资源配置信息,对待配置资源进行配置。The
进一步的,装置还包括:Further, the device also includes:
控件展示模块305,用于展示自动配置控件;The
信息表获取模块301,具体用于当接收到针对自动配置控件的选中操作时,获取预设的配置信息表。The information
进一步的,装置还包括:Further, the device also includes:
判断模块306,用于判断资源文件夹路径下是否存在文件夹,以及资源配置模板路径下是否存在资源配置模板;The
标记模块307,用于当资源文件夹路径下不存在文件夹,或者资源配置模板路径下不存在资源配置模板时,将配置信息表标记为不合格;Marking
第一确定模块302,具体用于当资源文件夹路径下存在文件夹,且资源配置模板路径下存在资源配置模板时,确定资源文件夹路径对应的资源文件夹,以及资源配置模板路径对应的资源配置模板。The first determining
进一步的,待配置资源筛选规则包括预设的第一关键词和第二关键词;Further, the resource screening rule to be configured includes a preset first keyword and a second keyword;
资源筛选模块303,具体用于在资源文件夹预存的多个游戏资源中,筛选出名称中包含第一关键词的游戏资源,作为第一类资源,并且在第一类资源中,筛选出名称中不包含第二关键词的游戏资源,作为待配置资源。The
基于同一发明构思,根据本发明实施例提供的资源配置模板生成方法,本发明实施例还提供了一种资源配置模板生成装置,如图4所示,该装置包括:Based on the same inventive concept, according to the method for generating a resource configuration template provided by an embodiment of the present invention, an embodiment of the present invention further provides a resource configuration template generating device. As shown in FIG. 4 , the device includes:
资源获取模块401,用于获取待配置的游戏资源,作为第一资源,并确定第一资源所属的游戏资源类型;A
配置框弹出模块402,用于根据游戏资源类型,弹出资源配置框,资源配置框中展示有游戏资源类型的各配置选项;The configuration box pop-up
第二确定模块403,用于当接收到针对各配置选项的选择操作时,确定选择操作所选择的配置信息,作为第一配置信息;The
模板生成模块404,用于当接收到资源配置模板生成操作时,生成记录有第一配置信息的资源配置模板。The
本发明实施例还提供了一种电子设备,如图5所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存储器503通过通信总线504完成相互间的通信,An embodiment of the present invention further provides an electronic device, as shown in FIG. 5 , including a
存储器503,用于存放计算机程序;a
处理器501,用于执行存储器503上所存放的程序时,实现如下步骤:When the
获取预设的配置信息表,所述配置信息表中记录有资源文件夹路径、资源配置模板路径和待配置资源筛选规则;Obtaining a preset configuration information table, where the resource folder path, the resource configuration template path and the resource screening rule to be configured are recorded in the configuration information table;
确定所述资源文件夹路径对应的资源文件夹,以及所述资源配置模板路径对应的资源配置模板,其中,所述资源文件夹中预存有多个游戏资源,所述资源配置模板为预先生成的记录有资源配置信息的模板;Determine the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path, wherein the resource folder has multiple game resources pre-stored, and the resource configuration template is pre-generated A template that records resource configuration information;
基于所述待配置资源筛选规则,在所述资源文件夹预存的所述多个游戏资源中,筛选出待配置资源;Based on the to-be-configured resource screening rule, filter out the to-be-configured resources from the plurality of game resources pre-stored in the resource folder;
按照所述资源配置模板中记录的所述资源配置信息,对所述待配置资源进行配置。The resource to be configured is configured according to the resource configuration information recorded in the resource configuration template.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一游戏资源配置方法的步骤。In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above game resource configuration is realized steps of the method.
在本发明提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一游戏资源配置方法。In another embodiment provided by the present invention, there is also provided a computer program product containing instructions, which, when running on a computer, enables the computer to execute any of the game resource configuration methods in the foregoing embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质、计算机程序产品而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for devices, electronic devices, computer-readable storage media, and computer program products, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, refer to the partial descriptions of the method embodiments.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910580215.8A CN110201397B (en) | 2019-06-28 | 2019-06-28 | Game resource allocation method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910580215.8A CN110201397B (en) | 2019-06-28 | 2019-06-28 | Game resource allocation method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110201397A CN110201397A (en) | 2019-09-06 |
CN110201397B true CN110201397B (en) | 2022-07-22 |
Family
ID=67795528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910580215.8A Expired - Fee Related CN110201397B (en) | 2019-06-28 | 2019-06-28 | Game resource allocation method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110201397B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990048A (en) * | 2019-11-04 | 2020-04-10 | 珠海西山居移动游戏科技有限公司 | Method and system for monitoring resource loss of Unity project |
CN111259019B (en) | 2020-01-09 | 2023-05-12 | 腾讯科技(深圳)有限公司 | Resource allocation method, device, equipment and storage medium |
CN118059478B (en) * | 2024-03-21 | 2025-06-27 | 广州四三九九信息科技有限公司 | Game resource batch setting method and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488706A (en) * | 2013-09-06 | 2014-01-01 | 北京东方艾迪普科技发展有限公司 | Processing method and device for mass data base |
CN105677883A (en) * | 2016-01-14 | 2016-06-15 | 网易(杭州)网络有限公司 | Animation resource optimization method and device |
CN105843624A (en) * | 2016-04-01 | 2016-08-10 | 上海班图网络科技有限公司 | Doujin game engine |
WO2016138666A1 (en) * | 2015-03-05 | 2016-09-09 | Telefonaktiebolaget Lm Ericsson (Publ) | Resource allocation method, control entity and access node using the same |
CN107291718A (en) * | 2016-03-30 | 2017-10-24 | 阿里巴巴集团控股有限公司 | Page resource put-on method and device |
CN107844301A (en) * | 2017-12-12 | 2018-03-27 | 苏州蜗牛数字科技股份有限公司 | A kind of Android application channel closes bag method and device |
CN109660377A (en) * | 2017-10-12 | 2019-04-19 | 中兴通讯股份有限公司 | Unified configuring management method, service server and operation and maintenance management platform |
CN109806592A (en) * | 2019-01-18 | 2019-05-28 | 网易(杭州)网络有限公司 | A kind of monitoring method and device of game resource |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8695006B2 (en) * | 2008-05-02 | 2014-04-08 | Oracle International Corporation | Resource management method |
-
2019
- 2019-06-28 CN CN201910580215.8A patent/CN110201397B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488706A (en) * | 2013-09-06 | 2014-01-01 | 北京东方艾迪普科技发展有限公司 | Processing method and device for mass data base |
WO2016138666A1 (en) * | 2015-03-05 | 2016-09-09 | Telefonaktiebolaget Lm Ericsson (Publ) | Resource allocation method, control entity and access node using the same |
CN105677883A (en) * | 2016-01-14 | 2016-06-15 | 网易(杭州)网络有限公司 | Animation resource optimization method and device |
CN107291718A (en) * | 2016-03-30 | 2017-10-24 | 阿里巴巴集团控股有限公司 | Page resource put-on method and device |
CN105843624A (en) * | 2016-04-01 | 2016-08-10 | 上海班图网络科技有限公司 | Doujin game engine |
CN109660377A (en) * | 2017-10-12 | 2019-04-19 | 中兴通讯股份有限公司 | Unified configuring management method, service server and operation and maintenance management platform |
CN107844301A (en) * | 2017-12-12 | 2018-03-27 | 苏州蜗牛数字科技股份有限公司 | A kind of Android application channel closes bag method and device |
CN109806592A (en) * | 2019-01-18 | 2019-05-28 | 网易(杭州)网络有限公司 | A kind of monitoring method and device of game resource |
Also Published As
Publication number | Publication date |
---|---|
CN110201397A (en) | 2019-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Wei | Multi-class blue noise sampling | |
CN110201397B (en) | Game resource allocation method and device and electronic equipment | |
TW201723895A (en) | Method and device for extending a layout template of an application component | |
CN107329899A (en) | A kind of application compatibility method of testing and device | |
CN104765665A (en) | Method and device for testing hard disks | |
CN112667639B (en) | Permission design method, system, device and storage medium based on SaaS multi-tenancy | |
CN106354430A (en) | Method and device for allocating RAID card based on BMC | |
CN113885935A (en) | Resource packaging method and device, electronic equipment and computer readable storage medium | |
CN107239403A (en) | A kind of positioning problems method and apparatus | |
CN107832052A (en) | Show the method, apparatus and storage medium and electronic equipment of preview page | |
CN113343109A (en) | List recommendation method, computing device and computer storage medium | |
CN111881051A (en) | Test case generation method and device, terminal and storage medium | |
CN108763084A (en) | A kind of generation method of test case, device and electronic equipment | |
CN114154000A (en) | Multimedia resource publishing method and device | |
CN113051105A (en) | Data processing method, device, equipment and storage medium | |
CN115291963B (en) | Method for configuring hardware resources, electronic device and storage medium | |
CN116107892A (en) | Automatic test method, device, equipment and storage medium | |
CN112749159A (en) | Form generation method and device, electronic equipment and storage medium | |
CN110737577B (en) | A method and device for storing test defect data | |
CN115438113A (en) | Parameter management method and device, electronic equipment and storage medium | |
US11256501B2 (en) | Federated extensibility workbench | |
CN114647548A (en) | A log generation method and device | |
CN112035106A (en) | Multi-platform synchronization method, device, medium and electronic equipment for homologous data | |
CN115952777A (en) | Drop page design method and device, electronic equipment and storage medium | |
CN110119351B (en) | A test case execution method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220722 |