Method, device, equipment, and program for marking a position in a virtual scene
The drag-and-release method for marking virtual resource icons in virtual scenes addresses the inefficiencies of repetitive tapping by enhancing interaction efficiency and accuracy in virtual scene navigation.
Patent Information
- Application Number
- JP2024531371
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-02-25
- Filing Date
- 2022-11-09
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2042-11-09
AI Technical Summary
Existing methods for marking positions in virtual scenes, such as game maps, require multiple taps and interactions, reducing efficiency and increasing human-computer interactions.
A method and device that allows virtual resource icons to be marked by dragging and releasing on a map, reducing the need for repetitive tapping and improving interaction efficiency.
The drag-and-release method enhances marking efficiency by minimizing human-computer interactions and preventing errors, allowing quick and accurate marking of virtual resources without changing the map scale or position.
Smart Images

Figure 0007823192000001 
Figure 0007823192000002 
Figure 0007823192000003
Abstract
Description
[Technical Field]
[0001] The present application relates to the technical field of virtualization and human-computer interaction, and in particular to a method, apparatus, device, storage medium, and program product for marking locations in a virtual scene.
[0002] This application is based on and claims priority from a Chinese patent application bearing application number 202210179779.2 and filed on February 25, 2022, the entire contents of which are hereby incorporated by reference into this application. [Background technology]
[0003] With the increasing number of open-world games, players typically perform various system-recommended game tasks within a large world. There are many types of tasks in games, and each task often has different interaction scenes and non-player characters. To view a task, players typically need to open the map using the in-game map function, find the corresponding task icon on the map, and then use automatic navigation or set a marking point, then follow the in-game guidance to reach the task point.
[0004] In the related art, if you want to mark a position on a map, you need to tap multiple times, and if you want to mark repeatedly, you need to repeat more tapping steps, which increases the number of human-computer interactions and reduces marking efficiency. Summary of the Invention [Problem to be solved by the invention]
[0005] The embodiments of the present application provide a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for marking positions in a virtual scene, which can realize quick marking of virtual resource icons, reduce the number of human-computer interactions, and improve the efficiency of operating and controlling the virtual scene. [Means for solving the problem]
[0006] The technical solutions of the embodiments of the present application are realized as follows:
[0007] An embodiment of the present application provides a method for marking a location in a virtual scene, comprising: displaying a map of the virtual scene; displaying at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene; In response to a drag operation on a target virtual resource icon of the at least one virtual resource icon, controlling the target virtual resource icon to move on the map in accordance with the execution of the drag operation; In response to a release command for the drag operation, marking the target virtual resource icon at a location on the map where the target virtual resource icon currently resides.
[0008] An embodiment of the present application provides a position marking device in a virtual scene, including: a display module; a control module; and a marking module; the display module is configured to display a map of the virtual scene in a virtual scene interface; the display module is further configured to display at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene; the control module is configured to, in response to a drag operation on a target virtual resource icon of the at least one virtual resource icon, control the target virtual resource icon to move on the map in association with execution of the drag operation; The marking module is configured to mark the target virtual resource icon at a location on the map where the target virtual resource icon currently resides in response to a release command for the drag operation.
[0009] An embodiment of the present application provides an electronic device, a memory configured to store executable instructions; and a processor configured, when executing executable instructions stored in the memory, to implement the method for marking a location in a virtual scene provided by an embodiment of the present application.
[0010] An embodiment of the present application provides a computer-readable storage medium having executable instructions stored thereon that, when executed by a processor, are used to implement the method for marking a location in a virtual scene provided by the embodiment of the present application.
[0011] An embodiment of the present application provides a computer program product, which includes a computer program or instructions, which, when executed by a processor, implements the method for marking a location in a virtual scene provided by the embodiment of the present application. [Effects of the Invention]
[0012] The embodiments of the present application have the following beneficial effects:
[0013] According to the embodiment of the present application, a drag operation on a target virtual resource icon displayed in a virtual scene can be used to control the movement of the target virtual resource icon on a map, and the marking process for the target virtual resource icon can be completed after receiving a release command for the drag operation. In this way, a virtual resource icon can be quickly and accurately marked by dragging without changing the scale and position of the map. Therefore, compared with the related art method of tapping a position on a map to trigger a marking pop-up window, the number of human-computer interactions can be reduced, the efficiency of marking a virtual resource icon on a map can be improved, and at the same time, erroneous touching can be avoided, and the efficiency of operating and controlling the virtual scene can be improved. [Brief explanation of the drawings]
[0014] [Figure 1] 1 is an architecture schematic diagram of a position marking system in a virtual scene provided by an embodiment of the present application; [Figure 2] 1 is a structural schematic diagram of an electronic device implementing a method for marking a location in a virtual scene provided by an embodiment of the present application; [Figure 3] 1 is a flowchart of a method for marking a location in a virtual scene provided by an embodiment of the present application; [Figure 4] 1 is a schematic diagram of a map interface of a virtual scene provided by an embodiment of the present application; [Figure 5] FIG. 2 is a schematic diagram of graphics rendering provided by an embodiment of the present application. [Figure 6A] FIG. 2 is a schematic diagram of a virtual resource icon display provided by an embodiment of the present application; [Figure 6B] FIG. 2 is a schematic diagram of a virtual resource icon display provided by an embodiment of the present application; [Figure 7] FIG. 2 is a schematic diagram of a target display style provided by an embodiment of the present application. [Figure 8]FIG. 1 is a schematic diagram of a wheel display style provided by an embodiment of the present application. [Figure 9] FIG. 1 is a schematic diagram of information presentation provided by an embodiment of the present application. [Figure 10] FIG. 10 is a schematic diagram of a resource name modification provided by an embodiment of the present application; [Figure 11] FIG. 1 is a schematic diagram of a local magnification interface provided by an embodiment of the present application. [Figure 12] 1 is a schematic diagram of a fixed local magnification interface provided by an embodiment of the present application; FIG. [Figure 13] FIG. 2 is a schematic diagram of a multi-point marking mode provided by an embodiment of the present application. [Figure 14] 1 is a schematic diagram of a multi-point marking area provided by an embodiment of the present application; [Figure 15] 1 is a schematic diagram of a map marking provided by the related art; [Figure 16] 1 is a flowchart of a location marking operation for a virtual resource provided by an embodiment of the present application; [Figure 17] 1 is a flowchart of an editing operation for a marking name provided by an embodiment of the present application; [Figure 18] 1 is a flowchart of a position marking method provided by an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION
[0015] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is described in detail below in conjunction with the drawings. The described embodiments should not be considered as limiting the present application, and all other embodiments obtained by those skilled in the art without requiring creative work fall within the scope of protection of the present application.
[0016] In the following description, references to "some embodiments" describe a subset of all possible embodiments, but it will be understood that "some embodiments" may be the same or different subsets of all possible embodiments, and may be combined with each other where no inconsistency arises.
[0017] Where a description similar to "first / second" appears in the application documents, the following explanation is provided. In the following description, the terms "first\second\third" are used merely to distinguish between similar objects and do not represent a particular ranking of the objects. It should be understood that "first\second\third" can be interchanged in the specified order or order where permitted, and the embodiments of the present application described herein can be implemented in orders other than those illustrated or described herein.
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art. The terms used herein are only for describing the embodiments of the present application and are not intended to limit the present application.
[0019] Before describing the embodiments of the present application in detail, the nouns and terms used in the embodiments of the present application will be explained. The nouns and terms used in the embodiments of the present application are interpreted as follows:
[0020] 1) A client is an application program that runs on a terminal and is used to provide various services, such as an instant messaging client or a video playback client.
[0021] 2) "In response" is used to describe a condition or state on which an operation is dependent. The operation or operations that are performed when the dependent condition or state is met may be performed in real time or with a set delay, and unless otherwise specified, there is no restriction on the order in which the operations are performed.
[0022] 3) A virtual scene is a virtual scene displayed (or provided) when an application program runs on a terminal. The virtual scene may be a simulated environment of the real world, a semi-simulated, semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene may be any type of 2D virtual scene, 2.5D virtual scene, or 3D virtual scene, but the embodiments of the present application do not limit the dimensions of the virtual scene. For example, the virtual scene may include a sky, land, and ocean, and the land may include environmental elements such as a desert and a city. A user can control virtual objects to move in the virtual scene, and the movements may include at least one of body posture adjustment, crawling, walking, running, cycling, jumping, driving, picking up, shooting, attacking, and throwing, but are not limited to these. The virtual scene may be displayed from a first-person perspective (e.g., the player plays a virtual object in the game from his / her own perspective), a third-person perspective (e.g., the player plays the game by chasing a virtual object in the game), or a bird's-eye view, where the virtual scene can be displayed from any of the above perspectives.
[0023] For example, when displaying a virtual scene from a first-person perspective, the virtual scene displayed in the human-computer interaction interface may include determining a viewing area of the virtual object according to the viewing position and viewing angle of the virtual object in the complete virtual scene, and presenting a portion of the virtual scene located in the viewing area of the complete virtual scene, i.e., the displayed virtual scene may be a portion of the panoramic virtual scene. The first-person perspective is the viewing perspective that can have the greatest impact on the user, thereby enabling the user to achieve a sense of immersion in the operation process. For example, when displaying a virtual scene from a bird's-eye view, the virtual scene interface displayed in the human-computer interaction interface may include presenting a portion of the virtual scene corresponding to the scaling operation in the human-computer interaction interface in response to a scaling operation on the panoramic virtual scene, i.e., the displayed virtual scene may be a portion of the panoramic virtual scene. In this way, the operability of the user's operation process can be improved, thereby improving the efficiency of human-computer interaction.
[0024] 4) The scene data represents various features that an object in a virtual scene expresses in the interaction process, and may include, for example, the position of the object in the virtual scene. Of course, different types of features may be included depending on the type of the virtual scene. For example, in a game virtual scene, the scene data may include the waiting time when configuring various functions in the virtual scene (determined by the number of times the same function can be used within a certain time), and may represent the attribute values of various states of a game character, such as life value (also called hit points), magic value (also called mana points), status value, and health points.
[0025] 5) Open world games, also known as free roam games, are a type of game stage design in which players can freely roam in a virtual world and freely choose the time and method to complete game tasks.
[0026] Based on the above interpretations of the nouns and terms used in the embodiments of the present application, the position marking system in a virtual scene provided by the embodiments of the present application will be described below. Referring to Fig. 1, Fig. 1 is a schematic architecture diagram of the position marking system in a virtual scene provided by the embodiments of the present application, in which, to support one exemplary application, terminals (terminals 400-1 and 400-2 are shown as examples) are connected to a server 200 via a network 300. The network 300 may be a wide area network, a local area network, or a combination of both, and realizes data transmission using wireless or wired links.
[0027] The terminals (e.g., the terminal 400-1 and the terminal 400-2) are configured to receive a trigger operation for entering the virtual scene based on the view interface, and to send a request for acquiring scene data of the virtual scene to the server 200; the server 200 is configured to receive a request for scene data acquisition, and in response to the request, return scene data of the virtual scene to the terminal; The terminals (e.g., terminals 400-1 and 400-2) are configured to receive scene data of the virtual scene, render a screen of the virtual scene based on the obtained scene data, and present the screen of the virtual scene on a graphics interface (graphics interface 410-1 and graphics interface 410-2 are shown as examples), where corresponding map information is presented on the screen of the virtual scene, and the contents presented on the screen of the virtual scene are all obtained by rendering based on the returned scene data of the virtual scene; The terminals (e.g., terminal 400-1 and terminal 400-2) are further configured to: display a map of the virtual scene; display at least one virtual resource icon in response to a position marking command for a virtual resource in the virtual scene; control the target virtual resource icon to move on the map in accordance with the execution of the drag operation in response to a drag operation for a target virtual resource icon among the at least one virtual resource icon; and mark the target virtual resource icon at its current position on the map in response to a release command for the drag operation. In this way, marking of any position in the entire open world map can be completed by simply dragging the target virtual resource icon.
[0028] In some embodiments, embodiments of the present application are implemented using cloud technology. Cloud technology refers to a type of hosting technology that integrates a set of resources, such as hardware, software, and networks, within a wide area network or a local area network to realize computing, storage, processing, and sharing of data. Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, and application technology based on the business model application of cloud computing, which can form a resource pool that can be used as needed, flexibly, and conveniently. Cloud computing technology has become an important support. The background services of technology network systems require a large amount of computing and storage resources. For example, when a virtual scene is a game scene, the corresponding game is a cloud game, and the virtual scene screen displayed on a terminal is all rendered by a server.
[0029] In practical applications, the server 200 may be an independent physical server, a server cluster or a distributed system consisting of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminals (e.g., terminals 400-1 and 400-2) may be, but are not limited to, smartphones, tablet PCs, laptops, desktop computers, smart speakers, smart TVs, smart watches, etc. The terminals (e.g., terminals 400-1 and 400-2) and the server 200 may be directly or indirectly connected via wired or wireless communication, and this application does not impose any limitations thereon.
[0030] In actual applications, terminals (including terminal 400-1 and terminal 400-2) have installed and running application programs supporting virtual scenes. The application programs may be any of first-person shooter games (FPS), third-person shooter games, driving games where steering is the main action, multiplayer online battle arena games (MOBA), two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual reality application programs, three-dimensional map programs, and multiplayer survival games. The application programs may be standalone application programs, such as standalone 3D game programs.
[0031] Taking an electronic game scene as an example, a user can operate the terminal in advance, and the terminal can download a game profile of the electronic game after detecting the user's operation, which may include an application program, interface display data, or virtual scene data of the electronic game, etc., so that the user can call up the game profile when logging in to the electronic game on the terminal and render and display the electronic game interface. A user can perform a touch control operation on the terminal, and the terminal can determine game data corresponding to the touch control operation after detecting the touch control operation, and render and display the game data, which may include virtual scene data and behavior data of virtual objects in the virtual scene, etc.
[0032] Referring to FIG. 2, FIG. 2 is a structural schematic diagram of an electronic device implementing the method for marking locations in a virtual scene according to an embodiment of the present application. In practical application, the electronic device 500 may be the server or terminal shown in FIG. 1. Taking the electronic device 500 as the terminal shown in FIG. 1 as an example, the electronic device implementing the method for marking locations in a virtual scene according to an embodiment of the present application will be described. The electronic device 500 according to an embodiment of the present application includes at least one processor 510, a memory 550, at least one network interface 520, and a user interface 530. The components in the electronic device 500 are connected together via a bus system 540. As can be understood, the bus system 540 is configured to realize communication between these components. In addition to a data bus, the bus system 540 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses in FIG. 2 are referred to as the bus system 540.
[0033] The processor 510 may be an integrated circuit chip having signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, where the general-purpose processor may be a microprocessor or any other common processor.
[0034] The user interface 530 includes one or more output devices 531 capable of presenting media content, including one or more speakers and / or one or more visual display screens. The user interface 530 further includes one or more input devices 532, including user interface members that contribute user input, such as a keyboard, mouse, microphone, touchscreen display screen, camera, other input buttons, and controls.
[0035] Memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. Memory 550 optionally includes one or more storage devices whose physical location is remote from processor 510.
[0036] The memory 550 may include volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Nonvolatile memory may be read-only memory (ROM), and volatile memory may be random access memory (RAM). The memory 550 described in the embodiments herein is intended to include any suitable type of memory.
[0037] In some embodiments, memory 550 may store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as illustratively described below.
[0038] The operating system 551 includes system programs configured to process various basic system services and execute hardware-related tasks, such as a frame layer, a core library layer, and a driver layer, which are used to realize various basic services and process hardware-based tasks; The network communication module 552 is configured to reach other computing devices via one or more (wired or wireless) network interfaces 520, example network interfaces 520 include Bluetooth, Wireless Fidelity (WiFi), Universal Serial Bus (USB), etc. a presentation module 553 configured to present information via one or more output devices 531 (e.g., a display screen, a speaker, etc.) associated with the user interface 530 (e.g., the user interface used to operate peripherals and display content and information); The input processing module 554 is configured to detect one or more user inputs or interactivity from one of the one or more input devices 532 and to interpret the detected inputs or interactivity.
[0039] In some embodiments, the position marking device in a virtual scene provided by the embodiments of the present application may be realized using a software method. Figure 2 shows a position marking device in a virtual scene 555 stored in memory 550, which may be software in the form of a program, a plug-in component, etc., and includes software modules: a display module 5551, a control module 5552, and a marking module 5553. These modules are logical and can be arbitrarily combined or divided according to the functions to be realized. Therefore, the functions of each module will be described below.
[0040] In some other embodiments, the position marking device in a virtual scene provided by the embodiments of the present application may be realized by adopting a method combining software and hardware. For example, the position marking device in a virtual scene provided by the embodiments of the present application may be a processor in the form of a hardware decode processor, which is programmed to execute the position marking method in a virtual scene provided by the embodiments of the present application. For example, the processor in the form of a hardware decode processor may adopt one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), or other electronic components.
[0041] Based on the above description of the position marking system in a virtual scene and the electronic device provided by the embodiments of the present application, the position marking method in a virtual scene provided by the embodiments of the present application will now be described. In some embodiments, the position marking method in a virtual scene provided by the embodiments of the present application may be implemented solely by a server or a terminal, or may be implemented jointly by a server and a terminal. In some embodiments, the terminal or server can implement the position marking method in a virtual scene provided by the embodiments of the present application by running a computer program. For example, the computer program may be a native program or software module in an operating system, or a local application program (APP), i.e., a program that needs to be installed on an operating system to operate. For example, a client supporting virtual scenes, such as a game APP, may be an applet, i.e., a program that can be run simply by downloading it in a browser environment, or it may even be an applet that can be incorporated into any APP. In short, the computer program may be any type of application program, module, or plug-in component.
[0042] The method for marking a position in a virtual scene provided by the embodiment of the present application will be described below by taking the implementation by a terminal as an example. Referring to Figure 3, Figure 3 is a flowchart of the method for marking a position in a virtual scene provided by the embodiment of the present application, and the method for marking a position in a virtual scene provided by the embodiment of the present application includes the following steps 101 to 104.
[0043] In step 101, the terminal displays a map of the virtual scene.
[0044] In actual implementation, an application client (e.g., a game client) supporting virtual scenes may be installed on a terminal, or a client with integrated virtual scene functions (e.g., an instant messaging client, a live streaming client, an educational client, etc.) may be installed on the terminal. When a user opens an application client on the terminal and the terminal runs the application client, the user can perform interactions between virtual objects based on the screen of the virtual scene displayed on the client. For example, when the client is a game client, the user can perform interactions (e.g., virtual battles) between game characters (virtual objects) in the game scene based on the game screen displayed on the game client. In some embodiments, the terminal presents an interface for a virtual scene (e.g., an open-world adventure game), and a corresponding map (scene map) is presented in the virtual scene interface. The map corresponding to the virtual scene contains many virtual resources for the player to collect, and the player can mark various virtual resources at location points on the map. Common virtual resources may include treasure chests, energy bars, etc.
[0045] For example, refer to FIG. 4, which is a schematic diagram of a map interface of a virtual scene provided by an embodiment of the present application, which can display location points of virtual resources on a map for the virtual scene in the figure.
[0046] In step 102, at least one virtual resource icon is displayed in response to a location marking command for a virtual resource in the virtual scene.
[0047] In practical implementation, the terminal can display at least one virtual resource icon after receiving a position marking instruction for a virtual resource in a virtual scene.
[0048] A triggering method of a position marking instruction will be described. In some embodiments, before displaying at least one virtual resource icon, the terminal can receive a position marking instruction for a virtual resource in a virtual scene in the following manner: The terminal displays a position marking function item in an interface of the virtual scene, and receives a position marking instruction for the virtual resource in the virtual scene in response to a first trigger operation on the position marking function item.
[0049] In actual implementation, a position marking function item is displayed in the interface of the virtual scene. Here, the position marking function item is a control, and may have various presentation formats, such as a graphic button, a progress bar, a menu, a list, etc., but is not limited thereto in the embodiment of the present application. When a user triggers the position marking function item, the terminal can receive a position marking command for the virtual resource.
[0050] Illustratively, as shown in FIG. 4, reference numeral 1 in the figure indicates a location marking button, and when a user taps the location marking button, the terminal can receive a location marking instruction.
[0051] In some embodiments, before displaying at least one virtual resource icon, the terminal may receive a position marking instruction for the virtual resource in the following manner: The terminal receives a graphics drawing operation triggered according to an interface of the virtual scene, and when the graphics drawn by the graphics drawing operation match preset graphics (predetermined graphics), the terminal receives a position marking instruction for the virtual resource in the virtual scene.
[0052] In actual implementation, a user can perform a graphics drawing operation on a virtual scene interface at any position on the terminal screen. In response to the user's graphics drawing operation, the terminal obtains position information of each point in the graphics drawing operation, generates graphics drawn by the graphics drawing operation, and matches the drawn graphics with preset graphics pre-stored in the graphics library and used to trigger a position marking command. If the matching between at least one preset graphic and the drawn graphics is successful (i.e., the similarity reaches a similarity threshold, the magnitude of which can be specifically set according to actual needs, e.g., 0.8), a position marking command for the virtual resource can be triggered after the graphics drawing operation is completed. Alternatively, the terminal obtains the drawing trajectory when the user performs the graphics drawing operation, matches the pattern formed by the drawing trajectory with pre-stored graphics, and triggers a position marking command for the virtual resource when the matching is successful. In addition, the terminal can also predict the drawn graphics using an artificial intelligence-based multi-classification model for classifying graphics installed in the terminal. The input information of the multi-classification model is the position information of the drawn graphics, and the output information is the graphics category to which the drawn graphics belongs in a pre-defined graphics library.
[0053] Illustratively, refer to Fig. 5, which is a schematic diagram of graphics drawing provided by an embodiment of the present application. A user performs a graphics drawing operation on a virtual scene interface to obtain a graphic indicated by reference numeral 1 in the figure (the style of the graphic may be various, such as a circle, a triangle, etc.). It should be noted that, in order to avoid affecting the user's viewing experience, the graphic obtained by the graphics drawing operation may not be displayed in the virtual scene interface, i.e., the graphic indicated by reference numeral 1 in the figure may not be displayed in the actual virtual live room interface.
[0054] The above method of triggering the position marking command by graphics drawing can effectively reduce the screen occupancy of the control in the virtual scene interface, and save the screen space occupancy.
[0055] In some embodiments, the terminal can display the resource name of the virtual resource indicated by the virtual resource icon in the following manner: The terminal obtains the icon display length of the virtual resource icon and the name display length of the resource name of the virtual resource indicated by the virtual resource icon, and when the sum of the icon display length and the name length does not reach the length threshold, displays the resource name of the virtual resource indicated by the virtual resource icon in the process of displaying the virtual resource icon.
[0056] In actual implementation, the terminal receives a position marking command for the virtual resource triggered by the above-mentioned triggering method, and displays at least one virtual resource icon and the resource name of the virtual resource indicated by the virtual resource icon in the virtual scene interface according to the actual situation of the virtual scene displayed on the terminal screen. It is necessary to note that the virtual resource icon and the resource name of the virtual resource indicated by the virtual resource icon may be displayed simultaneously, or only the virtual resource icon may be displayed. The terminal can determine whether to simultaneously display the virtual resource icon and the corresponding resource name according to the icon length of the virtual resource icon and the name length of the resource name. The terminal determines a length threshold for synchronously displaying the virtual resource icon and the corresponding resource name according to the distribution of each element (such as a control or a header) in the virtual scene, and displays the virtual resource icon and the corresponding resource name simultaneously when the sum of the icon length and the resource name length reaches the threshold.
[0057] For example, Figures 6A and 6B are display schematic diagrams of virtual resource icons provided by an embodiment of the present application. As shown in Figure 6A, Figure 6A simultaneously displays the virtual resource icon and the corresponding resource name.
[0058] The above method of simultaneously displaying the virtual resource icons and the corresponding resource names can intuitively display the virtual resource names and improve the human-computer interaction experience.
[0059] In some embodiments, the terminal can display the resource name of the virtual resource indicated by the virtual resource icon in the following manner: when the sum of the icon display length and the name display length reaches a width threshold, the terminal hides the resource name of the corresponding virtual resource in the process of displaying the virtual resource icon, and when the virtual resource icon is in a selected state, uses a floating layer to display the resource name of the virtual resource indicated by the virtual resource icon. In this way, when the sum of the icon display length and the name display length reaches a width threshold, the manner of hiding the resource name reduces the occupation of display resources and releases display space, and when the virtual resource icon is in a selected state, uses a floating layer to display the resource name of the selected virtual resource icon, thereby enriching the information display manner, making the display of resource names more flexible and improving the utilization rate of display resources.
[0060] In actual implementation, when the terminal determines that the sum of the icon display length and the name display length reaches the width threshold, it can only display the virtual resource icon. That is, when the virtual resource icon is displayed, the name of the corresponding virtual resource is hidden, and when the user moves the cursor to any one of the virtual resource icons, the resource name of the virtual resource indicated by the current virtual resource icon can be displayed in the form of a floating layer. It is necessary to note that the terminal can also provide a setting interface for the display mode of the virtual resource icon, and adopt the set target display mode to display the virtual resource icon in the virtual interface.
[0061] 6B, for example, reference numeral 1 in FIG. 6B indicates a display method of a virtual resource icon, in which only the virtual resource icon is displayed and the resource name of the virtual resource is hidden, and when the cursor moves to any virtual resource icon, the resource name is displayed in the form of a floating layer, as in the display method of the resource name indicated by reference numeral 2 in the figure.
[0062] The above method of only displaying virtual resource icons can reduce the space utilization rate of the virtual interface and improve the human-computer interaction experience.
[0063] In some embodiments, the terminal can display virtual resource icons in the following manner: in response to a position marking command for a virtual resource in a virtual scene, the terminal displays an icon floating layer in an interface of the virtual scene, and displays at least one virtual resource icon in the icon floating layer by adopting a target display style, where the target display style includes at least one of a list display style and a wheel display style.
[0064] In actual implementation, the terminal provides a setting interface for setting a display style for displaying at least one virtual resource icon. The setting interface presents at least one display style option, including, but not limited to, a list display style option and a wheel display style option. In response to a selection operation for a target display style option among the at least one display style option, the terminal determines a target display style corresponding to the target display style option as a display style for the at least one virtual resource icon. After determining the target display style, the terminal can display the at least one virtual resource icon in the virtual scene interface using the target display style in the form of a floating layer.
[0065] For example, refer to FIG. 7, which is a schematic diagram of a target display style provided by an embodiment of the present application. In the figure, two target display style options are displayed, and an example diagram corresponding to each target display style option is shown. When the target display style is a list display style, the display style of at least one virtual resource icon is shown in FIGS. 6A to 6B. Refer to FIG. 8, which is a schematic diagram of a wheel display style provided by an embodiment of the present application. In FIG. 8, the terminal determines that the target display style for at least one virtual resource icon is a wheel display style. In response to a long press operation on a location function item (denoted by reference numeral 1 in the figure), the terminal invokes a wheel (denoted by reference numeral 2 in the figure) used to display at least one virtual resource icon. When the cursor slides from the location function item to any one of the virtual resource icons in the wheel, the terminal may adopt the form of a floating layer to display the resource name of the virtual resource indicated by the virtual resource icon. It should be noted that the at least one virtual resource icon in the wheel display style may be located at any position in the virtual interface.
[0066] The above multiple display styles for at least one virtual resource icon can meet users' personalized needs and improve the human-computer interaction experience.
[0067] In some embodiments, the terminal can display the virtual resource icons in the following manner: When at least one virtual resource icon is in a prohibited state, the terminal displays presentation information in response to a trigger operation on the prohibited virtual resource icon, where the presentation information is used to present that the marking quantity for the virtual resource corresponding to the prohibited virtual resource icon has reached a quantity threshold.
[0068] In practice, the marking quantity of a virtual resource corresponding to any virtual resource icon has a certain requirement. When the marking quantity of a virtual resource on the map of the virtual scene reaches the corresponding quantity threshold, the virtual resource indicated by the virtual resource icon cannot be marked further. Therefore, the virtual resource icon may be in a disabled state and may be used to notify the user that the virtual resource indicated by the current virtual resource icon on the map has reached the quantity threshold.
[0069] For example, refer to FIG. 9, which is a schematic diagram of information presentation provided by an embodiment of the present application. In the figure, a list display style is adopted to simultaneously display virtual resource icons and resource names (denoted by reference numeral 1 in the figure). Here, "resource name 1" and "resource name 2" are in a disabled state, and other virtual resource icons are in a enabled state. In response to a trigger operation (tap operation) on the disabled "resource name 1," the terminal presents a floating layer (denoted by reference numeral 2 in the figure) in the virtual scene interface, and displays presentation information in the floating layer that "the marking quantity of resource name 1 has reached its upper limit and the current icon cannot be used."
[0070] In some embodiments, the terminal can edit the resource name of a virtual resource in the following manner: In response to a trigger operation on a virtual resource icon, the terminal controls the resource name of the virtual resource indicated by the virtual resource icon to be in an editable state, and in response to an editing operation on the resource name in the editable state, displays the edited resource name.
[0071] In actual implementation, the terminal can provide an editing operation for the resource name indicated by the virtual resource icon. In response to a trigger operation for the resource name (e.g., a double-tap operation for the virtual resource name), the terminal controls the resource name to be editable, receives an editing operation (re-input) for the selected resource name, and confirms the modified resource name.
[0072] For example, refer to Fig. 10, which is a schematic diagram of modifying a resource name provided by an embodiment of the present application. In the figure, the terminal receives a double tap operation on "resource name 4" and controls "resource name 4" to be editable. At this time, the cursor flashes in the input box containing "resource name 4," prompting the user to input a new resource name. After input is completed, the new resource name is displayed.
[0073] In step 103, in response to a drag operation on a target virtual resource icon of the at least one virtual resource icon, the target virtual resource icon is controlled to move on the map in association with the execution of the drag operation.
[0074] In actual implementation, in response to a drag operation on a target virtual resource icon, the terminal can control the virtual resource icon to move along the drag trajectory of the drag operation on the map as the drag operation is performed.
[0075] In some embodiments, the terminal can control the target virtual resource icon to move on the map in the following manner: In response to a drag operation on a target virtual resource icon in a floating state among at least one virtual resource icon, the terminal controls the target virtual resource icon in a floating state to move on the map in association with the execution of the drag operation.
[0076] In actual implementation, the terminal can perform a drag operation on a target virtual resource icon in a floating state. Here, there are several ways to control the virtual resource icon to be in a floating state. In some embodiments, the terminal can provide a setting for whether the virtual resource icon is in a floating state.
[0077] In some embodiments, the terminal can control the virtual resource icon to be put into a floating state in the following manner: the terminal obtains operation parameters of the pressing operation in response to a pressing operation on a target virtual resource icon among the at least one virtual resource icon, where the operation parameters include at least one of an operation time and a pressure magnitude, and controls the target virtual resource icon to be put into a floating state when the operation time reaches a time threshold or the pressure magnitude reaches a pressure threshold.
[0078] In actual implementation, the terminal can obtain parameters such as the operation time and pressure magnitude of the pressing operation based on the pressing operation on the virtual resource icon, and can compare the operation time with a preset time threshold or the pressure magnitude with a preset pressure magnitude, and control the target virtual resource icon to be in a floating state when the operation time is greater than the preset time threshold or the pressure magnitude is greater than the pressure threshold.
[0079] In the above method of triggering a target virtual resource icon to float by performing a pressing operation on a virtual resource icon, in actual application, when a user wants to mark a target virtual resource icon on a map, the user first performs a pressing operation on the target virtual resource icon to make it float, and then drags the target virtual resource icon in the floating state to move it on the map to the position where the user wants to mark. The process of the target virtual resource icon floating and being dragged can be performed by the user in one go, which is simple and easy to operate, and the user can easily select an address and mark the virtual resource icon quickly.
[0080] 8, the terminal invokes a wheel (denoted by reference numeral 2 in the figure) that displays virtual resource icons in response to a long press operation on the location marking button denoted by reference numeral 1. At this time, the long press operation is directly switched to a slide operation starting from the location marking button, and the icon of "resource name 2" (target virtual resource icon) is slid. If the icon of "resource name 2" is in a floating state, the slide operation is switched to a drag operation (denoted by reference numeral 3 in the figure) on the target resource icon, and the icon of "resource name 2" is controlled to move on the map in association with the execution of the drag operation. If the icon of "resource name 2" is in a non-floating state (fixed state), the icon is slid to the icon of "resource name 2" and a pressing operation is performed on the icon of "resource name 2" until the icon of "resource name 2" is in a floating state. Thereafter, the long press operation on the icon of "resource name 2" is switched to a drag operation on the icon of "resource name 2", and the icon of "resource name 2" is controlled to move on the map in association with the execution of the drag operation.
[0081] The above method for controlling the movement of a target virtual resource icon on a map can quickly and easily realize the movement operation of the target virtual resource icon on a map through continuous, uninterrupted operations, thereby improving the human-computer interaction experience.
[0082] In some embodiments, the terminal can further control the target virtual resource icon to move on the map in the following manner: the terminal displays at least one virtual resource icon in a movable state in response to a position marking command for a virtual resource in the virtual scene, and accordingly generates an icon copy in a movable state corresponding to the target virtual resource icon in response to a drag operation on a target virtual resource icon among the at least one virtual resource icon in the movable state, and controls the icon copy in the movable state to move on the map accompanying the execution of the drag operation.
[0083] In practice, when a virtual resource icon is in a movable state, an icon copy of the virtual resource icon can be created, and the icon copy can be controlled to move on the map in response to a drag operation on the icon copy, thereby ensuring that the position of the original virtual resource icon is not vacant and ensuring the beauty of the display of the virtual resource icon.
[0084] In some embodiments, the terminal can display the real-time location of the target resource icon in the following manner: In the process of controlling the target virtual resource icon to move on the map accompanying the execution of the drag operation, the terminal obtains the real-time location of the target virtual resource icon, and synchronously displays a local enlarged interface including the real-time location.
[0085] In actual implementation, when the terminal controls the target virtual resource icon to move on the map, the real-time location of the target virtual resource icon on the map can be displayed in real time without changing the map proportion or manually dragging and dropping the map, so that the local enlarged interface including the real-time location of the target virtual resource can be synchronously displayed on the map.
[0086] Illustratively, refer to FIG. 11, which is a schematic diagram of a local magnification interface provided by an embodiment of the present application. In the figure, in response to a drag operation on a target resource icon (denoted by reference numeral 1 in the figure), the terminal controls the target resource icon to move on the map, and simultaneously determines the real-time location of the target resource on the map. Therefore, in the virtual scene interface, a local magnification interface (denoted by reference numeral 2 in the figure) including the real-time location can be displayed, and the current location of the target resource icon and the surrounding situation of the location can be clearly displayed in the local magnification interface denoted by reference numeral 2.
[0087] The above method of displaying the real-time location of the target resource icon through a local magnification interface accurately displays the real-time location of the virtual resource icon when the map is not moved and the map scale is not changed, i.e., when the map proportions are at their smallest, so that the user does not need to manually change the map proportions or manually drag and drop the map, thereby improving the human-computer interaction experience.
[0088] In some embodiments, the terminal can display a local magnification interface in the following manner: The terminal displays a target area in an interface of a virtual scene, and synchronously displays a local magnification interface in the target area, including a real-time position.
[0089] In actual implementation, the terminal can adopt a fixed manner to synchronously display the local magnification interface including the real-time position. The terminal provides a display format setting interface for the local magnification interface, and provides at least two display format options, for example, tracking and fixed, and can display the fixed local magnification interface in the virtual scene interface in response to a selection operation for the fixed option. That is, the local magnification interface including the real-time position of the target virtual icon is displayed in an appropriate area in the virtual scene interface. It is necessary to note that the shape of the target area can be square, circular, etc., and the target area is movable, that is, the position of the target area can be moved according to the user's actual needs.
[0090] Illustratively, refer to Fig. 12, which is a schematic diagram of a fixed local magnification interface provided by an embodiment of the present application. In the figure, in response to a drag operation on a target virtual resource icon indicated by reference numeral 1, a terminal synchronously displays a local magnification interface of a real-time position of the target virtual icon within a target area (circular area) indicated by reference numeral 2.
[0091] In some embodiments, the terminal can further display a local magnification interface in the following manner: The terminal synchronously displays an associated floating layer associated with the target virtual resource icon, and displays a local magnification interface including a real-time position in the associated floating layer.
[0092] In actual implementation, the terminal can adopt a tracking manner to synchronously display a local magnification interface including a real-time position. The terminal provides a display format setting interface for the local magnification interface, and provides at least two display format options, for example, tracking and fixed, and can display the tracking local magnification interface in the interface of the virtual scene in response to a selection operation for the tracking option.
[0093] 11, for example, the local magnification interface indicated by reference numeral 2 in the figure is of a tracking type. That is, when the terminal controls the virtual resource icon corresponding to "resource name 2" to move on the map, the terminal synchronously displays an accompanying floating layer associated with the virtual resource icon corresponding to "resource name 2". The accompanying floating layer can move with the movement of the virtual resource icon corresponding to "resource name 2", and displays a local magnification interface in real time, including the real-time position of the virtual resource icon corresponding to "resource name 2" in the accompanying floating layer.
[0094] In step 104, in response to a release command for the drag operation, the target virtual resource icon is marked at the location where the target virtual resource icon currently resides on the map.
[0095] In actual implementation, when the terminal controls the target virtual resource icon to move on the map, it marks the target virtual resource icon in response to a release command for the drag operation, i.e., at the current position of the target virtual resource icon. At this time, this marking mode can be understood as a single-point marking mode, i.e., the marking operation on the target virtual resource icon marks only one position each time.
[0096] In some embodiments, the terminal may be triggered to enter the multi-point marking mode for a target virtual resource icon in a variety of ways. For example, the terminal displays a multi-point marking mode switch on a virtual scene interface. In response to a trigger operation on the multi-point marking mode switch, the terminal enters the multi-point marking mode for the target virtual resource icon. That is, when the multi-point marking mode switch is opened, the terminal enters the multi-point marking mode, and when the multi-point marking mode switch is closed, the terminal is in the single-point marking mode. Furthermore, the terminal controls the terminal to enter the multi-point marking mode for the target virtual resource icon in response to a first trigger operation on a target virtual resource icon among the at least one virtual resource icon.
[0097] In actual implementation, the terminal can further turn on a multi-point marking mode for the target virtual resource icon. In the multi-point marking mode, the marking operation for the target resource icon can be performed multiple times in succession. The terminal can be controlled to enter the multi-point marking mode for the target virtual resource icon in response to a trigger operation (e.g., double tap) on the target resource icon.
[0098] Therefore, in some embodiments, the terminal can mark a target virtual resource icon on a map in the following manner: In a multi-point marking mode, the terminal controls the target virtual resource icon to be in a cursor-following state: in response to a tap operation on a first position on the map, mark the target virtual resource icon at the first position on the map; and after marking the target virtual resource icon at the first position, mark the target virtual resource icon at the second position when receiving a tap operation on a second position on the map.
[0099] In actual implementation, in the multi-point marking mode, the terminal controls the target virtual resource icon to move with the cursor, and marks the target virtual resource icon at position A in response to a tap operation on position A on the map, and then continues to move with the cursor and marks the target virtual resource icon at position B in response to a tap operation on position B on the map.
[0100] For example, refer to FIG. 13, which is a schematic diagram of a multi-point marking mode provided by an embodiment of the present application. In response to a double-tap operation on the resource icon of "resource name 2," the terminal controls to perform the multi-point marking mode and marks the resource icon at the position indicated by reference numeral 1. Then, a drag operation on the resource icon is continuously performed, and the resource icon is again marked at the position indicated by reference numeral 2. Finally, the resource icon is marked for the third time at the position indicated by reference numeral 3. That is, the resource icon of "resource name 2" is marked three times consecutively in the multi-point marking mode.
[0101] By turning on the multi-point marking mode, the user can perform multi-point marking on the target virtual resource icon, that is, the user can achieve multiple consecutive markings on the target virtual resource icon with one trigger on the target virtual resource icon, which effectively improves the efficiency of marking on the resource icon, reduces the number of operations, and enhances the human-computer interaction experience.
[0102] In some embodiments, the terminal can be controlled to exit the multi-point marking mode in the following manner: the terminal switches the display style of the target virtual resource icon from a first display style to a second display style, and after marking the target virtual resource icon at a second position, the terminal controls to exit the multi-point marking mode and switches the display style of the target virtual resource icon from the second display style to the first display style in response to a second trigger operation on the target virtual resource icon.
[0103] In actual implementation, the terminal can control the terminal to exit the multi-point marking mode for the target virtual resource icon and change the display style of the target resource icon by responding to another trigger operation on the target virtual resource icon again, where the first display style is the style of the target resource icon when entering the multi-point marking mode, and the second display style is the style of the target resource icon when exiting the multi-point marking mode (normal marking mode or single-point marking mode).
[0104] For example, as shown in FIG. 13, during the drag operation process on the target resource icon in the figure (indicated by reference numeral 4 in the figure), when the target resource icon in the icon wheel receives a tap operation again, the multi-point marking mode for the target resource icon is terminated and the display style of the target resource icon is returned to the first display style.
[0105] The above method of exiting the multi-point marking mode can flexibly control the on / off of the multi-point marking mode and improve the marking efficiency.
[0106] In some embodiments, the terminal can implement multi-point marking on a target resource icon in the following manner: The terminal displays a drag trajectory corresponding to the drag operation in a virtual scene; when the corresponding graphic on the map of the drag trajectory is a closed graphic, the area corresponding to the closed graphic is determined as a multi-point marking area; and accordingly, in response to a release command for the drag operation, the terminal marks a target virtual resource icon at each markable resource position in the unmarked state within the multi-point marking area.
[0107] In practical applications, there may be multiple markable resource locations on a map. The terminal may issue a markable indication for each markable resource location, thereby allowing the user to know that the location is a markable resource location. Of course, the terminal may also indicate the unmarkable resource location marked by the user, allowing the user to grasp the overall situation of the markable and unmarkable resource locations on the map. To quickly mark multiple markable resource locations, a closed graphics drawing method is used. The user can select multiple markable resource locations by dragging a target resource icon to draw a closed graphics drag trail on the map. This allows for quick marking of resource icons and improves the efficiency of marking resource icons.
[0108] In actual implementation, in the multi-point marking mode for the target resource icon, the terminal can further select a multi-point marking area according to the drag operation for the target resource icon, and after receiving a release command for the drag operation, simultaneously mark at least one target virtual resource icon in the multi-point marking area.
[0109] For example, refer to FIG. 14, which is a schematic diagram of a multi-point marking area provided by an embodiment of the present application. In the figure, in response to a drag operation on a target resource icon indicated by reference numeral 1, the terminal displays a drag trail (indicated by reference numeral 2 in the figure) corresponding to the drag operation. Here, the drag trail can form a closed graphic, and each resource position on the map that is in an unmarked state is obtained within the closed graphic. The terminal receives a release command for the drag operation and marks the four target virtual icons shown in the figure.
[0110] The above method of determining the multi-point marking area under the multi-point marking mode can greatly reduce the operation steps during multi-point marking and improve the marking efficiency.
[0111] By applying the embodiment of the present application, different trigger operations under different display states of the target virtual resource icon are used to control the movement of the target virtual resource icon on the map. During the movement process, a local magnification interface including the real-time position of the target virtual resource icon is synchronously displayed, and the target virtual resource icon is marked on the map in response to a release command for the drag operation. In this way, in a situation where the proportion and position of the map do not need to be changed, the combination of quick drag and drop and local magnification allows for fast and accurate marking on the map, while simultaneously avoiding accidental touching.
[0112] The following describes an exemplary application of the embodiments of the present application in one practical application scenario.
[0113] In the related art, as shown in Figure 15, Figure 15 is a schematic diagram of map marking provided by the related art. In the figure, in a virtual scene corresponding to an open world, a player taps a position on the map to trigger a marking pop-up window and mark it, but this position marking method often has the following problems:
[0114] Too many taps. Marking a location on the map requires multiple taps, and repeated marking requires more taps. At the same time, the marking points may be scattered across different locations on the map, so players must constantly adjust their position on the map to mark a fixed point.
[0115] Inability to accurately mark. When players need to mark at different locations on a large world map, if the map is reduced in size, it becomes difficult to control the exact location of the marking for players who need precise marking.
[0116] It is easy to accidentally touch other locations. In most games, there are a relatively large number of transfer points and task points, so when trying to mark a location close to these locations, it is easy for players to accidentally touch other locations, which affects the player's operating experience and requires them to frequently change the map location to mark after expanding the map.
[0117] When players need to mark different locations on a large world map, zooming out makes it difficult to mark the exact location, while zooming in requires players to constantly drag and drop the map to change its position, which increases player interaction.
[0118] Based on this, the embodiment of the present application provides a method for marking positions in a virtual scene. The method first attempts to reduce the player's tapping operations by using only drag-and-drop, while also avoiding accidental taps, allowing the player to complete the marking process without interruption. At the same time, the method enhances the magnifying glass effect on large maps, ensuring that the player can accurately mark a relatively large map area without moving the map, even when the map's proportions are relatively small.
[0119] Next, a location marking method provided by an embodiment of the present application will be described from the product side. In some embodiments, refer to FIG. 16, which is a flowchart of a location marking operation for a virtual resource provided by an embodiment of the present application. A player presses and holds or taps a marking button (indicated by reference numeral 1 in the figure) on the map to trigger a location marking command. In response to the location marking command, the terminal displays a marking classification list (also referred to as a resource icon list) (indicated by reference numeral 2 in the figure). Next, the player drags and drops the marking button into the called marking classification list to select a marking, or taps the called list and then drags and drops a marking (a target marking (indicated by reference numeral 3 in the figure)) in the list. The player moves the target marking to a specific location on the map, and the magnifying glass (indicated by reference numeral 4 in the figure) follows. Finally, the player drags and drops the target marking to the target position on the map, releases his finger to release the drag-and-drop operation on the target marking, and displays the target marking at the target position, completing one marking process for the resource.
[0120] The marking operation process shown in the embodiments of the present application is quick and easy, allowing users to mark any location on the entire large world map simply by dragging and dropping. It also avoids the risk of accidentally touching a task point when marking on the map. Currently, most games have a relatively large number of transfer points and task points, which can easily lead to players accidentally touching a location near these points, affecting the player's experience. It also allows accurate marking without moving the map, i.e., when the scale of the large world map is at its smallest. Players can mark directly and accurately on the entire large map, eliminating the need to manually change the scale of the map or manually drag and drop the map. In other words, the above marking steps combine quick drag and drop with a magnifying glass to allow quick and accurate marking on the map without changing the scale or position of the map, while also avoiding the risk of accidentally touching the map.
[0121] Next, the process of editing the marking name provided by the embodiment of the present application will be described. Referring to FIG. 17, FIG. 17 is a flowchart of the editing operation for the marking name provided by the embodiment of the present application. The player presses and holds the marking button on the large map to generate an editing command for the marking name. After receiving the editing command, the terminal displays an editing interface for the marking name (denoted by reference numeral 1 in the figure) in the interface with the map. The player renames the selected marking name in the editing interface, and after tapping the confirm button, the modified marking name is displayed in the marking classification list.
[0122] Next, a position marking method provided by an embodiment of the present application will be described from a technical perspective. Referring to FIG. 18, FIG. 18 is a flowchart of a position marking method provided by an embodiment of the present application. The process is as follows: The terminal performs step 201 of receiving a trigger operation on a marking button by a player, performs step 202 of determining whether the trigger operation is a long press operation, and if the trigger operation is a long press operation, performs step 203a of displaying a marking category selection list. At this time, each marking item in the list cannot be tapped or renamed. If the trigger operation is a tap operation, performs step 203b of displaying a marking category list, and each marking item in the list can be tapped and renamed. When the terminal receives a trigger operation on a target marking in the marking category selection list by a player, performs step 204a of determining whether the trigger operation is a long press operation, and if it is determined to be a long press operation, performs step 205a of the player dragging the target marking to any one of the points on the map. During the drag process, the terminal executes step 206a to determine whether the user's finger is lifted from the screen, i.e., whether a release command for the drag operation is received. After receiving the release command, the terminal executes step 207a to complete the marking. That is, the terminal marks the target marking at the target position on the map. If the terminal does not receive the release command, the player continues to execute step 205a. The player can also execute step 204b to select the target marking by tapping or long pressing on the marking list. The terminal determines whether the operation performed by the player is a long press operation or a tap operation. If it is a long press operation, the terminal executes step 205a. If it is a tap operation, the player can continue to execute step 205b to rename the target marking, that is, perform a rename operation on the target marking according to the operation process shown in FIG. 16.
[0123] Applying the embodiment of the present application has the following effects.
[0124] 1. Easy to operate: Quickly drag and drop to mark, no need to tap repeatedly.
[0125] 2. Avoiding accidental touches when marking and improving the player experience. This completely avoids accidental touches caused by tapping too close to the transfer point, improving the player's marking experience. At the same time, it also avoids the extra step of tapping the map to pop up the marking window and then having to close it again.
[0126] 3. It combines the largest map with accurate marking, reducing the amount of player operations. It allows for the most accurate marking when displaying the largest map area, reducing the amount of operations required for the player to move and shrink the map.
[0127] 4. Relatively low learning cost: The drag-and-drop method allows players to get started and learn quickly.
[0128] As can be understood, in the embodiments of the present application, with regard to related data such as user information, user permission or consent must be obtained when the embodiments of the present application are implemented in a product or technology, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0129] The following continues to describe an exemplary structure implemented as a software module of the position marking device in a virtual scene 555 provided by the embodiments of the present application. In some embodiments, as shown in FIG. 2 , the software modules of the position marking device in a virtual scene 555 stored in the memory 550 may include a display module 5551, a control module 5552, and a marking module 5553; a display module 5551 configured to display a map of said virtual scene; The display module 5551 is further configured to display at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene; the control module 5552 is configured to, in response to a drag operation on a target virtual resource icon of the at least one virtual resource icon, control the target virtual resource icon to move on the map in association with execution of the drag operation; The marking module 5553 is configured to mark the target virtual resource icon at a position where the target virtual resource icon currently resides on the map in response to a release command for the drag operation.
[0130] In some embodiments, the display module is further configured to display a location marking function item in an interface of the virtual scene, and to receive a location marking instruction for a virtual resource in the virtual scene in response to a first trigger operation for the location marking function item.
[0131] In some embodiments, the display module is further configured to receive a graphics drawing operation triggered based on an interface of the virtual scene, and receive a position marking instruction for a virtual resource in the virtual scene when graphics drawn by the graphics drawing operation match preset graphics.
[0132] In some embodiments, the display module is further configured to: obtain an icon display length of the virtual resource icon and a name display length of the resource name of the virtual resource indicated by the virtual resource icon; and, when the sum of the icon display length and the name length does not reach a length threshold, display the resource name of the virtual resource indicated by the virtual resource icon in the process of displaying the virtual resource icon.
[0133] In some embodiments, the display module is further configured to: hide the resource name of the corresponding virtual resource in the process of displaying the virtual resource icon when the sum of the icon display length and the name display length reaches a width threshold; and, when the virtual resource icon is in a selected state, display the resource name of the virtual resource indicated by the virtual resource icon in the form of a floating layer.
[0134] In some embodiments, the display module is further configured to: in response to a trigger operation on the virtual resource icon, control the resource name of the virtual resource indicated by the virtual resource icon to be in an editable state; and in response to an editing operation on the resource name in the editable state, display the edited resource name.
[0135] In some embodiments, the control module is further configured to, in response to a drag operation on a target virtual resource icon of the at least one virtual resource icon in a floating state, control the target virtual resource icon in the floating state to move on the map in association with execution of the drag operation. Accordingly, the control module is further configured to, in response to a pressing operation on a target virtual resource icon of the at least one virtual resource icon, acquire operation parameters of the pressing operation, where the operation parameters include at least one of an operation time and a pressure magnitude, and control the target virtual resource icon to be in a floating state when the operation time reaches a time threshold or the pressure magnitude reaches a pressure threshold.
[0136] In some embodiments, the display module is further configured to display at least one virtual resource icon in a movable state in response to a position marking instruction for a virtual resource in the virtual scene; Accordingly, in some embodiments, the control module is further configured to, in response to a drag operation on a target virtual resource icon among the at least one virtual resource icon in a movable state, generate an icon copy in a movable state corresponding to the target virtual resource icon, and control the icon copy in the movable state to move on the map in conjunction with the execution of the drag operation.
[0137] In some embodiments, the display module is further configured to, when a virtual resource icon in a disabled state exists among the at least one virtual resource icon, display presentation information in response to a trigger operation on the disabled virtual resource icon, wherein the presentation information is used to present that the marking quantity for the virtual resource corresponding to the disabled virtual resource icon has reached a quantity threshold.
[0138] In some embodiments, the display module is further configured to, in the process of controlling the target virtual resource icon to move on the map in conjunction with the execution of the drag operation, obtain a real-time position of the target virtual resource icon and synchronously display a local magnification interface including the real-time position.
[0139] In some embodiments, the marking module is further configured to display a target area in an interface of the virtual scene and synchronously display a local magnification interface including the real-time position in the target area.
[0140] In some embodiments, the marking module is further configured to synchronously display an associated floating layer associated with the target virtual resource icon and display a local magnification interface including the real-time position within the associated floating layer.
[0141] In some embodiments, the display module is further configured to display an icon floating layer in the interface in response to a position marking command for a virtual resource in the virtual scene, and to display at least one virtual resource icon in the icon floating layer by adopting a target display style, where the target display style includes at least one of a list display style and a wheel style.
[0142] In some embodiments, the control module is further configured to control, in response to a first trigger operation on a target virtual resource icon of the at least one virtual resource icon, to enter a multi-point marking mode on the target virtual resource icon; Accordingly, in some embodiments, the marking module is further configured to control the target virtual resource icon to be in a cursor-following state in the multi-point marking mode, and to mark the target virtual resource icon at a first position on the map in response to a tap operation at a first position on the map, and after marking the target virtual resource icon at the first position, to mark the target virtual resource icon at the second position when receiving a tap operation at a second position on the map.
[0143] In some embodiments, the control module is further configured to switch a display style of the target virtual resource icon from a first display style to a second display style, and accordingly, the control module is further configured to control, in response to a second trigger operation on the target virtual resource icon, to terminate the multi-point marking mode and switch the display style of the target virtual resource icon from the second display style to the first display style.
[0144] In some embodiments, the control module is further configured to: display a drag trajectory corresponding to the drag operation in the virtual scene; and, when a corresponding graphic on the map of the drag trajectory is a closed graphic, set an area corresponding to the closed graphic as a multi-point marking area. Accordingly, the marking module is further configured to mark the target virtual resource icon at each markable resource position in a non-marking state within the multi-point marking area in response to a release command for the drag operation.
[0145] According to the embodiment of the present application, a drag operation on a target virtual resource icon displayed in a virtual scene controls the target virtual resource icon to move on a map, and a release command for the drag operation is received to complete the marking process on the target virtual resource icon. In this way, when the scale and position of the map do not need to be changed, quick and accurate marking of the virtual resource icon can be achieved by dragging. Therefore, compared with the related art method of tapping a position on a map to trigger a marking pop-up window, the number of human-computer interactions can be reduced, the efficiency of marking the virtual resource icon on the map can be improved, and at the same time, erroneous touching can be avoided, and the efficiency of operating and controlling the virtual scene can be improved.
[0146] An embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions stored in a computer-readable storage medium, a processor of a computer device reading the computer instructions from the computer-readable storage medium, and the processor executing the computer instructions, thereby causing the computer device to perform the method for marking positions in a virtual scene according to the embodiment of the present application.
[0147] An embodiment of the present application provides a computer-readable storage medium on which executable instructions are stored, and when the executable instructions are stored and executed by a processor, the processor performs a method for marking a position in a virtual scene provided by an embodiment of the present application, for example, the method for marking a position in a virtual scene shown in FIG. 3 .
[0148] In some embodiments, the computer-readable storage medium may be a memory such as Read-Only Memory (ROM), Random Access Memory (RAM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory, magnetic surface memory, optical disk, or CD-ROM, or may be any device including one or any combination of the above memories.
[0149] In some embodiments, the executable instructions may take the form of a program, software, software module, script, or code, programmed in any type of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0150] As an example, the executable instructions may, but do not necessarily, correspond to a file in a file system, and may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program under consideration, or in multiple cooperating files (e.g., files that store one or more modules, subprograms, or code portions).
[0151] As an example, the executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one location, and / or on multiple computing devices distributed across multiple locations and connected to each other via a communications network.
[0152] As described above, the embodiment of the present application enables quick and accurate marking on a map by combining quick drag-and-drop and local zooming in a situation where the proportion and position of the map in the virtual scene are not changed, while at the same time avoiding accidental touches.
[0153] The above is merely an example of the present application and is not used to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application are all included in the scope of protection of the present application. [Explanation of symbols]
[0154] 200 servers 300 Network 400-1 terminal 400-2 terminal 410-1 Graphics Interface 410-2 Graphics Interface 500 Electronic equipment 510 processor 520 network interface 530 User Interface 531 Output Device 532 Input Device 540 Bus System 550 memory 551 Operating Systems 552 Network Communication Module 553 Presentation Module 554 Input Processing Module 555 Position Marking Device
Claims
1. 1. A method for marking a location in a virtual scene, performed by an electronic device, comprising: displaying a map of the virtual scene; displaying at least one virtual resource icon in response to a location marking command for a virtual resource in the virtual scene; In response to a drag operation on a target virtual resource icon of the at least one virtual resource icon, controlling the target virtual resource icon to move on the map in association with the execution of the drag operation; In the process of controlling the target virtual resource icon to move on the map in association with the execution of the drag operation, obtaining a real-time position of the target virtual resource icon; synchronously displaying a local magnification interface including the real-time location, the local magnification interface including the real-time location, the local magnification interface including the real-time location, and ... marking the target virtual resource icon at a current location of the target virtual resource icon on the map in response to a release command for the drag operation; A method comprising:
2. prior to the step of displaying at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene; displaying a location marking function item in the virtual scene interface; receiving a location marking command for a virtual resource in the virtual scene in response to a first trigger operation for the location marking feature; The method of claim 1 further comprising:
3. prior to the step of displaying at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene; receiving a graphics drawing operation triggered based on the virtual scene interface; receiving a position marking instruction for a virtual resource in the virtual scene when the graphics drawn by the graphics drawing operation match a preset graphic; The method of claim 1 , comprising:
4. The icon display length of the virtual resource icon, and the virtual resource icon obtaining a name display length of a resource name of the virtual resource to be used; When the sum of the icon display length and the name display length does not reach a length threshold, displaying the resource name of the virtual resource indicated by the virtual resource icon in the process of displaying the virtual resource icon; The method of claim 1 further comprising:
5. When the sum of the icon display length and the name display length reaches a width threshold, In the process of displaying the virtual resource icon, the resource name of the corresponding virtual resource is not displayed; and When the virtual resource icon is in a selected state, the resource name of the virtual resource indicated by the virtual resource icon is displayed in a floating layer format. The method of claim 4 further comprising the steps of:
6. When the sum of the icon display length and the name display length does not reach a length threshold, in the process of displaying the virtual resource icon, after the step of displaying the resource name of the virtual resource indicated by the virtual resource icon, a step of controlling, in response to a trigger operation on the virtual resource icon, to make the resource name of the virtual resource indicated by the virtual resource icon editable; displaying the edited resource name in response to an editing operation on the resource name in the editable state; The method of claim 4 further comprising:
7. The step of controlling, in response to a drag operation on a target virtual resource icon of the at least one virtual resource icon, so that the target virtual resource icon moves on the map in association with the execution of the drag operation, includes: In response to a drag operation on a target virtual resource icon in a floating state among the at least one virtual resource icon, controlling the target virtual resource icon in the floating state to move on the map in association with the execution of the drag operation, before controlling the target virtual resource icon to accompany the execution of the drag operation; acquiring operation parameters of a pressing operation in response to a pressing operation on a target virtual resource icon among the at least one virtual resource icon, the operation parameters including at least one of an operation time and a pressure magnitude; controlling the target virtual resource icon to be in a floating state when the operation time reaches a time threshold or the pressure magnitude reaches a pressure threshold; The method of claim 1 further comprising:
8. displaying at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene, displaying at least one movable virtual resource icon in response to a location marking command for a virtual resource in the virtual scene; The step of controlling, in response to a drag operation on a target virtual resource icon of the at least one virtual resource icon, so that the target virtual resource icon moves on the map in association with the execution of the drag operation, includes: generating an icon copy in a movable state corresponding to a target virtual resource icon in response to a drag operation on the target virtual resource icon among the at least one virtual resource icon in a movable state; a step of controlling the icon copy, which is in a movable state, to move on the map in association with the execution of the drag operation; The method of claim 1 , comprising:
9. When there is a virtual resource icon in a disabled state among the at least one virtual resource icon, The method further includes displaying presentation information in response to a trigger operation on the virtual resource icon in a disabled state; The presentation information is used to present that the marking quantity of the virtual resource corresponding to the virtual resource icon in the disabled state has reached a quantity threshold. The method of claim 1.
10. The step of synchronously displaying a local magnification interface including the real-time position includes: displaying a target area in an interface of the virtual scene; synchronously displaying a local magnification interface including the real-time position in the target area; The method of claim 1 , comprising:
11. displaying at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene, In response to a position marking command for a virtual resource in the virtual scene, displaying an icon floating layer in an interface of the virtual scene, and displaying at least one virtual resource icon in the icon floating layer by adopting a target display style; the target display style includes at least one of a list display style and a wheel style; The method of claim 1.
12. after the step of displaying at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene; The method further includes controlling, in response to a first trigger operation on a target virtual resource icon among the at least one virtual resource icon, to enter a multi-point marking mode on the target virtual resource icon; after the step of marking the target virtual resource icon at a current position of the target virtual resource icon on the map in response to a release command for the drag operation; In the multi-point marking mode, controlling the target virtual resource icon to follow the cursor; marking the target virtual resource icon at the first location on the map in response to a tap operation on the first location on the map; and after marking the target virtual resource icon at the first location, when receiving a tap operation to a second location on the map, marking the target virtual resource icon at the second location; The method of claim 1 further comprising:
13. after the step of controlling to enter a multi-point marking mode for a target virtual resource icon of the at least one virtual resource icon in response to a first trigger operation for the target virtual resource icon, further comprising switching a display style of the target virtual resource icon from a first display style to a second display style; after marking the target virtual resource icon at the first location, when receiving a tap operation to a second location on the map, marking the target virtual resource icon at the second location; In response to a second trigger operation on the target virtual resource icon, control to terminate the multi-point marking mode; and The method of claim 12 , further comprising: switching a display style of the target virtual resource icon from a second display style to a first display style.
14. before marking the target virtual resource icon at a current location of the target virtual resource icon on the map in response to a release command for the drag operation; displaying a drag trajectory corresponding to the drag operation in the virtual scene; When the corresponding graphic on the map of the drag trajectory is a closed graphic, a region corresponding to the closed graphic is set as a multipoint marking region; further comprising marking the target virtual resource icon at a current location of the target virtual resource icon on the map in response to a release command for the drag operation, 2. The method of claim 1, further comprising the step of marking the target virtual resource icon at each markable resource position in the multi-point marking area that is in a non-marking state in response to a release command for the drag operation.
15. A position marking device in a virtual scene, comprising: a display module, a control module, and a marking module; the display module is configured to display a map of the virtual scene; the display module is further configured to display at least one virtual resource icon in response to a location marking instruction for a virtual resource in the virtual scene; the control module is configured to, in response to a drag operation on a target virtual resource icon of the at least one virtual resource icon, control the target virtual resource icon to move on the map in association with execution of the drag operation; The display module includes: In the process of controlling the target virtual resource icon to move on the map in association with the execution of the drag operation, obtaining a real-time position of the target virtual resource icon; synchronously displaying a local magnification interface including the real-time location, wherein an associated floating layer associated with the target virtual resource icon is synchronously displayed, and a local magnification interface including the real-time location is displayed in the associated floating layer. further configured as follows: The apparatus, wherein the marking module is configured to mark the target virtual resource icon at a current location of the target virtual resource icon on the map in response to a release command for the drag operation.
16. An electronic device, a memory configured to store executable instructions; a processor configured to implement the method of any one of claims 1 to 14 when executing executable instructions stored in said memory; Electronic devices, including:
17. A computer program which, when executed by a processor, causes the computer program to implement the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Virtual object marking method and device in three-dimensional virtual scene, and storage medium
CN110738738A
Data processing method, device and equipment based on virtual scene, and storage medium
CN111506323A
Method and device for displaying prop resources in virtual scene
CN112711458A
Virtual resource acquisition method, computer readable storage medium and electronic equipment
CN113171605A
System and method for consumption based tagging of resources
US10642698B1