A character-based game resource rapid generation method and device

By creating a character set and using terminal control codes to describe game elements, the complexity of commercial engine development was solved, enabling the rapid generation of game resources.

CN115645926BActive Publication Date: 2025-11-07TUYOO GAMES +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211074297.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-03
Publication Date
2025-11-07
Estimated Expiration
2042-09-03

AI Technical Summary

Technical Problem

In existing technologies, the development of front-end game programs for commercial engines is complex, resulting in low efficiency in the development of rapidly developed games such as educational games or demos, requiring a lot of time to be spent on resource creation and software installation.

Method used

By creating a character set suitable for game elements, selecting characters through the editing interface to generate game elements, and saving them via terminal control codes, a visual editor is provided to simplify the development process.

Benefits of technology

It enables rapid generation of game resources without the need to install additional resources, allowing developers to focus on game principles and logic, thus improving development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115645926B_ABST
    Figure CN115645926B_ABST
Patent Text Reader

Abstract

The application provides a character-based game resource quick generation method and device, which creates a character set suitable for game elements, displays the character set on an editing interface, generates a character game element by selecting a corresponding character, and describes the character game element by a terminal control code when saving the edited character game element. The method uses a terminal control code supported by almost all terminals, thereby not needing to install additional resources. For a terminal control code with low readability, a visual editor is provided, and the game element can be produced by a mouse, without writing a terminal control code, so that a developer can focus on the implementation of game principles and logic, and quickly complete a development task.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer graphics rendering, and particularly relates to a character-based game resource rapid generation method and device, a computing device and a computer readable storage medium. BACKGROUND

[0002] In the prior art, the development of a game program is generally divided into a front-end program and a back-end program, and the development of the front-end program usually relies on a commercial engine, such as a Unity development engine or an Unreal development engine. The use process of these commercial engines is usually relatively complex, and for a front-end game that needs to be developed quickly, such as a game for teaching, a Demo for demonstrating or verifying a game principle, etc., it is relatively inefficient, and a large amount of time needs to be spent on, for example, resource production and software installation, and therefore a solution is needed to enable a developer to efficiently complete the development of a front-end game program. SUMMARY

[0003] Therefore, the character-based game resource rapid generation method and device, the computing device and the computer readable storage medium provided in the embodiments of the present application are provided to solve the technical defects in the prior art.

[0004] According to a first aspect of the embodiments of the present application, a character-based game resource rapid generation method is provided, comprising:

[0005] creating a character set suitable for a game element;

[0006] displaying the character set on an editing interface, and selecting a corresponding character to generate a character game element;

[0007] saving the edited character game element, and describing the character game element by using terminal control codes.

[0008] According to a second aspect of the embodiments of the present application, a character-based game resource rapid generation device is provided, comprising:

[0009] a creating unit configured to create a character set suitable for a game element;

[0010] an editor configured to display the character set on an editing interface, and select a corresponding character to generate a character game element;

[0011] a saving unit configured to save the edited character game element, and describe the character game element by using terminal control codes.

[0012] According to a third aspect of the embodiments of the present application, a computing device is provided, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, and the processor executes the steps of the character-based game resource rapid generation method.

[0013] According to a fourth aspect of the embodiments of the present application, a computer readable storage medium is provided, which stores computer instructions, and the instructions are executed by a processor to implement the steps of the character-based game resource rapid generation method.

[0014] In the embodiments of the present application, a character set suitable for game elements is first selected to be displayed through an editing interface, and the production of game elements is quickly completed; when the generated game elements are saved, terminal control codes supported by almost all terminals are used, so that no additional resources need to be installed; for terminal control codes with low readability, a visual editor is provided, and the production of game elements can be completed through a mouse, without the need to write terminal control codes, so that the developers can focus on the implementation of game principles and logic, and quickly complete the development task. BRIEF DESCRIPTION OF DRAWINGS

[0015] Figure 1 is a structural block diagram of a computing device provided by the embodiments of the present application;

[0016] Figure 2 is a schematic diagram of a character-based game resource rapid generation method provided by the embodiments of the present application;

[0017] Figure 3 is a schematic diagram of a character set suitable for games created in the embodiments of the present application;

[0018] Figure 4a is a schematic diagram of a game element generated by using the character-based game resource rapid generation method in the embodiments of the present application;

[0019] Figure 4b is a schematic diagram of another game element generated by using the character-based game resource rapid generation method in the embodiments of the present application;

[0020] Figure 5 is a schematic diagram of setting foreground color and background color for a character game element through a shader of an editing interface in the embodiments of the present application;

[0021] Figure 6 is a schematic diagram of an interface of a game implemented by using the game element generated by the method in the embodiments of the present application;

[0022] Figure 7 is a structural schematic diagram of a character-based game resource rapid generation device provided by the embodiments of the present application; DETAILED DESCRIPTION

[0023] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be practiced without the specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present application.

[0024] The terminology used in this description is for the purpose of describing particular embodiments only and is not intended to limit one or more embodiments of the present application. As used in one or more embodiments of the present application and the accompanying claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0025] It is to be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. It is to be further understood that the terms "comprises", "comprising", "includes", "including", "has", "having" and the like are inclusive and are to be construed as open-ended terms, i.e., comprising but not limited to, in a manner generally understood by those of ordinary skill in the art. It is to be further understood that the terms "optional" or "optionally" mean that the subsequently described event or circumstance can or can not occur or employ, and that no description is implied, whether or not the event or circumstance is determinable at the time of choice. It is to be further understood that the terms "first", "second", "third", etc., merely mean different instances of a same type, and do not require or imply that any sequence or order to the same.

[0026] In the present application, a character-based game resource rapid generation method and device, a computing device and a computer readable storage medium are provided, which are described in detail one by one in the following embodiments.

[0027] Figure 1 A structural block diagram of a computing device 100 according to an embodiment of the present application is shown. The components of the computing device 100 include, but are not limited to, a memory 110 and a processor 120. The processor 120 is connected to the memory 110 through a bus 130, and a database 150 is used to save data.

[0028] The computing device 100 also includes an access device 140 that enables the computing device 100 to communicate via one or more networks 160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 140 can include one or more of any type of network interface (e.g., network interface card (NIC)) such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like, wired or wireless.

[0029] In one embodiment of the present application, the above-mentioned components of the computing device 100 and other components not shown in the figure can be connected to each other, for example, through a bus. It should be understood that Figure 1 the computing device structure diagram shown is only for the purpose of example, and is not a limitation on the scope of the present application. Those skilled in the art can add or replace other components as needed. Figure 1

[0030] The computing device 100 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 100 can also be a mobile or stationary server.

[0031] The processor 120 can perform the steps in the character-based game resource rapid generation method shown in the figure. Figure 2 Figure 2 A flowchart of a character-based game resource rapid generation method is shown in the figure, including steps 202 to 206.

[0032] Step 202: Create a character set suitable for game elements.

[0033] In the prior art, characters are a general term for various letters and symbols, including letters of various countries, punctuation marks, graphical symbols, numbers, etc. In this step, first, a character set is created, including, from a plurality of different characters, selecting characters suitable for composing game elements to form a character set, as shown in Figure 3 .

[0034] Step 204: Display the character set in the editing interface and select the corresponding characters to generate character game elements.

[0035] In a possible implementation, the above-mentioned character set is displayed in the editing interface through the component mode and provided to the developer for selection through the panel mode. The developer can assemble different character game elements by selecting different characters in the editing interface. For example, by selecting the number character 3, the heart character and other line segment characters in the character set, a certain card face of a playing card can be drawn in the editing interface, as shown in Figure 4a ; by selecting the character and other line segment characters, a card face of a mahjong can be drawn in the editing interface, as shown in Figure 4b . ​​

[0036] In the drawing, the character game element is black and white characters.

[0037] Further, the foreground color and the background color are set for the character game element.

[0038] In this step, in the editing interface, as shown in Figure 5 The foreground color and the background color are set for each character through the shader panel of the foreground color and the background color, and the colored character game element is obtained.

[0039] Step 206: Save the edited character game element, and describe the character game element through terminal control codes.

[0040] In the prior art, terminal control codes are a kind of old standard, such as ANSI / VT100 standard, which is a special command for controlling terminals, and almost all terminals support the standard. It can change the color and the position of the cursor, and realize the operation that cannot be completed by the program itself.

[0041] Taking ANSI as an example, ANSI control codes are all in the form of “Esc[” as control codes (ASCII code 0x1B or octal representation 033), and the display attribute, foreground color attribute and background color attribute of the display information are set through the control codes. The standard contains a lot of display attribute, foreground color attribute and background color attribute information, only part of which is listed, for example:

[0042] \33[1m-Set high brightness

[0043] \33[4m-Underline

[0044] \33[5m-Flash

[0045] \33[30m--\33[37m-Set corresponding foreground color

[0046] \33[40m--\33[47m-Set corresponding background color

[0047] In the embodiment of the application, in order to realize fast front-end game development on various types of terminals, the terminal control codes are used to save the character game element produced.

[0048] In a possible implementation, the edited character game element is saved in a text file, and the character game element is described in the text file through terminal control codes, for example, for the 3 of hearts in Figure 4a The description in the text file is:

[0049]

[0050]

[0051] The text file is automatically generated according to the editing of the characters by the developer in the above editing interface, and the rendering of the game elements can be completed by directly loading the text file in the game logic, as shown in Figure 6 .

[0052] In the embodiment of the present application, in order to quickly realize the terminal-based lightweight game development, the characters are ingeniously utilized, the character set suitable for the game elements is selected to be displayed through the editing interface, and the production of the game elements is quickly completed; when the generated game elements are saved, the terminal control code supported by almost all terminals is adopted, and no additional resources need to be installed. For the terminal control code with low readability, a visual editor is provided, and the production of the game elements can be completed through the mouse without writing the terminal control code. Through the embodiment of the present application, the developer can focus on the realization of the game principle and logic, and the development task can be quickly completed.

[0053] Corresponding to the above method embodiment, the present application further provides an embodiment of a character-based game resource quick generation device, Figure 7 Fig. 1 shows a structure schematic diagram of a character-based game resource quick generation device according to an embodiment of the present application. As shown in Figure 7 , the device comprises:

[0054] a creating unit configured to create a character set suitable for game elements;

[0055] an editor configured to display the character set on an editing interface and generate a character game element by selecting a corresponding character;

[0056] a saving unit configured to save the edited character game element and describe the character game element through a terminal control code.

[0057] The above is a schematic scheme of a character-based game resource quick generation device according to the embodiment. It should be noted that the technical scheme of the character-based game resource quick generation device and the technical scheme of the above character-based game resource quick generation method belong to the same concept, and the technical scheme of the character-based game resource quick generation device which is not described in detail can be referred to the description of the technical scheme of the above character-based game resource quick generation method.

[0058] In an embodiment of the present application, a computing device is provided, which comprises a memory, a processor, and computer instructions stored in the memory and executable on the processor, and the processor executes the instructions to realize the steps of the character-based game resource quick generation method.

[0059] The above is a schematic scheme of the computing device of the embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the character-based game resource rapid generation method described above belong to the same concept, and the details of the technical scheme of the computing device that are not described in detail can be referred to the description of the technical scheme of the character-based game resource rapid generation method.

[0060] An embodiment of the present application further provides a computer readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the character-based game resource rapid generation method described above.

[0061] The above is a schematic scheme of the computer readable storage medium of the embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the character-based game resource rapid generation method described above belong to the same concept, and the details of the technical scheme of the storage medium that are not described in detail can be referred to the description of the technical scheme of the character-based game resource rapid generation method.

[0062] The specific embodiments of the present application are described above. Other embodiments are within the scope of the appended claims. In some cases, acts or steps recited in the claims can be performed in an order other than that in which they are recited in the embodiments, and still achieve desirable results. Also, the process depicted in the figures can not necessarily require the particular order shown, or sequential order to achieve the results desired. In certain implementations, multitasking and parallel processing can be advantageous.

[0063] The computer instructions include computer program code, which can be in the form of source code, object code, executable code, or some intermediate form. The computer readable medium can include any entity or apparatus capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0064] It should be noted that, for the aforementioned method embodiments, the sequences of the described actions are not the only ones that can be performed to implement the present application. In some embodiments, the sequences of actions can be performed in different order or simultaneously. In some embodiments, other sequences of actions can be performed, which should be apparent to a person of ordinary skill in the art in light of the teachings of the present application.

[0065] In the above embodiments, the description of each embodiment focuses on different aspects, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0066] The preferred embodiments of the present application disclosed above are only used to illustrate the present application. The alternative embodiments do not describe all the details and limit the present application to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can well understand and utilize the present application. The present application is limited by the claims and their full scope and equivalents.

Claims

1. A character-based game resource rapid generation method, characterized in that, The application relates to a method for creating a character game element, comprising the following steps: creating a character set suitable for a game element, selecting a character group suitable for composing the game element from a plurality of different characters to form the character set; displaying the character set in an editing interface in the form of a selectable component panel, selecting corresponding characters to generate a character game element, and combining different characters to obtain different character game elements in the editing interface; setting foreground color and background color for each character through a foreground color and background color shader to obtain a colorful character game element; saving the edited character game element, and describing the character game element through terminal control codes, including saving the edited character game element in a text file and describing the character game element through terminal control codes in the text file.

2. A character-based game resource rapid generation device, characterized in that, The application relates to a method for creating a character game element, comprising the following steps: a creating unit for creating a character set suitable for a game element, selecting a character group suitable for composing the game element from a plurality of different characters to form the character set; an editor for displaying the character set in an editing interface in the form of a selectable component panel, selecting corresponding characters to generate a character game element, and combining different characters to obtain different character game elements in the editing interface; setting foreground color and background color for each character through a foreground color and background color shader to obtain a colorful character game element; a saving unit for saving the edited character game element, and describing the character game element through terminal control codes, including saving the edited character game element in a text file and describing the character game element through terminal control codes in the text file. The processor executes the instructions to realize the steps of the method in any one of claim 1.

3. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein, The instructions are executed by the processor to realize the steps of the method in any one of claim 1.

4. A computer-readable storage medium storing computer instructions, wherein, ​

Citation Information

Patent Citations

  • Game editing method and device, electronic equipment and computer readable medium

    CN111803951A