Game level selection and role configuration method, system and computer equipment

文档序号:57134 发布日期:2021-10-01 浏览:35次 中文

阅读说明:本技术 游戏关卡选择及角色配置方法、系统和计算机设备 (Game level selection and role configuration method, system and computer equipment ) 是由 李树军 许秋子 于 2021-06-23 设计创作,主要内容包括:本发明涉及一种游戏关卡选择及角色配置方法、系统、计算机设备和存储介质,该方法包括:确定一个包含所有关卡属性的结构体并导入新建的关卡数据表格进行属性参数编辑;利用关卡选择程序从当前关卡数据表格中搜索所有关卡名称及其关联的所有关卡背景图,生成捆绑有不同关卡背景图的若干个关卡按钮并放置在关卡列表区域;利用角色配置程序从当前关卡数据表格中获取用户点击的单个关卡按钮对应的关卡最大玩家数量和关卡角色信息,生成设置有玩家选择列表和角色选择列表的若干个角色配置框并放置在角色列表区域;当角色配置程序识别至少一个角色配置框内已被执行配置后,激活开始游戏按钮。上述方法通过创建关卡数据表格进行关卡拓展以供用户选择。(The invention relates to a game level selection and role configuration method, a system, computer equipment and a storage medium, wherein the method comprises the following steps: determining a structural body containing all the level attributes and importing a newly-built level data table for attribute parameter editing; searching all the level names and all the level background images related to the level names from the current level data table by using a level selection program, generating a plurality of level buttons bound with different level background images and placing the level buttons in a level list area; acquiring the maximum number of players at the level and the level character information corresponding to a single level button clicked by a user from a current level data table by using a character configuration program, generating a plurality of character configuration frames provided with a player selection list and a character selection list, and placing the character configuration frames in a character list area; the start game button is activated when the character configuration program identifies that a configuration has been performed within at least one of the character configuration boxes. The method carries out level expansion by creating a level data table for the user to select.)

1. A game level selection and role configuration method is characterized by comprising the following steps:

determining a structural body containing all level attributes, importing the structural body into a newly-built level data table, and then carrying out level attribute parameter editing operation on the level data table according to the level requirements of players, wherein all level attributes comprise level names, maximum level player numbers, level background diagrams and level role information;

searching all the gate names and all the related gate background images from the edited gate data table by using a gate selection program created by a blueprint library in the virtual engine, and further generating a plurality of gate buttons bound with different gate background images and placing the gate buttons in a gate list area appointed by a gate configuration control interface;

when a user clicks any one level button of the level list area, acquiring the maximum level player number and level character information associated with the clicked level button from the edited level data table by using a character configuration program created by the blue-map library, and further generating a plurality of character configuration frames provided with a player selection list and a character selection list and placing the character configuration frames in a character list area appointed by the level configuration control interface;

and when the character configuration program identifies that the configuration of the at least one character configuration frame is finished by the user, activating a game starting button of the level configuration control interface to wait for the user to click to enter the game.

2. The game level selection and character configuration method of claim 1, wherein determining a structure containing all level attributes comprises:

and creating an empty structural body, sequentially inputting and defining all the level attributes as member variables of the empty structural body, and selecting a data type for each member variable.

3. The game level selection and character configuration method of claim 1, wherein the step of generating and placing a plurality of level buttons bound with different level background images in a level list area designated by a level configuration control interface comprises:

counting the number of the level corresponding to all the level names by using the level selection program, and generating a plurality of corresponding initial level buttons according to the number of the levels, wherein each initial level button is associated with different level names;

and selecting a level background image matched with the level name associated with each initial level button from all the level background images by using the level selection program, and overlaying the level background image on the current initial level button.

4. The game level selection and character configuration method of claim 3, wherein after generating a plurality of corresponding initial level buttons according to the level number, the method comprises:

and utilizing the level selection program to perform mark analysis on the level list area, and determining the horizontal position and the vertical position of each initial level button in the level list area.

5. The game level selection and character configuration method of claim 1, wherein the generating a plurality of character configuration boxes provided with a player selection list and a character selection list comprises:

and generating a plurality of role configuration frames with the same number as the maximum number of the players at the level by using the role configuration program, making a player selection list according to the maximum number of the players at the level, copying and pasting the player selection list into each role configuration frame, and making a role selection list according to the level role information, copying and pasting the role selection list into each role configuration frame.

6. The game level selection and character configuration method of claim 1, further comprising:

when the number of the plurality of role configuration boxes is M, acquiring the player selected in the first configured role configuration box by using the role configuration program, and then performing updating operation of a player selection list on the M-1 role configuration boxes which are not configured in the role list area, so that the selected player does not appear in the player selection list in the M-1 role configuration box; and then after the second role configuration box is configured by the user, updating the M-2 role configuration boxes which are not configured according to the steps, and so on.

7. The game level selection and character configuration method of claim 1, further comprising:

and when the user clicks the game starting button, a default character is allocated to other players who are not selected in all the configured character configuration boxes by using the character configuration program.

8. A game level selection and character configuration system, the system comprising:

the editing module is used for determining a structural body containing all level attributes, importing the structural body into a newly-built level data table, and then carrying out level attribute parameter editing operation on the level data table according to the passing requirements of players, wherein all level attributes comprise level names, maximum level player numbers, level background diagrams and level role information;

the first generation module is used for searching all the gate names and all the related gate background images from the edited gate data table by using a gate selection program created by a blueprint library in the virtual engine, and further generating a plurality of gate buttons which are bound with different gate background images and placing the gate buttons in a gate list area appointed by a gate configuration control interface;

a second generation module, configured to, when a user clicks any one of the level buttons in the level list area, acquire, from the edited level data table, the maximum level player number and level character information associated with the clicked level button by using a character configuration program created by the blue gallery, and further generate a plurality of character configuration frames provided with a player selection list and a character selection list, and place the plurality of character configuration frames in the character list area specified by the level configuration control interface;

and the activation module is used for activating a game starting button of the level configuration control interface to wait for a user to click to enter a game after the role configuration program identifies that the user executes configuration in at least one role configuration frame.

9. A computer device comprising a memory, a processor and an application program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 7 are implemented when the application program is executed by the processor.

10. A computer-readable storage medium, on which an application program is stored, which when executed by a processor implements the steps of the method of any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of virtual games, in particular to a game level selection and role configuration method, a game level selection and role configuration system, computer equipment and a storage medium.

Background

Some games can only support one or two levels, have low expansibility and cannot be added with more levels in the subsequent process; although some games have the function of expansion, other associated attributes need to be modified by adding a new level, and the reusability is poor. Even if games with multiple levels and different maximum supporters per level appear in succession in the market, a sophisticated level selection menu is usually created, but the associated data of all levels in the menu is a big difficulty in memory invocation.

Disclosure of Invention

The invention aims to overcome the defects of the prior art, and provides a method, a system, computer equipment and a storage medium for game level selection and role configuration, which can be used for level expansion by creating a level data table, are beneficial to secondary development and application of games and are convenient to manage.

In order to solve at least one technical problem, an embodiment of the present invention provides a game level selection and role configuration method, where the method includes:

determining a structural body containing all level attributes, importing the structural body into a newly-built level data table, and then carrying out level attribute parameter editing operation on the level data table according to the level requirements of players, wherein all level attributes comprise level names, maximum level player numbers, level background diagrams and level role information;

searching all the gate names and all the related gate background images from the edited gate data table by using a gate selection program created by a blueprint library in the virtual engine, and further generating a plurality of gate buttons bound with different gate background images and placing the gate buttons in a gate list area appointed by a gate configuration control interface;

when a user clicks any one level button of the level list area, acquiring the maximum level player number and level character information associated with the clicked level button from the edited level data table by using a character configuration program created by the blue-map library, and further generating a plurality of character configuration frames provided with a player selection list and a character selection list and placing the character configuration frames in a character list area appointed by the level configuration control interface;

and when the character configuration program identifies that the configuration of the at least one character configuration frame is finished by the user, activating a game starting button of the level configuration control interface to wait for the user to click to enter the game.

Preferably, the determining a structure containing all the level attributes includes:

and creating an empty structural body, sequentially inputting and defining all the level attributes as member variables of the empty structural body, and selecting a data type for each member variable.

Preferably, the generating and placing a plurality of level buttons bound with different level background graphs in a level list area designated by the level configuration control interface comprises:

counting the number of the level corresponding to all the level names by using the level selection program, and generating a plurality of corresponding initial level buttons according to the number of the levels, wherein each initial level button is associated with different level names;

and selecting a level background image matched with the level name associated with each initial level button from all the level background images by using the level selection program, and overlaying the level background image on the current initial level button.

Preferably, after generating a plurality of corresponding initial level buttons according to the level number, the method includes:

and utilizing the level selection program to perform mark analysis on the level list area, and determining the horizontal position and the vertical position of each initial level button in the level list area.

Preferably, the generating a plurality of character configuration boxes provided with a player selection list and a character selection list comprises:

and generating a plurality of role configuration frames with the same number as the maximum number of the players at the level by using the role configuration program, making a player selection list according to the maximum number of the players at the level, copying and pasting the player selection list into each role configuration frame, and making a role selection list according to the level role information, copying and pasting the role selection list into each role configuration frame.

Preferably, the method further comprises:

when the number of the plurality of role configuration boxes is M, acquiring the player selected in the first configured role configuration box by using the role configuration program, and then performing updating operation of a player selection list on the M-1 role configuration boxes which are not configured in the role list area, so that the selected player does not appear in the player selection list in the M-1 role configuration box; and then after the second role configuration box is configured by the user, updating the M-2 role configuration boxes which are not configured according to the steps, and so on.

Preferably, the method further comprises:

and when the user clicks the game starting button, a default character is allocated to other players who are not selected in all the configured character configuration boxes by using the character configuration program.

In addition, the embodiment of the invention also provides a game level selection and role configuration system, which comprises:

the editing module is used for determining a structural body containing all level attributes, importing the structural body into a newly-built level data table, and then carrying out level attribute parameter editing operation on the level data table according to the passing requirements of players, wherein all level attributes comprise level names, maximum level player numbers, level background diagrams and level role information;

the first generation module is used for searching all the gate names and all the related gate background images from the edited gate data table by using a gate selection program created by a blueprint library in the virtual engine, and further generating a plurality of gate buttons which are bound with different gate background images and placing the gate buttons in a gate list area appointed by a gate configuration control interface;

a second generation module, configured to, when a user clicks any one of the level buttons in the level list area, acquire, from the edited level data table, the maximum level player number and level character information associated with the clicked level button by using a character configuration program created by the blue gallery, and further generate a plurality of character configuration frames provided with a player selection list and a character selection list, and place the plurality of character configuration frames in the character list area specified by the level configuration control interface;

and the activation module is used for activating a game starting button of the level configuration control interface to wait for a user to click to enter a game after the role configuration program identifies that the user executes configuration in at least one role configuration frame.

In addition, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and an application program stored in the memory and capable of running on the processor, where the processor implements the steps of any of the above-mentioned embodiments when executing the application program.

In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which an application program is stored, where the application program, when executed by a processor, implements the steps of any of the above-mentioned embodiments of the method.

In the embodiment of the invention, the realization process of the game level expansion function is simpler, quicker and more convenient to manage by establishing a level data table and editing and storing the content of the level data table; by effectively calling the edited level data table and executing interface display and controllable management by using a related program created by a blue gallery in the virtual engine, level selection operation and further role configuration operation of a user in the game entering process are simplified, and the method has better practicability.

Drawings

FIG. 1 is a flow chart illustrating a method for game level selection and role configuration according to an embodiment of the present invention;

FIG. 2 is a block diagram of a game level selection and role configuration system according to an embodiment of the present invention;

fig. 3 is a schematic structural composition diagram of a computer device in the embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The embodiment of the invention provides a game level selection and role configuration method, as shown in figure 1, the method comprises the following steps:

s101, determining a structural body containing all level attributes, importing the structural body into a newly-built level data table, and editing level attribute parameters of the level data table according to the level requirements of players, wherein all level attributes comprise level names, maximum level player numbers, level background diagrams and level role information;

specifically, the determining a structure containing all the level attributes includes: and creating an empty structural body, sequentially inputting and defining all the level attributes as member variables of the empty structural body, and selecting a data type for each member variable. For example, the level name is manually entered and defined as the first member variable and its data type is set to string type, the level maximum number of players is manually entered and defined as the second member variable and its data type is set to integer type, and so on.

Specifically, the editing operation of the level attribute parameters on the level data table according to the player clearance requirement includes: when a user needs to have a plurality of levels, newly increasing row data in the level data table, wherein each row data is a level attribute parameter corresponding to one level, so as to realize the level expansion function of the game.

S102, searching all the gate names and all the related gate background images from the edited gate data table by using a gate selection program created by a blueprint library in a virtual engine, and further generating a plurality of gate buttons bound with different gate background images and placing the gate buttons in a gate list area appointed by a gate configuration control interface;

specifically, the generating process of the plurality of level buttons includes: firstly, counting the number of the level corresponding to all the level names by using the level selection program, and then generating a plurality of corresponding initial level buttons according to the number of the levels, wherein each initial level button is associated with different level names; and then selecting a level background image matched with the level name associated with each initial level button from all the level background images by using the level selection program, and overlaying the level background image on the current initial level button, namely when the size of each initial level button in the plurality of initial level buttons is consistent, any level background image should be completely attached to the corresponding initial level button.

After generating a plurality of corresponding initial level buttons according to the level number, the method comprises the following steps: and marking and analyzing the level list area by using the level selection program, and determining the horizontal position and the vertical position of each initial level button in the level list area, so as to limit the distance between the initial level buttons and make the arrangement of the initial level buttons in the level list area more beautiful.

In an embodiment, the level list area is not actually directly displayed on the level configuration control interface, but a level selection button is additionally arranged to bind the level list area, and when a user wants to select one of the level buttons according to the user's own requirements to play a game, the level list area can be rebounded to the level configuration control interface by clicking the level selection button, so that the level configuration control interface is kept compact and viewable.

In one embodiment, another level button is generated by the level selection program, and the level button is directly bound with a background picture for prompting the information to be filled in the level and is placed in the level list area, so that when a user clicks the level button, a game developer can be prompted to add more levels.

S103, when a user clicks any one level button of the level list area, acquiring the maximum level player number and level role information associated with the clicked level button from the edited level data table by using a role configuration program created by the blue chart library, and further generating a plurality of role configuration frames provided with a player selection list and a role selection list and placing the angle configuration frames in a role list area appointed by the level configuration control interface;

specifically, the generation process of the plurality of role configuration boxes includes: and generating a plurality of role configuration frames with the same number as the maximum number of the players at the level by using the role configuration program, making a player selection list according to the maximum number of the players at the level, copying and pasting the player selection list into each role configuration frame, and making a role selection list according to the level role information, copying and pasting the role selection list into each role configuration frame. It should be noted that all the player selection lists obtained by duplication are associated with each other.

When the maximum level player number is N, the player selection list is set as a drop-down list and should contain N options, namely, player 1, player 2,. and player N; when the level role information contains K roles, the role selection list is set as a drop-down list and should contain K options.

And S104, after the character configuration program identifies that the configuration is executed by the user in at least one character configuration frame, activating a game starting button of the level configuration control interface to wait for the user to click to enter the game.

Specifically, in the process that the role configuration program identifies that the configuration in at least one role configuration box is completed by the user, the method includes: when the number of the plurality of role configuration boxes is M, acquiring the player selected in the first configured role configuration box by using the role configuration program, and updating the player selection list of the M-1 role configuration boxes which are not configured in the role list area so as to prevent the selected player from appearing in the player selection list in the M-1 role configuration box, thereby ensuring that the same player cannot have two roles at the same time and avoiding the game loophole caused by the negligence of the user; and then after the second role configuration box is configured by the user, updating the M-2 role configuration boxes which are not configured according to the steps, and so on. It should be noted that, after the user completes configuration of the first character configuration box, the start game button is activated immediately.

In an embodiment, step S104 is followed by: and when the user clicks the game starting button, a default character is allocated to other players who are not selected in all the configured character configuration boxes by using the character configuration program.

In the embodiment of the invention, the realization process of the game level expansion function is simpler, quicker and more convenient to manage by establishing a level data table and editing and storing the content of the level data table; by effectively calling the edited level data table and executing interface display and controllable management by using a related program created by a blue gallery in the virtual engine, level selection operation and further role configuration operation of a user in the game entering process are simplified, and the method has better practicability.

In an embodiment, the present invention further provides a game level selection and role configuration system, as shown in fig. 2, the system includes:

the editing module 201 is configured to determine a structure including all level attributes, introduce the structure into a newly-built level data table, and perform level attribute parameter editing operation on the level data table according to a player level requirement, where the level attributes include level names, maximum level player numbers, level background diagrams, and level role information;

a first generating module 202, configured to search all the level names and all the level background maps associated with the level names from the edited level data table by using a level selecting program created by a blueprint library in the virtual engine, and further generate a plurality of level buttons bundled with different level background maps and place the level buttons in a level list area specified by a level configuration control interface;

a second generating module 203, configured to, when a user clicks any one of the level buttons in the level list area, acquire, from the edited level data table, the maximum level player number and level character information associated with the clicked level button by using a character configuration program created by the blueprint library, and further generate a plurality of character configuration frames provided with a player selection list and a character selection list, and place the plurality of character configuration frames in the character list area specified by the level configuration control interface;

an activating module 204, configured to activate a game starting button of the level configuration control interface to wait for a user to click to enter a game after the character configuration program identifies that the user has performed configuration in at least one character configuration box.

For the specific limitations of a game level selection and role configuration system, reference may be made to the above limitations of a game level selection and role configuration method, which are not described herein again. The modules in the game level selection and role configuration system can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In the computer-readable storage medium provided in the embodiments of the present invention, an application program is stored on the computer-readable storage medium, and when the application program is executed by a processor, the method for selecting a game level and configuring a role in any one of the embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.

The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the game level selection and role configuration method in any one of the embodiments.

Fig. 3 is a schematic structural diagram of a computer device in the embodiment of the present invention.

An embodiment of the present invention further provides a computer device, as shown in fig. 3. The computer apparatus includes a processor 302, a memory 303, an input unit 304, a display unit 305, and the like. Those skilled in the art will appreciate that the device configuration means shown in fig. 3 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.

The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by running or executing software programs and/or modules stored in the memory 303 and calling data stored in the memory.

As one embodiment, the computer device includes: one or more processors 302, a memory 303, one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, the one or more applications 301 configured to perform a game level selection and character configuration method of any of the above embodiments.

In addition, the above detailed descriptions of the game level selection and role configuration method, system, computer device and storage medium provided by the embodiments of the present invention are provided, and a specific example should be used herein to explain the principle and implementation manner of the present invention, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:游戏内容回放方法和装置、可读存储介质、电子设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类