[0001] This application claims priority to Chinese Patent Application No.
201611109894.3, entitled "OBJECT DISPLAYING METHOD AND TERMINAL DEVICE" filed with the Chinese Patent
Office on December 6, 2016, which is incorporated by reference in its entirety.
FIELD OF THE TECHNOLOGY
[0002] The present disclosure relates to the communications field, and in particular, to
an object displaying method, a terminal device, and a computer storage medium.
BACKGROUND OF THE DISCLOSURE
[0003] With the advancement of functionality of a terminal device, an application (APP)
running on the terminal device can display a layer on a display screen of the terminal
device to implement a specific function. For example, a navigation APP can display
a map on the display screen of the terminal device to provide a positioning and navigation
service. To improve service efficiency of the APP and to make it convenient for a
user to view content displayed on the layer, a "small map" may be further displayed
on the display screen. In this way, the content in the layer may be simultaneously
displayed on the display screen and the "small map".
[0004] Using FIG. 1 as an example, an application interface 100 is displayed on the display
screen of the terminal device. A small map 101 is displayed on an upper-left corner
of the application interface 100. The small map 101 can display a location, channel
information and the like of a simulated object. In a resource contention APP, multiple
task-oriented resource points 103 that can be contended for are displayed on the small
map 101.
[0005] In the existing technology, due to a limited size of the display screen of the terminal
device, display modes of different task-oriented resource points 103 on the small
map 101 are the same, so that the user cannot distinguish the different task-oriented
resource points 103 displayed on the small map 101. This reduces an operation efficiency
of the user in a task-oriented resource point contention operation process.
SUMMARY
[0006] Embodiments of the present disclosure provide an object displaying method and a terminal
device, to enable a user to distinguish different target objects, thereby improving
efficiency of performing operation on the different target objects by the user.
[0007] According to a first aspect, an embodiment of the present disclosure provides an
object displaying method, including:
obtaining a target object, the target object being located on a layer, and at least
a part of the layer being displayed in a first display region;
determining a second display region, the second display region being located in the
first display region, an area of the second display region being smaller than an area
of the first display region, and the second display region being used for zooming
out the at least a part of the layer by a preset multiple for displaying;
obtaining a target display mode corresponding to the target object; and
mapping the target object into the second display region, and displaying the target
object in the second display region in the target display mode.
[0008] According to a second aspect, an embodiment of the present disclosure provides a
terminal device, including:
a first obtaining unit, configured to obtain a target object, the target object being
located on a layer, and at least a part of the layer being displayed in a first display
region;
a first determining unit, configured to determine a second display region, the second
display region being located in the first display region, an area of the second display
region being smaller than an area of the first display region, and the second display
region being used for zooming out the at least a part of the layer by a preset multiple
for displaying;
a second obtaining unit, configured to obtain a target display mode corresponding
to the target object; and
a mapping unit, configured to map the target object into the second display region,
to display the target object in the second display region in the target display mode.
[0009] According to a third aspect, an embodiment of the present disclosure provides a terminal
device, including:
a memory, configured to store computer executable program code;
a transceiver; and
a processor, coupled to the memory and the transceiver; where
the program code includes instructions, the instructions, when executed by the processor,
causing the terminal device to perform the method according to the first aspect.
[0010] According to a fourth aspect, an embodiment of this disclosure provides a computer
storage medium, configured to store a computer software instruction used by a terminal
device, the computer software instruction including a program designed for performing
the method according to the first aspect.
[0011] The terminal device can obtain the target display mode corresponding to the target
object displayed on the layer, map the target object into the second display region
located in the first display region, and display the target object in the second display
region in the target display mode. In the embodiments, different target objects correspond
to different target display modes, so that in a process in which the terminal device
maps the target objects into the second display region, the different target objects
can be displayed in the second display region in the different target display modes,
and thus a user can distinguish the different target objects, thereby improving efficiency
of performing operation on the different target objects by the user.
BRIEF DESCRIPTION OF THE DRAWINGS
[0012]
FIG. 1 is a schematic structural diagram of an application interface displayed on
a display screen of a terminal device according to the existing technology;
FIG. 2 is a schematic architectural diagram of a communications system according to
an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an embodiment of a terminal device according
to the present disclosure;
FIG. 4 is a flowchart of an embodiment of an object displaying method according to
the present disclosure;
FIG. 5 is a schematic structural diagram of an embodiment of a display screen of a
terminal device according to the present disclosure;
FIG. 6 is an exemplary diagram of display of an application scene according to the
present disclosure;
FIG. 7 is an exemplary diagram of a step of an application scene according to the
present disclosure;
FIG. 8 is an exemplary diagram of another application scene according to the present
disclosure;
FIG. 9 is an exemplary diagram of another application scene according to the present
disclosure;
FIG. 10 is an exemplary diagram of another application scene according to the present
disclosure;
FIG. 11 is an exemplary diagram of another application scene according to the present
disclosure; and
FIG. 12 is a schematic structural diagram of another embodiment of a terminal device
according to the present disclosure.
DESCRIPTION OF EMBODIMENTS
[0013] Embodiments of the present disclosure provide an object displaying method and a terminal
device, to improve efficiency of distinguishing, by a user, different objects displayed
on a display screen of a terminal device.
[0014] To make persons in the art understand the solutions in the present disclosure better,
the following clearly and completely describes the technical solutions in the embodiments
of the present disclosure with reference to the accompanying drawings in the embodiments
of the present disclosure. Apparently, the described embodiments are merely some but
not all of the embodiments of the present disclosure. All other embodiments obtained
by persons of ordinary skill in the art based on the embodiments of the present disclosure
without creative efforts shall fall within the protection scope of the present disclosure.
[0015] In the specification, claims, and accompanying drawings of the present disclosure,
the terms "first", "second", "third", "fourth", and the like (when used) are intended
to distinguish between similar objects rather than describe a specific order. It should
be understood that the entities or elements termed in such a way are interchangeable
in proper circumstances so that the embodiments described herein can be implemented
in other orders than the order illustrated or described herein. Moreover, the terms
"include", "contain" and any other variant are meant to cover non-exclusive inclusion.
For example, a process, method, system, product, or device that includes a list of
steps or units is not necessarily limited to those steps or units expressly listed,
but may include other steps or units not expressly listed or inherent to such a process,
method, product, or device.
[0016] The embodiments of the present disclosure provide an object displaying method. The
method is applied to a communications system. Referring to FIG. 2, FIG. 2 is a schematic
architectural diagram of a communications system according to an embodiment of the
present disclosure. The communications system includes a server 210 and at least one
terminal device 220.
[0017] The server 210 can exchange data with the terminal device 220, thereby implementing
the object displaying method in this embodiment.
[0018] The following describes a specific structure of the terminal device in this embodiment
with reference to FIG. 3. FIG. 3 is a schematic structural diagram of an embodiment
of a terminal device according to the present disclosure.
[0019] The terminal device includes an input unit 305, a processor unit 303, an output unit
301, a communication unit 307, a storage unit 304, and a radio frequency (RF) circuit
308, and other components.
[0020] These components communicate with each other by using one or more buses. Persons
skilled in the art may understand that, the structure of the terminal device shown
in FIG. 3 does not limit the present disclosure, may be of a bus structure or a star
structure, and may include more or fewer components than those shown in the figure,
or some components may be combined, or a different component deployment may be used.
[0021] In an implementation of the present disclosure, the terminal device may be any mobile
or portable electronic device, including by not limited to a smartphone, a mobile
computer, a tablet computer, a personal digital assistant (PDA), a media player, a
smart television, and the like.
[0022] The terminal device includes the output unit 301, configured to output a to-be-displayed
image.
[0023] Specifically, the output unit 301 includes but is not limited to a display screen
3011 and a sound output unit 3012.
[0024] The display screen 3011 is used for outputting text, an image, and/or a video. The
display screen 3011 may include a display panel, for example, a display panel configured
in a form of a liquid crystal display (LCD), an organic light-emitting diode (OLED),
a field emission display (FED), and the like. Alternatively, the display screen 3011
may include a reflective display such as an electrophoretic display, or a display
using an interferometric modulation of light technology.
[0025] For example, when a touchscreen detects a touch operation on the touchscreen or a
gesture operation near the touchscreen, the touchscreen transmits the operation signal
to the processor unit 303 to determine a type of the touch event. Then, the processor
unit 303 provides a corresponding visual output on the display panel according to
the type of the touch event. Although in FIG. 1, the input unit 305 and the output
unit 301 implement input and output functions of the terminal device as two independent
components, in some embodiments, the touchscreen and the display panel may be integrated
to implement the input and output functions of the terminal device. For example, the
display screen 3011 may display various graphical user interfaces (GUI) functioning
as virtual control components, including but not limited to a window, a scroll bar,
an icon, and a clipboard, so that a user may perform an operation by means of touching.
[0026] In a specific implementation of the present disclosure, the display screen 3011 includes
a filter and an amplifier, configured to filter and amplify a video output by the
processor unit 303. The sound output unit 3012 includes a digital-to-analog converter,
configured to convert an audio signal output by the processor unit 303 from a digital
format to an analog format.
[0027] The processor unit 303 is configured to run corresponding code, and process received
information to generate and output a corresponding interface.
[0028] Specifically, the processor unit 303 is a control center of the terminal device.
It connects components of the entire terminal device by using various interfaces and
circuits, and performs various functions of the terminal device and/or processes data
by running or executing a software program and/or module stored in the storage unit
and invoking data stored in the storage unit. The processor unit 303 may by formed
by an integrated circuit (IC). For example, the processor unit 303 may be formed by
a single packaged IC, or may be formed by multiple packaged ICs that have same functions
or different functions.
[0029] For example, the processor unit 303 may include only a central processor unit (CPU),
or may be a combination of a graphics processor unit (GPU), a digital signal processor
(DSP), and a control chip (for example, a baseband chip) in the communication unit.
In this implementation of the present disclosure, the CPU may include a single operation
core, and may also include multiple operation cores.
[0030] The storage unit 304 is configured to store code and data. The code is run by the
processor unit 303.
[0031] Specifically, the storage unit 304 may be configured to store a software program
and a module. The processor unit 303 runs the software program and module stored in
the storage unit 304, to implement various functional applications and data processing
of the terminal device. The storage unit 304 mainly includes a program storage area
and a data storage area, where the program storage area may store an operating system,
an APP needed by at least one function such as a voice playing function or an image
playing function, and the data storage area may store data (such as audio data or
a phone book) established according to use of the terminal device.
[0032] In a specific implementation of the present disclosure, the storage unit 304 may
include a volatile memory, such as a nonvolatile random access memory (NVRAM), a phase
change RAM (PRAM), and a magnetoresistive RAM (MRAM), and may further includes a nonvolatile
memory, for example, at least one magnetic disk storage, an electrically erasable
programmable read-only memory (EEPROM), a flash memory such as a NOR flash memory
or a NAND flash memory.
[0033] The nonvolatile memory stores the operating system and the APP executed by the processor
unit 303. The processor unit 303 loads a running program and data from the nonvolatile
memory to a memory and stores data content in a mass storage apparatus. The operating
system includes various components and/or drives that are used for normal system task
control and management such as memory management, storage device control, and power
supply management and that facilitate communication among various software and hardware.
[0034] In an implementation of the present disclosure, the operating system may be an Android
system of Google, an iOS developed by Apple, a Windows operating system developed
by Microsoft, or the like, or may be an embedded operating system such as Vxworks.
[0035] The APP includes any APP installed in the terminal device, including but not limited
to applications for browser, email, instant message service, word processing, virtual
keyboard, widget (Widget), encryption, digital rights management, speech recognition,
speech reproduction, positioning (for example, a function provided by a global positioning
system), music playback, and the like.
[0036] The input unit 305 is configured to implement interaction between a user and the
terminal device and/or input information to the terminal device.
[0037] For example, the input unit 305 may receive numeric or character information entered
by the user, to generate signal input related to user setting or function control.
In a specific implementation of the present disclosure, the input unit 305 may be
a touchscreen, or may be another human-computer interaction interface such as a physical
input key or a microphone, or may be another external information acquiring apparatus
such as a camera.
[0038] The touchscreen in this embodiment of the present disclosure may collect a touch
operation on the touchscreen or an operation near the touchscreen performed by a user,
for example, an operation performed by the user on or near the touchscreen by using
any suitable object or accessory such as a finger or a stylus, and drive a corresponding
connected apparatus according to a preset program. Optionally, the touchscreen may
include two parts: a touch detection apparatus and a touch controller. The touch detection
apparatus detects the touch operation of the user, converts the detected touch operation
to an electrical signal, and transmits the electrical signal to the touch controller.
The touch controller receives the electrical signal from the touch detection apparatus,
converts the electrical signal to contact coordinates, and further transmits the contact
coordinates to the processor unit 303.
[0039] The touch controller may further receive and execute a command sent by the processor
unit 303. In addition, the touchscreen may be implemented in multiple types, such
as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave
type.
[0040] In another implementation of the present disclosure, the physical input key used
by the input unit 305 may include but is not limited to: one or more of a physical
keyboard, a functional key (such as a volume control key or a switch key), a track
ball, a mouse, and a joystick. The input unit 305, when being in a form of a microphone,
may collect a speech input by a user or an environment and convert the speech to a
command that is in a form of an electrical signal and that can be executed by the
processor unit 303.
[0041] In some other implementations of the present disclosure, the input unit 305 may further
include various sensors such as a Hall-effect component, configured to: detect a physical
stimulus, such as a force, a torque, a pressure, a stress, a location, an offset,
a speed, an acceleration, an angle, an angular velocity, a number of revolution, a
rotational speed, or a time at which a working state changes, of the terminal device,
and convert the physical stimulus to a signal for detection and control. Other sensors
may further include a gravity sensor, a tri-axis accelerometer, a gyroscope, an electronic
compass, an ambient light sensor, a proximity sensor, a temperature sensor, a humidity
sensor, a pressure sensor, a heart rate sensor, a fingerprint sensor, and the like.
[0042] The communication unit 307 is configured to establish a communications channel, so
that the terminal device is connected to a remote server and downloads media data
from the remote server, via the communications channel. The communication unit 307
may include a communications module, such as a wireless local area network (WLAN)
module, a Bluetooth module, and a baseband module, and an RF circuit corresponding
to the communications module, and is configured to perform WLAN communications, Bluetooth
communications, infrared communications and/or cellular communications system communications
such as the Wideband Code Division Multiple Access (W-CDMA) and/or the High Speed
Downlink Packet Access (HSDPA). The communications module is configured to control
communication among the components of the terminal device and may support direct memory
access.
[0043] In different implementations of the present disclosure, various communications modules
of the communication unit 307 are generally implemented in a form of an IC chip, and
can be selectively combined, and it is not necessary to include all communications
modules and corresponding antenna groups. For example, the communication unit 307
may include only a baseband chip, an RF chip and a corresponding antenna, to provide
a communication function in a cellular communications system. By using a wireless
communication connection established by the communication unit 307, for example, a
WLAN access or a WCDMA access, the terminal device may be connected to a cellular
network or the Internet. In some optional implementations of the present disclosure,
the communications module of the communication unit 307, for example, the baseband
module may be integrated into the processor unit 303, which may be typically, for
example, an APQ+MDM series platform provided by Qualcomm.
[0044] The RF circuit 308 is configured to receive and send signals during information sending/receiving
or a call. For example, the RF circuit 308, after receiving downlink information from
a base station, sends the downlink information to the processor unit 303 for processing,
and moreover, sends uplink data to the base station. The RF circuit 308 generally
includes a known circuit for performing these functions, including but not limited
to an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more
oscillators, a DSP, a codec chip set, a subscriber identity module (SIM) card, a memory,
and the like. In addition, the RF circuit 308 may also communicate with a network
and another device by wireless communication.
[0045] The wireless communication may use any communication standard or protocol, including
but not limited to the Global System for Mobile Communications (GSM), the General
Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division
Multiple Access (WCDMA), High Speed Uplink Packet Access (HSUPA) technology, Long
Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
[0046] A power supply 309 is configured to supply power for different components of the
terminal device, so that the components function. Generally, the power supply 309
may be a built-in battery such as a commonly used lithium-ion battery or NiMH battery,
or may be an external power supply directly supplying power to the terminal device,
such as an AC adapter. In some implementations of the present disclosure, the power
supply 309 may further have a broader definition, for example, may further include
a power supply management system, a charging system, a power supply fault detecting
circuit, a power supply converter or inverter, a power supply state indicator (for
example, a light-emitting diode), and any other component related to generation, management
and distribution of electric energy of the terminal device.
[0047] In an embodiment of this disclosure, an object displaying method is provided. For
example, in a game scene, each game includes multiple characters, that is, multiple
objects. The multiple characters include a main character advancing forward a progression
process of the game. The main character is a target object. In this embodiment of
this disclosure, an icon of the target object is displayed according to a state of
the target object. Different states of the icon represent different states of the
target object, to indicate the states (for example, born or dead) of the target object
to a player.
[0048] Based on the foregoing provided communications system, the following describes, with
reference to FIG. 4, a specific procedure of the object displaying method provided
in this embodiment:
Step 401: A server sends application data to a terminal device.
[0049] The server in this embodiment pre-stores the application data corresponding to a
target APP. After the server sends the application data to the terminal device, the
terminal device can perform an operation such as installing the target APP and/or
updating the target APP according to application data, so that the terminal device
on which the target APP is installed can perform data exchanging with the server.
[0050] Step 402: The terminal device receives the application data.
[0051] In this embodiment, the terminal device can receive the application data sent by
the server and perform a corresponding operation according to the application data.
For example, if the terminal device detects that the target APP corresponding to the
application data is not installed on the terminal device, the terminal device may
install the target APP according to the application data. For another example, if
the terminal device detects that a version of the target APP currently installed on
the terminal device needs to be updated, the terminal device may update the version
of the target APP according to the application data.
[0052] It should be noted that, step 401 and step 402 in this embodiment are optional steps,
that is, in a process of performing the object displaying method in this embodiment
by the terminal device, if the terminal device already stores the application data,
for example, if the terminal device already installs the target APP and/or the target
APP run by the terminal device is of a latest version, the terminal device does not
need to repeatedly obtain the application data from the server. This is not specifically
limited in this embodiment.
[0053] In this embodiment, the terminal device can read the stored application data, thereby
obtaining layer drawing data included in the application data. The terminal device
can draw a layer according to the layer drawing data and display, on a display screen
of the terminal device, a part of or the entire layer as drawn.
[0054] Step 403: The terminal device determines a first display region and a second display
region.
[0055] The first display region and the second display region in this embodiment are used
for displaying the layer according to different display scales. In this embodiment
of this disclosure, the layer corresponds to a map in an application scene, and the
layer is a map layer. In the application scene, the map layer corresponds to an entire
global map in the game scene.
[0056] The following describes details of how the terminal device displays the layer.
[0057] The display screen of the terminal device includes the first display region for displaying
the layer, so that some or all regions on the layer are displayed on the first display
region.
[0058] More specifically, as shown in FIG. 5, FIG. 5 is a schematic structural diagram of
an embodiment of a display screen of a terminal device according to the present disclosure.
[0059] As shown in FIG. 5, a display screen 501 of the terminal device includes a first
display region 502, and a black region exists between the display screen 501 and the
first display region 502. It should be noted that, in this embodiment, FIG. 5 is merely
used as an example, rather than a limitation. For example, in another embodiment,
the display screen 501 and the first display region 502 may completely overlap each
other. For another example, in another embodiment, edge regions of two sides of the
display screen are arc-shaped, so that in terms of a display effect, a width of the
first display region 502 is larger than a width of the display screen 501 in a transverse
direction of the terminal device.
[0060] A second display region 503 is set in an upper-left corner of the first display region
502 of the terminal device. It should be noted that, in this embodiment, a specific
location at which the second display region 503 is located in the first display region
502 is an optional example and the specific location is not limited.
[0061] It can be learned that, in this embodiment, the second display region 503 is located
in the first display region 502. In a possible implementation, an area of the second
display region 503 is smaller than an area of the first display region 502. For example,
the first display region is a display interface of an application (APP), and the second
display region 503 is a "small map". In another possible implementation, the contents
of the second display region 503 and the first display region 502 may be switched.
For example, when the first display region 503 is displayed on the terminal device,
upon receiving a switching operation instruction entered by a user, the content is
quickly switched to the second display region 503. For example, when the user presses
a functional key "S", the content in the first display region 502 is quickly switched
to the second display region 503. When the user releases the functional key "S", the
content in the second display region 503 is switched to the first display region 502.
In this manner, the content of the second display region is displayed on the display
interface of the APP, that is, the second display region is expanded, so that content
displayed in the second display region can be displayed with better clarity. Furthermore,
the quick switching between the first display region and the second display region
does not affect other control operations performed by the player.
[0062] To improve efficiency of performing an operation on target objects on the layer by
the user, in this embodiment, the first display region and the second display region
may display the layer according to different scales.
[0063] For example, the first display region may zoom in a part of the layer by a preset
multiple. Because the first display region can zoom in the layer for displaying, the
user can clearly view an interface element displayed on the layer. In this way, the
user can easily perform an operation on the interface element on the layer that is
displayed on the first display region after being zoomed in. In practices, the target
object may or may not be displayed in the first display region. If the user currently
needs to perform an operation on the target object, the target object may be displayed
in the first display region. If the user currently does not need to perform an operation
on the target object, the target object may not be displayed in the first display
region.
[0064] To make it convenient for the user to have a global view of the scene and relative
position of the target object at any time, the second display region located in the
first display region may display a larger region zoomed out from the scene displayed
in the first display region by a preset multiple. In this way, the user can accurately
learn about a specific location of the target object on the layer by using the second
display region, thereby improving efficiency of performing an operation on the target
object by the user.
[0065] In this embodiment, specific content displayed in the second display region is not
limited, that is, content that may be displayed in the second display region includes
but is not limited to the zoomed-out layer and the target object located on the layer.
The second display region may further display various information tools. For example,
the second display region may be used for displaying a shortcut menu for performing
functions, and the like.
[0066] Step 404: The terminal device obtains a display mode correspondence list.
[0067] Specifically, the application data in this embodiment includes the display mode correspondence
list. The terminal device may obtain the display mode correspondence list by reading
the application data.
[0068] The display mode correspondence list in this embodiment includes a correspondence
between the target object and the target display mode.
[0069] Specifically, the target display mode in this embodiment includes at least one of
the following: the icon of the target object, a color of the icon of the target object
and a size of the icon of the target object.
[0070] It should be noted that, the description of the target display mode in this embodiment
is an optional example, rather than a limitation.
[0071] The following describes the display mode correspondence list in detail with reference
to a specific application scene. In this application scene, a multiplayer online battle
arena game (MOBA) that can be run on the terminal device is used as an example.
[0072] In the MOBA game, the target object is a large resource point, such as a preset character,
a target building, or the like in the game scene. For example, the target object may
be an enemy from an opposing team or a leading player or a forward in your team. Alternatively,
the target object may be a building (a quantity of which is not limited) to be occupied
by one of the two teams. In short, the target object may be a main character that
pushes forward the game procedure. Using a game scene as an example, the target object
may be an important monster that advances forward the game progression of the MOBA
game, for example, a "master" and a "tyrant" may be displayed on the layer.
[0073] In the method shown in this embodiment, to make it convenient for the user to accurately
learn about different states of each target object, the display mode correspondence
list in this embodiment further includes at least one state of the target object and
a display mode corresponding to one of the at least one state of the target object.
The display mode is used for identifying a state of the target object, and there is
a correspondence between the display mode and the state of the target object. The
display mode only needs to be capable of clearly distinguishing the different states
of the target object. Specifically, a specific form of the display mode is not limited.
For example, the display mode may be the color of the icon, the size of the icon,
a shape of the icon, a flicker state of the icon, an animation state of the icon,
and the like. In this embodiment of this disclosure, the different states of the target
object are distinguished by using the display mode. For example, the different states
may include but is not limited to: being born, growing in level one, growing in level
two, growing in level three, being dead, and the like.
[0074] For example, if in the game scene, the target object is a target building, in a possible
implementation, states of the target building include: being unoccupied, being occupied,
and the like. In another possible implementation, the states of the target building
include: foundation construction, region framework construction, main construction,
upgrade level 1, upgrade level 2, being collapsed, and the like. The state of the
target object may vary in different application scenes. Specifically, examples are
not listed one by one herein.
[0075] In this embodiment, an application scene is described as an example. In the MOBA
game, if the target object is the tyrant, the tyrant has two different states: being
born and being dead. If the target object is the master, the master has two different
states: being born and being dead.
[0076] In a possible implementation, the "tyrant" corresponds to a first icon. The first
icon in a first color (for example, grey) represents that the "tyrant" is born, and
the icon in a second color (for example, yellow) represents that the "tyrant" is dead.
[0077] The "master" corresponds to a third icon. The third icon in a third color represents
that the "master" is born, and the icon in the second color represents that the "master"
is dead.
[0078] It should be noted that, the first icon is different from the third icon. Because
the first icon is different from the third icon, the first color may be the same as
or different from the third color, and the second color may be the same as or different
from the fourth color, provided that the colors can distinguish the different states
of the target object.
[0079] Certainly, to distinguish different states of a target object, the target object
in different states may correspond to a same icon or different icons. In this embodiment,
an example is used in which one target object corresponds to one icon.
[0080] In another possible implementation, the first icon in a first shape (for example,
a square shape) represents that the "tyrant" is born, and the first icon in a second
shape (for example, a round shape) represents that the "tyrant" is dead.
[0081] In another possible implementation, the first icon that flickers represents that
the "tyrant" is born, and the first icon that does not flicker represents that the
"tyrant" is dead.
[0082] In another possible implementation, the first icon including an animation represents
that the "tyrant" is born, and the first icon not including an animation represents
that the "tyrant" is dead. In this embodiment, the display mode is described by using
an example of color, referring to Table 1 as the display mode correspondence list
in this embodiment. It should be noted that, Table 1 in this embodiment is an optional
example, and the display mode correspondence list is not specifically limited.
Table 1
| Target object |
State of target object |
Target display mode |
| Tyrant |
born |
a first icon, where the first icon is yellow |
| Tyrant |
dead |
a second icon, where the second icon is grey |
| Master |
born |
a third icon, where the third icon is purple |
| Master |
dead |
a fourth icon, where the fourth icon is grey |
[0083] It can be learned from Table 1 that, each of the born state and the dead state of
each of the target objects tyrant and master has an icon. In this embodiment, the
first icon, the second icon, the third icon, and the fourth icon are not limited,
provided that the first icon, the second icon, the third icon, and the fourth icon
are different icons.
[0084] Optionally, the target display mode corresponding to the target object may further
include the size of the icon. For example, a size of the first icon may be different
from a size of the third icon. For example, the first icon is larger than the third
icon. The different target objects are distinguished according to the sizes of the
icons. Because a display interface of the "small map" is relatively small, when the
different target objects have different sizes, the player can quickly distinguish
the different target object. In this way, the different target objects may be indicated
clearer. For example, a size of an icon corresponding to a first target object (for
example, the tyrant) is 3, and a size of an icon corresponding to a second target
object (for example, the master) is 2.
[0085] The various implementations of the target display mode corresponding to the target
object described above are merely examples. Other implementations are contemplated
provided that the display mode correspondence list can distinguish different states
of a same target object and different target objects and/or different display modes.
[0086] Step 405: The terminal device obtains attribute information of a target object.
[0087] In this embodiment, the application data read by the terminal device further includes
the attribute information of the target object. The attribute information is used
for identifying the target object. In this embodiment, the attribute information of
the target object is not limited, provided that the terminal device can determine
the target object by using the attribute information of the target object.
[0088] Using the MOBA game as an example, the terminal device can determine whether the
target object is the tyrant or the master according to the attribute information of
the target object.
[0089] Specifically, in this embodiment, the terminal device can further determine the at
least one state of the target object according to the attribute information of the
target object.
[0090] The attribute information of the target object corresponds to each of the at least
one state of the target object, that is, correspondences are established between the
attribute information of the target object and the different states of the target
object.
[0091] Further, using the MOBA game as an example, the terminal device can determine, according
to the attribute information of the target object, a born state and a dead state of
each of the target objects tyrant and master, and the like.
[0092] Step 406: The terminal device determines a current state of the target object.
[0093] In this embodiment, the current state of the target object is a state of the target
object corresponding to the attribute information of the target object.
[0094] It can be learned that, the terminal device in this embodiment can determine the
current state of the target object according to the obtained attribute information
of the target object.
[0095] In this embodiment, an example is used in which the attribute information of the
target object includes at least one of the following: first coordinates of the target
object displayed on the layer, the icon of the target object displayed on the layer,
and a start moment at which the target object was generated for the first time plus
a time length for generating the target object. For example, the start moment at which
the "tyrant" is generated for the first time is t0 and the period of generating the
"tyrant" is T, so that the "tyrant" is generated from t0 at an interval of T.
[0096] Further, using the MOBA game as an example, in a process of determining the target
object, if first coordinates of each target object displayed on the layer are pre-stored
in the application data, the terminal device can determine, according to the first
coordinates, the target object displayed on the layer at the first coordinates. If
an icon of each target object displayed on the layer is pre-stored in the application
data, the terminal device can determine, according to the icon, the target object
displayed on the layer as the icon and/or a state of the target object. If a start
moment at which each target object was generated for the first time and a time length
for generating the target object are pre-stored in the application data, the terminal
device can determine, according to a current moment, a current state (for example,
born or dead) of the target object.
[0097] Step 407: The terminal device obtains a target display mode corresponding to the
target object.
[0098] Specifically, the terminal device in this embodiment can determine, according to
the display mode correspondence list, the target display mode corresponding to the
current state of the target object.
[0099] More specifically, after the terminal device determines the current state of the
target object in step 406, the terminal device can look up the display mode correspondence
list obtained in step 404. The terminal device can determine, according to the display
mode correspondence list, the target display mode corresponding to the current state
of the target object.
[0100] Using Table 1 as an example, if the terminal device determines that the current state
of the target object is the born state of the tyrant, the terminal device can determine
according to the display mode correspondence list as shown in Table 1 that the corresponding
target display mode is "a first icon, where the first icon is yellow". The first icon
is an icon corresponding to the tyrant.
[0101] Step 408: The terminal device maps the target object into the second display region
for displaying.
[0102] In this embodiment, the terminal device can map the coordinates of the target object
displayed on the layer into the second display region for displaying and display the
target object in the second display region in the target display mode. It may be understood
that in the game scene, the icon corresponding to the "master" and the icon corresponding
to the "tyrant" are displayed in the second display region.
[0103] In this embodiment, how to map the target object into the second display region is
not limited, provided that the terminal device can determine, according to the first
coordinates of the target object displayed on the layer, second coordinates of the
target object displayed in the second display region. Specifically, in addition to
the target object, an interface element is displayed on the layer. In this embodiment,
the interface element is not limited. If the MOBA game is used as an example, the
interface element displayed on the layer may be a geographic icon having an identification
function and displayed on a map, and the like. In this embodiment, when the target
object is mapped into the second display region, only a relative location relationship
between the target object and the interface element that are displayed on the layer
needs to be mapped into the second display region, that is, it is only required that
the relative location relationship between the target object and the interface element
that are located in the second display region is not changed.
[0104] The following description of a mapping manner in this embodiment is an optional example,
and the mapping manner is not limited. In this example, the layer is zoomed out by
a preset multiple and displayed in the second display region, that is, all regions
on the layer can be displayed in the second display region.
[0105] The terminal device can obtain the first coordinates, which are coordinates of the
target object displayed on the layer, and the terminal device determines the second
coordinates which are coordinates obtained after the first coordinates are zoomed
out by the preset multiple. In this way, the terminal device can display the icon
of the target object in the second display region according to the second coordinates.
[0106] It should be noted that, a performing sequence of step 407 and step 408 in this embodiment
is not limited.
[0107] Step 407 may be performed before step 408, that is, the target display mode of the
target object is determined before the target object is mapped into the second display
region in the target display mode.
[0108] Alternatively, step 408 may be performed before step 407, that is, the target object
is mapped into the second display region before the target object is displayed in
the second display region in the target display mode.
[0109] Beneficial effects of the method in this embodiment are as follows.
[0110] Because different states of different target objects correspond to different target
display modes, the player can determine the different target objects and current states
of the different target objects according to the different target display modes displayed
in the second display region, and the player can quickly learn about an actual location
of each target object on the layer by using the second display region. It can be learned
that, the target display mode of the target object displayed in the second display
region can provide an accurate indication to the player, so that the player can determine
the current states and positions of the different target objects according to the
different target display modes, thereby improving accuracy and efficiency of performing
an operation on the target object by the player.
[0111] To better understand the method in this embodiment of the present disclosure, the
following describes the method in this embodiment in detail with reference to a specific
application scene.
[0112] Referring to FIG. 6 for description, this application scene is described with an
example of the MOBA game. It should be noted that a scenario to which the method in
this embodiment can be applied is not limited to the MOBA game. This application scene
as the MOBA game scene is only described as an example.
[0113] All original data sent by a server is loaded onto a client of a terminal device in
this embodiment. The original data is application data for installing and/or updating
the MOBA game, to enable the client of the terminal device to perform an install procedure
and/or update procedure of the MOBA game by using the original data.
[0114] In the MOBA game, the original data includes layer drawing data. The client of the
terminal device can draw an operation layer by using the layer drawing data. As shown
in FIG. 6, the operation layer 700 may be a map used for performing positioning in
the MOBA game.
[0115] Specifically, the original data further includes first coordinates of the tyrant
and those of the master on the operation layer, icons of the tyrant and the master
displayed on the operation layer, a delay time at which the tyrant is generated for
the first time and an interval at which the tyrant is generated, and a delay time
at which the master is generated for the first time and an interval at which the master
is generated.
[0116] More specifically, in the original data, a born location point of the tyrant and
that of the master are preconfigured on the operation layer. The born location points
are respectively the first coordinates corresponding to the tyrant and the first coordinates
corresponding to the master. Using the tyrant as an example, the tyrant is born at
the already configured born location point, that is, a location of the first coordinates
on the operation layer, and the tyrant is born according to the delay time already
configured in the original data for generating the tyrant for the first time. If the
tyrant is dead, the tyrant revives according to the interval at which the tyrant is
generated.
[0117] The client of the terminal device can read the original data. A game scene layer
on which a hero used by the player is located reads the first coordinates X (coordinates
of the tyrant) and Y (coordinates of the master) of the large resource points on the
operation layer, thereby synchronously mapping the large resource points into a small
map 701 according to the first coordinates X and Y, that is, determining second coordinates
X' (coordinates of the tyrant) and Y' (coordinates of the master) of the large resource
points displayed on the small map 701. The small map 701 in this application scene
is the second display region, that is, the "small map" in the foregoing embodiment.
[0118] In this embodiment, the small map 701 and the operation layer 700 synchronously record
location coordinates of the master and the tyrant, and a location of each large resource
point on the small map 701 is in a one-to-one correspondence with a location of each
large resource point on the operation layer 700.
[0119] According to the small map 701 in this embodiment, the player can directly view the
location of each large resource point and a region in which the large resource point
is located, and a location of a player character on the operation layer. The small
map 701 can further display prompt information. The prompt information may be information
about a channel at which the player is located, and the like.
[0120] The following describes how the client of the terminal device determines whether
a current large resource point is the tyrant or the master, whether the tyrant is
in the dead state or the born state and whether the master is in the dead state or
the born state, according to the first coordinates X and Y of the large resource points
located on the operation layer, the icons of the large resource points displayed on
the operation layer, the delay times at which the large resource points are generated
for the first time and the periods at which the large resource points are generated.
[0121] The client of the terminal device can display the different states of the large resource
points on the small map 701 by using the second coordinates, so that icons displayed
at the different second coordinates on the small map 701 are used for indicating and
identifying different large resource points. The client executes a final command:
show the icons of the different large resource points at the born location points
of the master and the tyrant on the small map 701.
[0122] For this application scene, still referring to FIG. 6, there are two opposing teams
in the MOBA game: a red team and a blue team. When the player is in the blue team,
a specific display mode of the small map 701 is as shown in FIG. 8. The small map
701 automatically rotates to change display locations of the two teams. In this way,
the master is located at an upper-left corner and the tyrant is located at a lower-right
corner. Specifically, the master and the tyrant are displayed on the small map 701
according to the second coordinates.
[0123] If the client of the terminal device determines that the large resource point of
the tyrant is in the dead state and the large resource point of the master is also
in the dead state according to the first coordinates X and Y of the large resource
points located on the operation layer, the icons of the large resource points displayed
on the operation layer, the delay times at which the large resource points are generated
for the first time and the periods at which the large resource points are generated,
the client of the terminal device reads the second icon corresponding to the dead
state of the tyrant, where the tyrant in the dead state does not appear on the battlefield,
the second icon being medium-sized and grey, and the second icon being displayed on
the small map 701; and reads the fourth icon corresponding to the master, where the
master in the dead state does not appear on the battlefield, the fourth icon being
large-sized and grey, and the fourth icon being displayed on the small map 701. In
this application scene, the medium size and the large size are not specifically limited,
provided that the fourth icon is larger than the second icon. Specifically, because
the master is more important than the tyrant, the icon of the master is larger than
the icon of the tyrant.
[0124] As shown in FIG. 9, if determining that the large resource point of the tyrant is
in the born state and the large resource point of the master is in the dead state,
the client of the terminal device reads the first icon corresponding to the born state
of the tyrant, where the tyrant in the born state appears on the battlefield, the
first icon being medium-sized and yellow, and the first icon being displayed on the
small map 701; and reads the fourth icon corresponding to the master, where the master
in the dead state does not appear on the battlefield, the fourth icon being large-sized
and grey, and the fourth icon being displayed on the small map 701.
[0125] As shown in FIG. 10, if determining that the large resource point of the tyrant is
in the born state and the large resource point of the master is in the born state,
the client of the terminal device reads the first icon corresponding to the born state
of the tyrant, where the tyrant in the born state appears on the battlefield, the
first icon being medium-sized and yellow, and the first icon being displayed on the
small map 701; and reads the third icon corresponding to the master, where the master
in the born state also appears on the battlefield, the third icon being large-sized
and purple, and the third icon being displayed on the small map 701.
[0126] As shown in FIG. 10, if determining that the large resource point of the tyrant is
in the dead state and the large resource point of the master is in the born state,
the client of the terminal device reads the second icon corresponding to the dead
state of the tyrant, where the tyrant in the dead state does not appear on the battlefield,
the second icon being medium-sized and grey, and the second icon being displayed on
the small map 701; and reads the third icon corresponding to the master, where the
master in the born state appears on the battlefield, the third icon being large-sized
and purple, and the third icon being displayed on the small map 701.
[0127] When the player is in the red team, a specific display mode of the small map 701
is as shown in FIG. 11. The small map 701 automatically rotates, so that the master
is on the lower-right corner and the tyrant is on the upper-left corner.
[0128] Using an example in which the client of the terminal device detects that the large
resource point of the tyrant is in the dead state and the large resource point of
the master is also in the dead state, the client of the terminal device reads the
second icon corresponding to the dead state of the tyrant, where the tyrant in the
dead state does not appear on the battlefield, the second icon being medium-sized
and grey, and the second icon being displayed on the small map 701; and reads the
fourth icon corresponding to the master, where the master in the dead state does not
appear on the battlefield, the fourth icon being large-sized and grey, and the fourth
icon being displayed on the small map 701.
[0129] It can be learned from this application scene that the specific icons are designed
for the large resource points of the master and the tyrant. The color of the icon
of the master that is born is different from the color of the icon of the master that
is dead, and the color of the icon of the tyrant that is born is different from the
color of the icon of the tyrant that is dead, that is, the different large resource
points have different colors for birth, and have icons of different display styles.
The icons of the born state and the dead state of a same large resource point have
different colors. Therefore, the icons of the master and the tyrant are always grey
before born, and respectively displayed in purple and yellow after born, and change
to grey again when dead, and change colors again when revived. In this way, the player
can clearly and quickly distinguish the large resource points of the tyrant and the
master, according to the styles of the icons, the sizes of the icons, and the colors
of the icons that are displayed on the small map.
[0130] An embodiment of the present disclosure further provides a terminal device that can
implement the method in the foregoing embodiments. A detailed hardware structure of
the terminal device is as shown in FIG. 3. The following describes, with reference
to FIG. 12, a structure of a functional module of the terminal device that can implement
the method in the foregoing embodiments.
[0131] The terminal device includes the following units 1201 to 1205.
[0132] A first obtaining unit 1201 is configured to obtain a target object, the target object
being located on a layer, and at least a part of the layer being displayed in a first
display region.
[0133] A first determining unit 1202 is configured to determine a second display region,
the second display region being located in the first display region, an area of the
second display region being smaller than an area of the first display region, and
the second display region being used for zooming out the at least a part of the layer
by a preset multiple for displaying.
[0134] A third obtaining unit 1203 is configured to creat a display mode correspondence
list, the display mode correspondence list including a correspondence between the
target object and a target display mode.
[0135] Specifically, the display mode correspondence list includes at least one state of
the target object and a display mode corresponding to one of the at least one state
of the target object.
[0136] A second obtaining unit 1204 is configured to obtain the target display mode corresponding
to the target object.
[0137] Specifically, the second obtaining unit 1204 includes the following modules 12041
to 12043.
[0138] A second obtaining module 12041 is configured to obtain attribute information of
the target object, the attribute information of the target object corresponding to
one of the at least one state of the target object.
[0139] A second determining module 12042 is configured to determine a current state of the
target object, the current state of the target object being a state of the target
object corresponding to the attribute information of the target object;
[0140] A third determining module 12043 is configured to determine, according to the display
mode correspondence list, the target display mode corresponding to the current state
of the target object.
[0141] A mapping unit 1205 is configured to map the target object into the second display
region, to display the target object in the second display region in the target display
mode.
[0142] Specifically, the mapping unit 1205 includes the following modules 12051 to 12053.
[0143] A first obtaining module 12051 is configured to obtain first coordinates, the first
coordinates being coordinates of the target object displayed on the layer.
[0144] A first determining module 12052 is configured to obtain second coordinates according
to the first coordinates, the second coordinates being coordinates of the target object
displayed in the second display region.
[0145] A display module 12053 is configured to display the target object in the second display
region at the second coordinates.
[0146] This disclosure further provides a computer readable storage medium. The computer
readable storage medium stores instructions, and the instructions, when run on a computer,
cause the computer to perform the object displaying method according to the foregoing
method embodiments.
[0147] This disclosure further provides a computer program product including instructions,
and the computer program product, when run on a computer, causes the computer to perform
the object displaying method according to the foregoing method embodiments.
[0148] For details of a specific procedure of performing the object displaying method in
this embodiment by the terminal device and obtained beneficial effects thereof, one
may refer to the foregoing embodiments. Details are not described in this embodiment.
[0149] It may be clearly understood by persons skilled in the art that, for convenient and
brief description, for a detailed working process of the foregoing system, apparatus,
and unit, one may refer to a corresponding process in the foregoing method embodiments,
and details are not described herein again.
[0150] In the several embodiments provided in this disclosure, it should be understood that
the disclosed system, apparatus, and method may be implemented in other manners. For
example, the described apparatus embodiment is merely an example. For example, the
unit division is merely logical function division and there may be other division
manners during actual implementation. For example, multiple units or components may
be combined or integrated into another system, or some features may be ignored or
not performed. In addition, the displayed or discussed mutual couplings or direct
couplings or communication connections may be indirect couplings or communication
connections implemented through some interfaces, apparatuses or units, and may be
implemented in electronic, mechanical, or other forms.
[0151] The units described as separate parts may or may not be physically separate, and
parts displayed as units may or may not be physical units, may be located in one position,
or may be distributed on multiple network units. Some or all of the units may be selected
according to actual needs to achieve the objectives of the solutions of the embodiments.
[0152] In addition, functional units in the embodiments of the present disclosure may be
integrated into one processor unit, or each of the units may exist alone physically,
or two or more units are integrated into one unit. The integrated unit may be implemented
in a form of hardware, or may be implemented in a form of a software functional unit.
[0153] When the integrated unit is implemented in the form of a software functional unit
and sold or used as an independent product, the integrated unit may be stored in a
computer readable storage medium. Based on such an understanding, the essence of the
technical solutions of the present disclosure, or the part contributing to the existing
technology, or all or some of the technical solutions may be implemented in the form
of a software product. The computer software product is stored in a storage medium
and includes several instructions for instructing a computer device (which may be
a personal computer, a server, a network device, or the like) to perform all or some
of the steps of the methods described in the embodiments of the present disclosure.
The foregoing storage medium includes: any medium that can store program code, such
as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access
Memory (RAM), a magnetic disk, or an optical disc.
[0154] The foregoing embodiments are merely intended for describing the technical solutions
of the present disclosure, but not for limiting the present disclosure. Although the
present disclosure is described in detail with reference to the foregoing embodiments,
persons of ordinary skill in the art should understand that they may still make modifications
to the technical solutions described in the foregoing embodiments or make equivalent
replacements to some technical features thereof, without departing from the spirit
and scope of the technical solutions of the embodiments of the present disclosure.