Editing control method and apparatus for game map, and electronic device
By receiving editing instructions for multiple game accounts and processing revocation requests, the problem of inefficient map creation in the prior art is solved, and multiple accounts are jointly edited and efficiency is improved.
Patent Information
- Application Number
- PCT/CN2024/113984
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-11
- Filing Date
- 2024-08-22
- Publication Date
- 2025-03-20
AI Technical Summary
In existing game systems, map creation is inefficient and is usually created by a single player, making it difficult to edit maps together by multiple game accounts.
By receiving editing instructions from multiple game accounts and determining the target map component corresponding to the target editing instructions when receiving the revocation request, if there is no continuous editing instructions, the target editing instructions are revoked to avoid operation conflicts.
Multiple game accounts have been implemented to edit game maps together, improving the efficiency of map creation and avoiding operational conflicts.
Smart Images

Figure CN2024113984_20032025_PF_FP_ABST
Abstract
Description
Game map editing control method, device and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application number 202311179368.4 filed on September 11, 2023, entitled “Game map editing and control method, device and electronic device”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of game technology, and in particular to a method for editing and controlling a game map, an apparatus for editing and controlling a game map, a computer-readable storage medium, and an electronic device. Background Art
[0004] Game systems can provide map components. Players can create their own game maps by selecting a map component and setting its parameters. Once a game map is created, other players can enter it and complete tasks. However, in related art, maps can typically only be created by individual players, resulting in low map creation efficiency.
[0005] Summary of the Invention
[0006] In view of this, the purpose of the present disclosure is to provide a game map editing control method, a game map editing control device, a computer-readable storage medium and an electronic device, so as to enable multiple game accounts to jointly edit the game map and improve the efficiency of map creation.
[0007] According to a first aspect of an embodiment of the present disclosure, a method for editing and controlling a game map is provided, the method comprising: receiving editing instructions for a target map from multiple game accounts; receiving a first revocation request for a target editing instruction in the editing instructions from a first game account among the multiple game accounts, and determining a target map component corresponding to the target editing instruction; if a subsequent editing instruction for the target map component does not exist in an editing record corresponding to the target map, revoking the target editing instruction for the target map component; wherein the subsequent editing instruction is an editing instruction for the target map component in the editing record that follows the target editing instruction.
[0008] According to a second aspect of an embodiment of the present disclosure, a game map editing control device is provided, the device comprising: an instruction receiving module, configured to execute and receive editing instructions for a target map from multiple game accounts; a component determining module, configured to execute and receive a first revocation request for a target editing instruction in the editing instructions from a first game account among the multiple game accounts, and determine a target map component corresponding to the target editing instruction; an instruction revocation module, configured to execute and cancel the target editing instruction for the target map component if there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map; wherein the subsequent editing instruction is an editing instruction for the target map component in the editing record that follows the target editing instruction.
[0009] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned game map editing and control method.
[0010] According to the fourth aspect of the embodiment of the present disclosure, a computer-readable storage medium is provided, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned game map editing control method.
[0011] The embodiments of the present disclosure bring the following beneficial effects:
[0012] The above-mentioned game map editing control method, game map editing control device, computer-readable storage medium and electronic device receive editing instructions for a target map from multiple game accounts; receive a first cancellation request for a target editing instruction in the editing instructions from a first game account among the multiple game accounts, and determine the target map component corresponding to the target editing instruction; if there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, cancel the target editing instruction for the target map component; wherein the subsequent editing instruction is an editing instruction for the target map component after the target editing instruction in the editing record. In this method, multiple game accounts can jointly edit the game map. When a cancellation request for an editing instruction is received, if there is no subsequent editing instruction for the editing instruction, the editing instruction can be canceled, thereby avoiding operational conflicts when multiple game accounts edit the map, thereby smoothly realizing the joint editing of the game map by multiple game accounts and improving the efficiency of map creation.
[0013] Other features and advantages of the present disclosure will be described in the following description, and in part will become apparent from the description, or understood by practicing the present disclosure. The objectives and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0014] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the following briefly introduces the drawings required for use in the specific embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0016] FIG1 is a flowchart of a method for editing and controlling a game map provided by one of the embodiments of the present disclosure;
[0017] FIG2 is a schematic diagram of an edit record and a revocation request provided by one of the embodiments of the present disclosure;
[0018] FIG3 is a schematic diagram of communication between a terminal device of an inviter's game account, a server, and a terminal device of a main game account when multiple game accounts jointly edit a target map according to one embodiment of the present disclosure;
[0019] FIG4 is a schematic structural diagram of a game map editing control device provided by one of the embodiments of the present disclosure;
[0020] FIG5 is a schematic diagram of an electronic device provided by one of the embodiments of the present disclosure. DETAILED DESCRIPTION
[0021] To make the purpose, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of them. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0022] Considering that players create maps individually, the map creation efficiency is low. The embodiments of the present disclosure provide a game map editing control method, a game map editing control device, a computer-readable storage medium and an electronic device, which can be applied to the editing process of game maps, game scenes, etc.
[0023] To facilitate understanding of this embodiment, a method for editing and controlling a game map disclosed in an embodiment of the present disclosure is first introduced. As shown in FIG1 , the method includes the following steps:
[0024] Step S102, receiving editing instructions for a target map from multiple game accounts;
[0025] The target map can be created by one of the multiple game accounts. When the game account creates the target map, the initial state is that the three-dimensional space where the target map resides is empty, with no map components. The interface displaying the target map also provides multiple map components and corresponding parameter settings. The user of the game account that created the target map can select the desired map component from the map components provided in the interface and set it in the three-dimensional space where the target map resides.
[0026] Map components typically include various types, such as runway components, turntable components, and conveyor components. A target map typically consists of multiple map components, which can be different or partially identical. Each map component can have individual parameters, such as size, orientation, and speed. The aforementioned editing commands can include commands for adding components, adjusting component positions, and adjusting component sizes.
[0027] The user who created the target map can invite other users to jointly create the target map. At this time, multiple game accounts can send editing instructions for the target map, and by executing the editing instructions, multiple users can jointly create the map.
[0028] Step S104, receiving a first cancellation request for a target editing instruction in the editing instructions from a first game account among the multiple game accounts, and determining a target map component corresponding to the target editing instruction;
[0029] Because multiple game accounts can send edit commands to a target map, conflicts may occur between these commands, leading to editing errors. For example, one game account may delete the same map component while another game account enlarges it; or one game account may execute an edit command and then cancel it, while another game account has already executed other related edit commands on the target map before canceling the edit command.
[0030] In order to avoid conflicts in editing instructions between multiple game accounts, in this embodiment, when a cancellation request for an instruction is received, it is determined whether to execute the cancellation request based on the target map component corresponding to the instruction.
[0031] Specifically, the aforementioned first game account may be any of the multiple game accounts that sent the edit instruction to the target map. Upon receiving the first cancellation request for the target edit instruction, the target map component of the target edit instruction is first determined. The target map component is the map component that is edited by the target edit instruction.
[0032] In actual implementation, an edit record can be pre-generated for the target map. The edit record records each edit instruction, the game account that issued the edit instruction, and the target map component corresponding to the edit instruction. By querying the edit record, the target map component corresponding to the target edit instruction can be obtained.
[0033] In another manner, an editing record may be generated for each map component in the target map, wherein the editing record includes an editing instruction for the map component and a game account that issues the editing instruction.
[0034] Step S106: If there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, cancel the target editing instruction for the target map component; wherein the subsequent editing instruction is the editing instruction for the target map component after the target editing instruction in the editing record.
[0035] In the edit record, the edit instructions can be saved in the order in which they were executed. After determining the target map component corresponding to the target edit instruction, the edit record is checked to see whether there is a subsequent edit instruction for the target map component. The subsequent edit instruction is an edit instruction for the target map component that follows the target edit instruction.
[0036] In one approach, the edit instructions in the edit record can be searched one by one in the order of execution, from the last to the first. If no subsequent edit instructions are found before the target edit instruction is found, it can be assumed that no subsequent edit instructions exist for the target map component, and the target edit instruction for the target map component can be revoked. Simultaneously, this first revocation request can also be recorded in the edit record.
[0037] If a subsequent editing instruction is found before the target editing instruction is found, the target editing instruction for the target map component will not be revoked. At the same time, a prompt message can be sent to the game account that sent the first revocation request to remind the user that the target editing instruction cannot be revoked.
[0038] The above-mentioned game map editing control method receives editing instructions for a target map from multiple game accounts; receives a first cancellation request for a target editing instruction in the editing instructions from a first game account among the multiple game accounts, and determines the target map component corresponding to the target editing instruction; if there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, cancels the target editing instruction for the target map component; wherein the subsequent editing instruction is an editing instruction for the target map component that follows the target editing instruction in the editing record. In this method, multiple game accounts can jointly edit the game map. When a cancellation request for an editing instruction is received, if there is no subsequent editing instruction for the editing instruction, the editing instruction can be canceled, thereby avoiding operational conflicts when multiple game accounts edit the map, thereby smoothly realizing the joint editing of the game map by multiple game accounts and improving map creation efficiency.
[0039] Furthermore, if there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, the target editing instruction for the target map component is not canceled.
[0040] If, after executing a target edit command for a target map component, other edit commands are also executed for the target map component, the other edit commands are subsequent edit commands of the target edit quality. At this time, since the target map component continues to execute the subsequent edit commands based on the target edit command, if the target edit command is directly revoked, it may cause the subsequent edit commands to fail, causing errors in the target map. Based on this, in the above method, if the target map component has a subsequent edit command for the target map component in the edit record corresponding to the target map, the target edit command for the target map component is not revoked to avoid map editing errors.
[0041] In another implementation method, if there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, it is determined whether the game account corresponding to the subsequent editing instruction is the first game account; if so, the target editing instruction for the target map component is canceled; if not, the target editing instruction for the target map component is not canceled.
[0042] In one example, the edit record includes: Edit Instruction 1, game account A places component X; Edit Instruction 2, game account B moves component X. At this time, if game account A issues a cancellation request for Edit Instruction 1, but Edit Instruction 2 is a subsequent edit instruction of Edit Instruction 1, and the game accounts corresponding to Edit Instruction 2 and Edit Instruction 1 are different, then Edit Instruction 1 cannot be cancelled.
[0043] Furthermore, if the game account corresponding to the continuation editing instruction is not the first game account, a cancellation application message is sent to the game account corresponding to the continuation editing instruction; wherein the cancellation application message is used to request the game account corresponding to the continuation editing instruction to cancel the continuation editing instruction.
[0044] Continuing with the above example, since game account A cannot revoke edit command 1, a prompt message will be displayed on the map editing page of game account A, for example, requiring game account B to revoke edit command 2 first. Game account A can send a revocation request message to game account B, requesting that game account B revoke edit command 2, which is the subsequent edit command of edit command 1. Once edit command 2 is revoked, there will be no subsequent edit command to edit command 1, and the game account can revoke edit command 1.
[0045] In a specific implementation, the editing record corresponding to the target map includes an undo stack, which can be set for the target map, that is, the target map corresponds to an undo stack; the undo stack can also be set for the map components in the target map, that is, each map component in the target map corresponds to an undo stack.
[0046] After receiving the editing instructions for the target map from multiple game accounts, it is determined that the editing instruction operation is successful, and the editing instruction, the game account that issued the editing instruction, and the map component corresponding to the editing instruction are saved in an undo stack; wherein the undo stack includes multiple editing instructions, and the multiple editing instructions are arranged in the execution order of the editing instructions.
[0047] When multiple game accounts send editing instructions for the target map, each editing instruction can be executed in sequence according to the order in which the editing instructions are received. After the editing instruction operation is successful, it can be saved to the undo stack, and at the same time, the game account that sent the editing instruction and the component identifier of the map component edited by the editing instruction can be saved.
[0048] After canceling the target edit command for the target map component, an undo command corresponding to the target edit command is generated in the undo stack. In this method, the first undo request sent by the first game account is also saved as a command in the edit record. This undo command can be managed and stored with the target edit command. If an undo command for a certain edit command exists in the edit record, the edit command can be considered non-existent.
[0049] In a specific implementation method, when querying the editing record, the editing instructions are queried one by one in the undo stack in the order of execution from back to front; if the continued editing instruction of the target map component is queried, and the continued editing instruction has a corresponding undo instruction, it is determined that there is no continued editing instruction for the target map component in the editing record corresponding to the target map.
[0050] When querying edit records, you can first query edit commands that are executed later, and then query edit commands that are executed earlier. If the target map component has a subsequent edit command after the specified target edit command, the subsequent edit command will usually be queried first; and the undo command of the subsequent edit command will be queried before the subsequent edit command. Therefore, when querying edit records, if an undo command is found, the subsequent edit command corresponding to the undo command is found, and then the target edit command is found, it can be assumed that there is no subsequent edit command for the target map component in the edit record.
[0051] Furthermore, as described in the aforementioned embodiment, if the game account corresponding to the subsequent editing instruction is not the first game account, the target editing instruction for the target map component is not revoked; in this case, if a second revocation request is received from the first game account, it is determined that the map component corresponding to the second revocation request is different from the target map component; the second revocation instruction is not executed.
[0052] It can be understood that after the first game account issues the first revocation request, since the game account corresponding to the subsequent editing instruction is not the first game account, the target editing instruction for the target map component is not revoked. At this time, if the first game account continues to issue revocation requests for other components, that is, the aforementioned second revocation request, the second revocation request will not be executed.
[0053] FIG. 2 shows an example of processing an edit record and a revocation request.
[0054] Step 1: Game account 1 sends edit command 1 to move component A. After edit command 1 is successfully executed, it is saved in the edit record.
[0055] Step 2: Game account 1 sends edit command 2 to move component B. After edit command 2 is successfully executed, it is saved in the edit record.
[0056] Step 3: Game account 1 sends edit instruction 3 to cancel the movement of component B. After receiving edit instruction 3, it is determined whether game account 1 is the last game account to operate component B. If so, edit instruction 2 can be canceled.
[0057] The above-mentioned editing instruction 3 is equivalent to a cancel instruction; judging that game account 1 is the last game account to operate component B can be understood as that after game account 1 sends editing instruction 2, component B has no subsequent editing instruction for editing instruction 2.
[0058] Step 4: Game account 2 sends edit instruction 4 to move component A. After edit instruction 4 is successfully executed, it is saved in the edit record.
[0059] Step 5: Game account 1 sends edit instruction 5 to cancel the movement of component A. After receiving edit instruction 5, it is determined whether game account 1 is the last game account to operate component A. If not, the instruction execution fails.
[0060] The above-mentioned editing instruction 5 is equivalent to an undo instruction; judging that game account 1 is not the last game account to operate component A can be understood as follows: after game account 1 sends editing instruction 1, i.e., moves component A, game account 2 sends editing instruction 4 to continue moving component A; in the above-mentioned editing instruction 5, game account 1 wants to undo editing instruction 1, but editing instruction 1 has a subsequent editing instruction, i.e., editing instruction 4, at this time, editing instruction 5 fails to execute.
[0061] Step 6: Game account 2 sends an edit instruction 5 to cancel the movement of component A. After receiving the edit instruction 5, it is determined whether game account 2 is the last game account to operate component A. If so, the edit instruction 4 can be canceled.
[0062] The above-mentioned editing instruction 5 is equivalent to a cancel instruction; judging that game account 2 is the last game account to operate component A can be understood as that after game account 2 sends editing instruction 4, component A has no subsequent editing instruction of editing instruction 4.
[0063] It should be noted that Edit Instruction 5 failed to execute in step 5, and Game Account 1 did not revoke the move of Component A. Therefore, the latest edit instruction for Component A is Edit Instruction 4, which was sent by Game Account 2. Therefore, when Game Account 2 sends Edit Instruction 5 for Component A, it can be successfully executed and Edit Instruction 4 can be undone.
[0064] Step 7: Game account 1 sends an edit instruction 6 to cancel the movement of component A. After receiving the edit instruction 6, it is determined whether game account 1 is the last game account to operate component A. If so, the edit instruction 1 can be canceled.
[0065] The above-mentioned editing instruction 6 is equivalent to a cancel instruction; judging that game account 1 is the last game account to operate component A can be understood as that after game account 1 sends editing instruction 1, component A has no subsequent editing instruction for editing instruction 1.
[0066] It should be noted that after Edit Instruction 1, Game Account 2 sent Edit Instruction 4, which moved Component A. However, Game Account 2 sent Edit Instruction 5, which undid the move of Component A. This can be understood as the game account not moving Component A. Therefore, there is no subsequent Edit Instruction to Edit Instruction 1, and Edit Instruction 6 can be successfully executed, thus undoing Edit Instruction 1.
[0067] The following embodiment continues to describe how the editing interface of the target map is displayed when multiple game accounts edit the target map.
[0068] Receiving an editing instruction from a second game account among the multiple game accounts, determining a first map component corresponding to the editing instruction; sending component information of the first map component to game accounts other than the second game account among the multiple game accounts, so as to control the target map displayed on the terminal device corresponding to the game accounts other than the second game account to display the first map component in a specified display format.
[0069] The above-mentioned second game account can be any one of the multiple game accounts. For the second game account, the map component in the target map is displayed in the map editing interface of the second game account; since other game accounts besides the second game account are also editing the target map, in order to avoid multiple game accounts operating the same map component at the same time, resulting in operation conflicts, in this method, when the second game account issues an editing instruction for the first map component, the first map component is displayed in the target map displayed on the terminal device of the other game account in a specified display format to prompt the other game accounts that the first map component is being edited by the second game account; at the same time, the first map component can also be associated with the display of the account identifier of the second game account, such as the account name, account avatar, etc. The above-mentioned specified display format can be highlighted, stroked, etc.
[0070] Similarly, for each of the multiple game accounts, the target map displayed on its terminal device can display the map components edited by other game accounts using a specified display format. Furthermore, the specified display formats for different game accounts can be different, such as display colors, to distinguish the map components being edited by each game account. This approach effectively prevents the same map component from being edited simultaneously by different game accounts, and avoids conflicts when multiple accounts edit maps.
[0071] Furthermore, multiple game accounts editing a target map can be divided into different account attributes. In one embodiment, the multiple game accounts include a primary game account and an inviter game account; the target map is stored on the terminal device corresponding to the primary game account; the primary game account is typically the game account that created the target map, and the target map is stored on the terminal device corresponding to the primary game account; the inviter game account can be a game account invited by the primary game account.
[0072] When multiple game accounts edit the target map together, this can be achieved in the following ways:
[0073] Receive the editing instruction from the inviter's game account, forward the editing instruction of the inviter's game account to the terminal device corresponding to the main game account, so as to execute the editing instruction on the target map through the terminal device corresponding to the main game account and obtain the operation result of the editing instruction.
[0074] When the inviter's game account enters the target map, the server usually needs to load the target map from the terminal device corresponding to the housing and construction game account to the terminal device corresponding to the inviter's game account, and then open the target map on the terminal device corresponding to the inviter's game account.
[0075] After the inviter's game account issues an editing instruction, in order to achieve frame synchronization of the map screen between multiple game accounts, the editing instruction of the inviter's game account needs to be forwarded to the terminal device corresponding to the main game account, so that the editing instruction can be executed on the target map through the terminal device corresponding to the main game account to obtain the operation result of the editing instruction.
[0076] Furthermore, after obtaining the operation result of the editing instruction, the operation result is forwarded to the terminal device of the inviter's game account; when the operation result is successful, the target map after the successful operation is displayed on the terminal device of the inviter's game account; when the operation result is failed, a prompt message of the failed operation is displayed on the terminal device of the inviter's game account.
[0077] After the operation result is displayed on the terminal device of the inviter's game account, the inviter's game account can continue to issue other editing instructions.
[0078] FIG3 shows a schematic diagram of communication between the terminal device of the inviter's game account, the server, and the terminal device of the main game account when multiple game accounts jointly edit a target map, including the following steps:
[0079] Step S302: The server receives an edit instruction from the inviter's game account;
[0080] Step S304: The server forwards the edit instruction of the inviter's game account to the terminal device corresponding to the main game account;
[0081] Step S306: The terminal device corresponding to the primary game account executes the editing command on the target map to obtain the operation result of the editing command;
[0082] Step S308: The terminal device corresponding to the primary game account sends the operation result of the editing instruction to the server;
[0083] Step S310: The server forwards the operation result to the terminal device of the inviter's game account;
[0084] Step S312: When the operation result is successful, the target map after the successful operation is displayed on the terminal device of the inviter's game account; when the operation result is failed, a prompt message of the failed operation is displayed on the terminal device of the inviter's game account.
[0085] Before receiving the editing instruction from the inviter's game account, receive an invitation instruction from the main game account of the target map, obtain the account information of the inviter's game account from the invitation instruction; associate the inviter's game account with the target map, and control the inviter's game account's access to the target map.
[0086] The user corresponding to the main game account can select a game account in the account list and send an invitation instruction to the selected game account. After the game account receiving the invitation instruction agrees to the invitation, the game account becomes the inviter game account of the target map. The target map can be loaded on the interface of the inviter game account. After the target map is loaded, the target map is displayed so that the inviter game account can access and edit the target map.
[0087] Furthermore, the main game account can also delete the inviter's game account. Specifically, it receives an account deletion instruction from the main game account, obtains the account information of the account to be deleted from the account deletion instruction; wherein the account to be deleted belongs to the inviter's game account; and controls the account to be deleted to stop accessing the target map.
[0088] In the interface of the main game account, the account list of the inviter game account of the target map can be displayed. The user of the main game account can select the inviter account he wants to propose from the account list and send an account proposal instruction for the inviter game account to the server. The server can control the interface of the account to be removed to no longer display the target map, so that the account to be removed stops accessing the target map.
[0089] Corresponding to the above method embodiment, referring to FIG4 , a schematic diagram of a game map editing control device is shown. The device includes:
[0090] The instruction receiving module 40 is configured to receive editing instructions for a target map from multiple game accounts;
[0091] The component determination module 42 is configured to receive a first cancellation request for a target editing instruction from a first game account among the multiple game accounts, and determine a target map component corresponding to the target editing instruction;
[0092] The instruction undo module 44 is configured to execute, if there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, undo the target editing instruction for the target map component; wherein the subsequent editing instruction is the editing instruction for the target map component in the editing record that follows the target editing instruction.
[0093] The above-mentioned game map editing control device receives editing instructions for a target map from multiple game accounts; receives a first cancellation request for a target editing instruction in the editing instructions from a first game account among the multiple game accounts, determines the target map component corresponding to the target editing instruction; if there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, cancels the target editing instruction for the target map component; wherein the subsequent editing instruction is an editing instruction for the target map component that follows the target editing instruction in the editing record. In this method, multiple game accounts can jointly edit the game map. When a cancellation request for an editing instruction is received, if there is no subsequent editing instruction for the editing instruction, the editing instruction can be canceled, thereby avoiding operational conflicts when multiple game accounts edit the map, thereby smoothly realizing the joint editing of the game map by multiple game accounts and improving map creation efficiency.
[0094] The apparatus further includes: a first instruction processing module configured to execute: if there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, not cancelling the target editing instruction for the target map component.
[0095] The above-mentioned device also includes: a second instruction processing module, which is configured to execute: if there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, determine whether the game account corresponding to the subsequent editing instruction is the first game account; if so, cancel the target editing instruction for the target map component; if not, do not cancel the target editing instruction for the target map component.
[0096] The above-mentioned device also includes: an information sending module, which is configured to execute: if the game account corresponding to the continuation editing instruction is not the first game account, sending a cancellation application message to the game account corresponding to the continuation editing instruction; wherein the cancellation application message is used to: request the game account corresponding to the continuation editing instruction to cancel the continuation editing instruction.
[0097] The editing record corresponding to the above-mentioned target map includes an undo stack, and the above-mentioned device also includes: a saving module, which is configured to execute: determining that the editing instruction operation is successful, saving the editing instruction, the game account that issued the editing instruction, and the map component corresponding to the editing instruction in the undo stack; wherein the undo stack includes multiple editing instructions, and the multiple editing instructions are arranged in the execution order of the editing instructions.
[0098] The above-mentioned apparatus further includes: an instruction generation module configured to generate an undo instruction corresponding to the target undo instruction in the undo stack.
[0099] The above-mentioned device also includes: a third instruction processing module, configured to execute: receiving a second cancellation request from the first game account, determining that the map component corresponding to the second cancellation request is different from the target map component; and not executing the second cancellation request.
[0100] The above-mentioned device also includes: a stack query module, which is configured to execute: searching for editing instructions one by one in the undo stack in the order of execution from back to front; if a subsequent editing instruction of the target map component is queried, and the subsequent editing instruction has a corresponding undo instruction, it is determined that there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map.
[0101] The above-mentioned device also includes a component display control module, which is configured to perform the following operations: receiving an editing instruction from a second game account among multiple game accounts, and determining a first map component corresponding to the editing instruction; and sending component information of the first map component to game accounts other than the second game account among the multiple game accounts, so as to control the target map displayed on the terminal device corresponding to the game accounts other than the second game account, and display the first map component in a specified display format.
[0102] The above-mentioned multiple game accounts include a main game account and an inviter game account; the target map is stored on the terminal device corresponding to the main game account; the above-mentioned device also includes an instruction forwarding module, which is configured to execute: receiving an editing instruction from the inviter game account, forwarding the editing instruction of the inviter game account to the terminal device corresponding to the main game account, so as to execute the editing instruction on the target map through the terminal device corresponding to the main game account and obtain the operation result of the editing instruction.
[0103] The above-mentioned device also includes a result display module, which is configured to execute: forwarding the operation result to the terminal device of the inviter's game account; when the operation result is a successful operation, displaying the target map after the successful operation on the terminal device of the inviter's game account; when the operation result is a failed operation, displaying a prompt message of the failed operation on the terminal device of the inviter's game account.
[0104] The above-mentioned device also includes an invitation module, which is configured to perform the following operations: receiving an invitation instruction from the main game account of the target map, obtaining account information of the inviter's game account from the invitation instruction; associating the inviter's game account with the target map, and controlling the inviter's game account to access the target map.
[0105] The above-mentioned device also includes a removal module, which is configured to execute: receiving an account removal instruction from the main game account, obtaining account information of the account to be removed from the account removal instruction; wherein the account to be removed belongs to the inviter's game account; and controlling the account to be removed to stop accessing the target map.
[0106] This embodiment further provides an electronic device including a processor and a memory, wherein the memory stores computer-executable instructions executable by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned game map editing and control method. The electronic device can be a server or a terminal device.
[0107] As shown in FIG5 , the electronic device includes a processor 100 and a memory 101 . The memory 101 stores computer-executable instructions that can be executed by the processor 100 . The processor 100 executes the computer-executable instructions to implement the above-mentioned game map editing control method.
[0108] Furthermore, the electronic device shown in FIG. 5 further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0109] Memory 101 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between the system network element and at least one other network element is achieved through at least one communication interface 103 (which may be wired or wireless), and may utilize the Internet, a wide area network, a local area network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG5 shows only one bidirectional arrow, but this does not indicate that there is only one bus or only one type of bus.
[0110] The processor 100 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 100 or by instructions in the form of software. The above-mentioned processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or register. The storage medium is located in the memory 101. The processor 100 reads the information in the memory 101 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.
[0111] The processor in the electronic device can implement the following operations in the above-mentioned game map editing control method by executing computer-executable instructions:
[0112] Receive editing instructions for a target map from multiple game accounts; receive a first cancellation request for a target editing instruction in the editing instructions from a first game account among the multiple game accounts, and determine a target map component corresponding to the target editing instruction; if there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, cancel the target editing instruction for the target map component; wherein the subsequent editing instruction is an editing instruction for the target map component in the editing record that follows the target editing instruction.
[0113] If there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, the target editing instruction for the target map component will not be canceled.
[0114] If there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, determine whether the game account corresponding to the subsequent editing instruction is the first game account; if so, cancel the target editing instruction for the target map component; if not, do not cancel the target editing instruction for the target map component.
[0115] If the game account corresponding to the continuation editing instruction is not the first game account, a cancellation application message is sent to the game account corresponding to the continuation editing instruction; wherein the cancellation application message is used to request the game account corresponding to the continuation editing instruction to cancel the continuation editing instruction.
[0116] Determine that the editing instruction operation is successful, and save the editing instruction, the game account that issued the editing instruction, and the map component corresponding to the editing instruction in the undo stack; wherein the undo stack includes multiple editing instructions, and the multiple editing instructions are arranged in the execution order of the editing instructions.
[0117] Generate an undo instruction corresponding to the target undo instruction in the undo stack.
[0118] A second cancellation request is received from the first game account, and it is determined that the map component corresponding to the second cancellation request is different from the target map component; and the second cancellation request is not executed.
[0119] The editing record corresponding to the target map includes an undo stack. The editing instructions are queried one by one in the undo stack in the order of execution from back to front. If the subsequent editing instruction of the target map component is queried, and the subsequent editing instruction has a corresponding undo instruction, it is determined that there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map.
[0120] Receiving an edit instruction from a second game account among the multiple game accounts, determining a first map component corresponding to the edit instruction; and sending component information of the first map component to game accounts other than the second game account among the multiple game accounts to control the display of the first map component in a specified display format in a target map displayed on a terminal device corresponding to the game accounts other than the second game account.
[0121] The multiple game accounts include a main game account and an inviter game account; the target map is saved on a terminal device corresponding to the main game account; an editing instruction from the inviter game account is received, and the editing instruction of the inviter game account is forwarded to the terminal device corresponding to the main game account, so that the editing instruction is executed on the target map through the terminal device corresponding to the main game account to obtain the operation result of the editing instruction.
[0122] The operation result is forwarded to the terminal device of the inviter's game account; when the operation result is successful, the target map after the successful operation is displayed on the terminal device of the inviter's game account; when the operation result is failed, a prompt message of the operation failure is displayed on the terminal device of the inviter's game account.
[0123] Receive an invitation instruction from the main game account of the target map, obtain the account information of the inviter's game account from the invitation instruction; associate the inviter's game account with the target map, and control the inviter's game account's access to the target map.
[0124] Receive an account removal instruction from the main game account, and obtain account information of the account to be removed from the account removal instruction; wherein the account to be removed belongs to the inviter's game account; control the account to be removed to stop accessing the target map.
[0125] In the above method, multiple game accounts can jointly edit the game map. When a cancellation request for an editing instruction is received, the editing instruction can be canceled if there is no subsequent editing instruction for the editing instruction, thereby avoiding operation conflicts when multiple game accounts edit the map, thereby smoothly realizing multiple game accounts jointly editing the game map and improving map creation efficiency.
[0126] This embodiment also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned game map editing control method.
[0127] The computer-executable instructions stored in the computer-readable storage medium can implement the following operations in the above-mentioned game map editing control method by executing the computer-executable instructions:
[0128] Receive editing instructions for a target map from multiple game accounts; receive a first cancellation request for a target editing instruction in the editing instructions from a first game account among the multiple game accounts, and determine a target map component corresponding to the target editing instruction; if there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, cancel the target editing instruction for the target map component; wherein the subsequent editing instruction is an editing instruction for the target map component in the editing record that follows the target editing instruction.
[0129] If there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, the target editing instruction for the target map component will not be canceled.
[0130] If there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, determine whether the game account corresponding to the subsequent editing instruction is the first game account; if so, cancel the target editing instruction for the target map component; if not, do not cancel the target editing instruction for the target map component.
[0131] If the game account corresponding to the continuation editing instruction is not the first game account, a cancellation application message is sent to the game account corresponding to the continuation editing instruction; wherein the cancellation application message is used to request the game account corresponding to the continuation editing instruction to cancel the continuation editing instruction.
[0132] Determine that the editing instruction operation is successful, and save the editing instruction, the game account that issued the editing instruction, and the map component corresponding to the editing instruction in the undo stack; wherein the undo stack includes multiple editing instructions, and the multiple editing instructions are arranged in the execution order of the editing instructions.
[0133] Generate an undo instruction corresponding to the target undo instruction in the undo stack.
[0134] A second cancellation request is received from the first game account, and it is determined that the map component corresponding to the second cancellation request is different from the target map component; and the second cancellation request is not executed.
[0135] The editing record corresponding to the target map includes an undo stack. The editing instructions are queried one by one in the undo stack in the order of execution from back to front. If the subsequent editing instruction of the target map component is queried, and the subsequent editing instruction has a corresponding undo instruction, it is determined that there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map.
[0136] Receiving an editing instruction from a second game account among the multiple game accounts, determining a first map component corresponding to the editing instruction; sending component information of the first map component to game accounts other than the second game account among the multiple game accounts, so as to control the target map displayed on the terminal device corresponding to the game accounts other than the second game account to display the first map component in a specified display format.
[0137] The multiple game accounts include a main game account and an inviter game account; the target map is saved on a terminal device corresponding to the main game account; an editing instruction from the inviter game account is received, and the editing instruction of the inviter game account is forwarded to the terminal device corresponding to the main game account, so that the editing instruction is executed on the target map through the terminal device corresponding to the main game account to obtain the operation result of the editing instruction.
[0138] The operation result is forwarded to the terminal device of the inviter's game account; when the operation result is successful, the target map after the successful operation is displayed on the terminal device of the inviter's game account; when the operation result is failed, a prompt message of the operation failure is displayed on the terminal device of the inviter's game account.
[0139] Receive an invitation instruction from the main game account of the target map, obtain the account information of the inviter's game account from the invitation instruction; associate the inviter's game account with the target map, and control the inviter's game account's access to the target map.
[0140] Receive an account removal instruction from the main game account, and obtain account information of the account to be removed from the account removal instruction; wherein the account to be removed belongs to the inviter's game account; control the account to be removed to stop accessing the target map.
[0141] In the above method, multiple game accounts can jointly edit the game map. When a cancellation request for an editing instruction is received, the editing instruction can be canceled if there is no subsequent editing instruction for the editing instruction, thereby avoiding operation conflicts when multiple game accounts edit the map, thereby smoothly realizing multiple game accounts jointly editing the game map and improving map creation efficiency.
[0142] The game map editing and control method, device, and computer program product of an electronic device provided in the embodiments of the present disclosure include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. For specific implementation, please refer to the method embodiments and will not be repeated here.
[0143] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0144] In addition, in the description of the embodiments of the present disclosure, unless otherwise expressly specified or limited, the terms "installed," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in the present disclosure based on the specific circumstances.
[0145] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0146] In the description of this disclosure, it should be noted that terms such as "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer" indicate positions or locations based on those shown in the accompanying drawings. These terms are intended solely to facilitate and simplify the description of this disclosure and are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0147] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A method for editing and controlling a game map, the method comprising: Receive editing instructions for a target map from multiple game accounts; receiving a first cancellation request for a target editing instruction among the editing instructions from a first game account among the multiple game accounts, and determining a target map component corresponding to the target editing instruction; If there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, cancel the target editing instruction for the target map component; wherein the subsequent editing instruction is an editing instruction for the target map component after the target editing instruction in the editing record.
2. The method according to claim 1, wherein: The method comprises: If there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, the target editing instruction for the target map component is not cancelled.
3. The method according to claim 1, wherein: The method comprises: If there is a subsequent editing instruction for the target map component in the editing record corresponding to the target map, determining whether the game account corresponding to the subsequent editing instruction is the first game account; If yes, cancel the target editing instruction for the target map component; If not, the target editing instruction for the target map component is not canceled.
4. The method according to claim 3, wherein: The method further comprises: If the game account corresponding to the continuation editing instruction is not the first game account, a cancellation application message is sent to the game account corresponding to the continuation editing instruction; wherein the cancellation application message is used to request the game account corresponding to the continuation editing instruction to cancel the continuation editing instruction.
5. The method according to claim 1, wherein: The editing record corresponding to the target map includes an undo stack, and after the step of receiving editing instructions for the target map from multiple game accounts, the method includes: Determine that the editing instruction operation is successful, and save the editing instruction, the game account that issued the editing instruction, and the map component corresponding to the editing instruction in the undo stack; wherein the undo stack includes multiple editing instructions, and the multiple editing instructions are arranged in the execution order of the editing instructions.
6. The method according to claim 3, wherein: After the step of cancelling the target editing instruction for the target map component, the method comprises: An undo instruction corresponding to the target undo instruction is generated in an undo stack.
7. The method according to claim 3, wherein: After the step of not cancelling the target editing instruction for the target map component, the method further includes: receiving a second cancellation request from the first game account, and determining that a map component corresponding to the second cancellation request is different from the target map component; The second revocation request is not executed.
8. The method according to claim 1, wherein: The editing record corresponding to the target map includes an undo stack. If there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, before the step of undoing the target editing instruction for the target map component, the method further includes: Searching the undo stack for edit instructions one by one in the order of execution from back to front; If a continuation editing instruction of the target map component is found, and a corresponding undo instruction exists for the continuation editing instruction, it is determined that no continuation editing instruction for the target map component exists in the editing record corresponding to the target map.
9. The method according to claim 1, wherein: The method further comprises: Receiving an editing instruction from a second game account among the multiple game accounts, and determining a first map component corresponding to the editing instruction; The component information of the first map component is sent to game accounts other than the second game account among the multiple game accounts, so as to control the first map component to be displayed in a specified display format in the target map displayed on the terminal device corresponding to the game accounts other than the second game account.
10. The method according to claim 1, wherein: The multiple game accounts include a main game account and an inviter game account; The target map is stored on the terminal device corresponding to the main game account; the method further includes: Receive the editing instruction from the inviter's game account, forward the editing instruction of the inviter's game account to the terminal device corresponding to the main game account, so as to execute the editing instruction on the target map through the terminal device corresponding to the main game account to obtain the operation result of the editing instruction.
11. The method according to claim 10, wherein: After the step of obtaining the operation result of the editing instruction, the method further includes: Forwarding the operation result to the terminal device of the inviting person's game account; When the operation result is successful, the target map after the successful operation is displayed on the terminal device of the inviter's game account; When the operation result is an operation failure, a prompt message of the operation failure is displayed on the terminal device of the inviter's game account.
12. The method according to claim 10, wherein: Before the step of receiving the editing instruction from the inviter's game account, the method further includes: Receiving an invitation instruction from the main game account of the target map, and obtaining account information of the inviter's game account from the invitation instruction; The inviting person's game account is associated with the target map, and the inviting person's game account is controlled to access the target map.
13. The method according to claim 10, wherein: The method further comprises: Receiving an account removal instruction from the main game account, and obtaining account information of the account to be removed from the account removal instruction; wherein the account to be removed belongs to the game account of the inviter; Control the account to be removed to stop accessing the target map.
14. A game map editing control device, the device comprising: An instruction receiving module is configured to receive editing instructions for a target map from multiple game accounts; The component determination module is configured to receive a request for receiving a request for receiving a request for receiving a request for receiving a request from a first game account among the plurality of game accounts. a first cancellation request for a target editing instruction in the editing instruction, and determining a target map component corresponding to the target editing instruction; The instruction undo module is configured to execute, if there is no subsequent editing instruction for the target map component in the editing record corresponding to the target map, undo the target editing instruction for the target map component; wherein the subsequent editing instruction is the editing instruction for the target map component in the editing record after the target editing instruction.
15. An electronic device, comprising: A processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the game map editing control method described in any one of claims 1-13.
16. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the game map editing and control method described in any one of claims 1-13.
Citation Information
Patent Citations
Game scene editing method and device, storage medium and electronic device
CN111569426A
Editing method and device for non-fashion parts, computer equipment and storage medium
CN115869626A
Scene element interaction method and device, electronic equipment and storage medium
CN116510311A
Game map editing control method and device and electronic equipment
CN117357902A
Controlling a productivity application to integrate a revision stream and an undo stack to perform out of order undo operations
US11308272B1