[go: up one dir, main page]

CN112587923A - Method, device and equipment for controlling movement of game target and readable storage medium - Google Patents

Method, device and equipment for controlling movement of game target and readable storage medium Download PDF

Info

Publication number
CN112587923A
CN112587923A CN202011614092.4A CN202011614092A CN112587923A CN 112587923 A CN112587923 A CN 112587923A CN 202011614092 A CN202011614092 A CN 202011614092A CN 112587923 A CN112587923 A CN 112587923A
Authority
CN
China
Prior art keywords
screen
game
game object
movement
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011614092.4A
Other languages
Chinese (zh)
Other versions
CN112587923B (en
Inventor
廖斯逸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011614092.4A priority Critical patent/CN112587923B/en
Publication of CN112587923A publication Critical patent/CN112587923A/en
Application granted granted Critical
Publication of CN112587923B publication Critical patent/CN112587923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种游戏目标移动的控制方法、装置、设备及可读存储介质,该方法包括:接收位置检测指令,获取所述位置检测指令对应的屏幕边界线和游戏目标,并根据所述游戏目标和所述屏幕边界线,确定屏幕平衡线;若所述游戏目标的当前位置位于所述屏幕平衡线与所述屏幕边界线之间的边界区域,且所述游戏目标对应的游戏处于运行状态,则启动预设跳动模式;在所述预设跳动模式下,若所述游戏目标处于运动状态,则将所述游戏目标移动到所述屏幕平衡线围成的中间区域。本发明解决了游戏目标会跳出屏幕显示范围,影响用户游戏体验的问题。

Figure 202011614092

The invention discloses a control method, device, device and readable storage medium for the movement of a game object. The method includes: receiving a position detection instruction, acquiring a screen boundary line and a game object corresponding to the position detection instruction, and according to the The game object and the screen boundary line, determine the screen balance line; if the current position of the game object is located in the boundary area between the screen balance line and the screen boundary line, and the game corresponding to the game object is running If the game object is in a motion state, the preset jump mode is activated; in the preset jump mode, if the game object is in a motion state, the game object is moved to the middle area enclosed by the balance line of the screen. The invention solves the problem that the game object will jump out of the screen display range and affect the user's game experience.

Figure 202011614092

Description

Method, device and equipment for controlling movement of game target and readable storage medium
Technical Field
The present invention relates to the field of terminal control, and in particular, to a method, an apparatus, a device, and a readable storage medium for controlling movement of a game object.
Background
With the development of smart large screens, for example, smart televisions, more and more games can be carried on existing smart televisions, however, when some games in smart televisions have a problem that a game target jumps out of a display range of a screen, a problem that the game target is displayed incompletely is caused, and an existing method for solving the problem is generally to automatically adjust a game picture so as to keep the game target within the display range of the television, but the adjustment of the method is not accurate, and the man-machine interaction is not strong.
Disclosure of Invention
The invention mainly aims to provide a method, a device and equipment for controlling the movement of a game target and a readable storage medium, and aims to solve the technical problem that the game target is not displayed completely because the game target jumps out of a screen display range.
Further, to achieve the above object, the present invention provides a method for controlling a movement of a game target, including the steps of:
receiving a position detection instruction, acquiring a screen boundary line and a game target corresponding to the position detection instruction, and determining a screen balance line according to the game target and the screen boundary line;
if the current position of the game target is located in a boundary area between the screen balance line and the screen boundary line and the game corresponding to the game target is in a running state, starting a preset jumping mode;
and under the preset jumping mode, if the game target is in a motion state, moving the game target to a middle area defined by the screen balance line.
Optionally, if the current position of the game target is located in a boundary region between the screen balance line and the screen boundary line, and the game corresponding to the game target is in a running state, the step of starting a preset jumping mode includes:
in the preset jumping mode, if the game target is in a static state, acquiring the positions of all screen balance lines;
determining a target screen balance line which is closest to the current position in all the screen balance lines according to the current position and the positions of all the screen balance lines;
moving the game target to the target screen balance line.
Optionally, after the step of determining a target screen balance line closest to the current position among all screen balance lines according to the current position and the positions of all screen balance lines, the method includes:
acquiring the central position of the game target;
the step of moving the game target onto the target screen balance line comprises:
moving the center position to the target screen balance line.
Optionally, the step of determining a screen balance line according to the game target and the screen boundary line includes:
acquiring size information of the game target, and determining a first width according to a target length and a target width in the size information, wherein the difference between the first width and the target width is equal to a first preset value;
and determining a screen balance line according to the screen boundary line and the first width, wherein the distance between the screen balance line and the screen boundary line is equal to the first width.
Optionally, if the game object is in a motion state, the step of moving the game object to a middle area surrounded by the screen balance line includes:
if the game target is in a motion state, acquiring the length of the screen boundary line, and taking the product of the length of the screen boundary line and a preset proportion as a moving distance;
and moving the game target according to the moving distance, acquiring the edge position of the game target after moving, and returning to the step of moving the game target according to the moving distance until the edge position belongs to the middle area if the edge position belongs to the boundary area.
Optionally, after the step of determining a screen balance line according to the game target and the screen boundary line, the method includes:
if the current position is located in a middle area defined by the screen balance line, obtaining a game picture corresponding to the game target;
if the game target is in a motion state, acquiring a moving track of the game target in the game picture and a terminal point of the moving track;
if the moving track passes through a boundary area between the screen balance line and the screen boundary line, moving the game picture so as to enable the end point of the moving track to fall in the boundary area;
and when the game target finishes moving along the moving track, returning to the step of acquiring the current position of the game target, and updating the current position.
Optionally, if the game object is in a motion state, the step of moving the game object to a middle area surrounded by the screen balance line includes:
if the game target is in a motion state, acquiring a motion track of the game target and a terminal point of the motion track;
moving the game picture, and if the end point of the motion trail falls in the boundary area after the game picture is moved, ending the game corresponding to the game target;
and if the terminal point of the motion trail passes through a middle area defined by the screen balance line in the moving process of the game picture, moving the game target to the middle area by moving the game picture.
Further, in order to achieve the above object, the present invention provides a game object movement control device including:
the position acquisition module is used for receiving a position detection instruction, acquiring a screen boundary line and a game target corresponding to the position detection instruction, and determining a screen balance line according to the game target and the screen boundary line;
the jumping mode starting module is used for starting a preset jumping mode if the current position of the game target is located in a boundary area between the screen balance line and the screen boundary line and a game corresponding to the game target is in a running state;
and the control moving module is used for moving the game target to a middle area defined by the screen balance line under the preset jumping mode if the game target is in a motion state.
Further, to achieve the above object, the present invention also provides a control apparatus for a game object movement, comprising: the control program of the movement of the game object is stored on the memory and can be run on the processor, and the control program of the movement of the game object realizes the steps of the control method of the movement of the game object when being executed by the processor.
Further, to achieve the above object, the present invention provides a readable storage medium having stored thereon a control program of a game object movement, which when executed by a processor, realizes the steps of the control method of a game object movement as described above.
The embodiment of the invention provides a method, a device and equipment for controlling the movement of a game target and a readable storage medium. In the embodiment of the invention, when a control program for moving a game target receives a position detection instruction, a screen boundary line and a game target corresponding to the position detection instruction are obtained, a screen balance line is further determined according to the game target and the screen boundary line, if the current position of the game target is located in a boundary area between the screen balance line and the screen boundary line, and a game corresponding to the game target is in a running state, a preset jumping mode is started, and if the game target is in a motion state, the game target is moved to a middle area defined by the screen balance line.
Drawings
Fig. 1 is a schematic hardware configuration diagram of an embodiment of a control device for game object movement according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for controlling the movement of a game object according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating the movement of a game object according to a first embodiment of the method for controlling the movement of a game object of the present invention.
FIG. 4 is a flowchart illustrating a second embodiment of a method for controlling the movement of a game object according to the present invention;
FIG. 5 is a functional block diagram of an embodiment of a control device for controlling movement of a game object according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The control terminal (also called terminal, equipment or terminal equipment) for moving the game target in the embodiment of the invention can be a PC (personal computer), and can also be mobile terminal equipment with a display function, such as a smart phone, a tablet computer, a smart television and a portable computer.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a control program for game object movement.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a control program of game object movement stored in the memory 1005, which when executed by the processor implements the operations in the control method of game object movement provided by the embodiments described below.
Based on the hardware structure of the device, the embodiment of the control method for the movement of the game object is provided.
Referring to fig. 2, in a first embodiment of a control method of a game target movement of the present invention, the control method of a game target movement includes:
and step S10, receiving a position detection instruction, acquiring a screen boundary line and a game target corresponding to the position detection instruction, and determining a screen balance line according to the game target and the screen boundary line.
The method for controlling the movement of the game object in this embodiment is applied to the smart tv, and it is known that when a game in the smart tv runs, the position of the game object in the game needs to be detected, where the game object is generally an object that can be operated by a game player, i.e., a game character, and after receiving a position detection instruction, a control program for the movement of the game object obtains a screen boundary line and a game object corresponding to the position detection instruction, where the screen boundary line is an edge line of a display screen of the smart tv, and the game object is an object that can be operated by the game player, and finally, a screen balance line is determined according to the game object and the screen boundary line, and the screen balance line is determined according to size information and a current position of the game object, specifically, size information of the game object may be a size of the game object displayed on the display screen of the smart, the present embodiment uses the length and width of a rectangle that can just frame a game target as the size information of the game target, where the length and width may be a distance unit, such as a centimeter, or a pixel unit, such as how many pixels the game target occupies, the current position of the game target may be represented by the center position of the rectangle, and may determine the coordinate representation of the center position of the game target by using the smart tv display screen as a coordinate system, it can be understood that the screen balance line functions to cause the game target to jump out of the warning line of the smart tv display area, that is, when the game target passes through the screen balance line, it indicates that the game target may jump out of the smart tv display area, specifically, the determination standard of the screen balance line is that, when the game target is placed between the screen balance line and the screen boundary line, the game target does not touch the screen balance line or the screen boundary line, and a certain distance is left from the screen balance line or the screen boundary line, it can be known that the direction of the screen boundary line toward the screen center is the inner direction, and the screen balance line is in front of the screen boundary line in the inner direction, as shown in fig. 3, the line meeting the above condition may be the screen balance line.
Step S20, if the current position of the game target is located in the boundary region between the screen balance line and the screen boundary line, and the game corresponding to the game target is in a running state, starting a preset bounce mode.
It can be known that the current position is the current position of the game target, and the current position can be any point on the game target, so the current position is located in the boundary region between the screen balance line and the screen boundary line, which indicates that the game target has passed through the screen balance line or intersected with the screen balance line, in this case, if the game in the smart tv is in the running state, the jumping mode is started, specifically, the state of the game of the smart tv in this embodiment at least includes three states of a closed state, a pause state and a running state, the jumping mode is that when the control program for the movement of the game target is in the preset jumping mode, the game target and the game picture are in the movable state, and since the game target and the game picture are both composed of pixel points, the movement of the game target and the game picture is not continuous movement, but jumping movement between the pixel points, therefore, the state in which the game object and the game screen are movable is referred to as a preset bounce pattern.
Step S30, in the preset bounce mode, if the game target is in a motion state, moving the game target to a middle area surrounded by the screen balance lines.
It should be noted that, in the present embodiment, the movement of the game object may also be artificially controllable, and in the preset jumping mode, if the game object is in a motion state, the game object is moved to the middle area surrounded by the screen balance line, it is understood that in the preset jumping mode, the game object may be in two motion states, one is a stationary state, and the other is a motion state, and in a case where the game object is in the boundary area and the game object is in the motion state, the game object is most likely to move out of the display area of the smart tv screen, and in this case, the control program for moving the game object will move the game object to the middle area surrounded by the screen balance line.
Specifically, the step of step S10 refinement includes:
step a1, obtaining size information of the game object, and determining a first width according to the object length and the object width in the size information, wherein the difference between the first width and the object width is equal to a first preset value.
Step a2, determining a screen balance line according to the screen boundary line and the first width, wherein the distance between the screen balance line and the screen boundary line is equal to the first width.
It should be noted that the size information of the game object can be represented by the information of the rectangle that can just frame the game object, specifically, the function of just frame the game object is that, if the rectangle that can just frame the game object does not move out of the smart tv display screen in the reverse direction of the middle area, and it is ensured that the game object does not move out of the smart tv display screen, the object length in this embodiment refers to the length of the rectangle, and the object width refers to the width of the rectangle, and according to the object length and the object width, a first width can be determined, wherein the first width refers to the width of the boundary area, as shown in fig. 3, the first width should be slightly larger than the object width, that is, the difference between the first width and the object width is equal to a first preset value, and the object length here should be limited to be smaller than the, the object width should also be limited to a width smaller than the screen boundary line, it being understood that there are no game objects in the existing video game having a length and width exceeding the size of the display screen, and it is known that the boundary area is defined by a screen balance line and a screen boundary line, and in the case where the first width is determined, the position of the screen balance line is immediately confirmed, that is, the distance of the screen balance line from the screen boundary line is equal to the first width, and the length of the screen balance line is smaller than the length of the screen boundary line.
Specifically, the step after step S20:
step b1, in the preset jumping mode, if the game target is in a static state, acquiring the positions of all screen balance lines.
And b2, determining a target screen balance line closest to the current position in all the screen balance lines according to the current position and the positions of all the screen balance lines.
Step b3, moving the game object to the object screen balance line.
In the preset jumping mode, if the game object is in the boundary area and the game object is in a static state, the game object moving control program will move the game object to the screen balance line, that is, move the game object to the middle of the screen, so as to ensure that the game object is in a safe area that cannot be moved out of the smart television display screen. It can be known that, when the specific direction of the game target is not determined, the number of the screen balance lines needs to be obtained, and if the number of the screen balance lines is 4, the boundary area is composed of four parts, i.e., the upper part, the lower part, the left part and the right part, of the display screen.
Specifically, the steps after step b2 include:
and c1, acquiring the central position of the game target.
The step b3 is detailed in the following steps:
step c2, moving the center position to the target screen balance line.
Therefore, in the process of moving the game target to the target screen balance line, the center position of the game target, that is, the center position of the rectangle that just can frame the game target, which may not be on the game target, needs to be obtained first, and after the center position of the game target is obtained, the center position is moved to the target screen balance line, that is, the game target is moved to the screen balance line.
Specifically, the step of step S30 refinement includes:
and d1, if the game target is in a motion state, acquiring the length of the screen boundary line, and taking the product of the length of the screen boundary line and a preset proportion as a moving distance.
And d2, moving the game target according to the moving distance, acquiring the edge position of the game target after moving, and returning to the step of moving the game target according to the moving distance if the edge position belongs to the boundary area until the edge position belongs to the middle area.
It is known that, when the game object is in the boundary area and in the moving state, the control program for the movement of the game object acquires the length of the screen boundary line, which is two types, namely, the length of the screen boundary line of the display screen of the smart television, and the length of the screen boundary line may be wide or long, and is specifically determined according to the motion situation of the game object, if the game object is moving up and down, the length of the screen boundary line is the width of a rectangle, if the game object is moving left and right, the length of the screen boundary line is the length of a rectangle, and since a rotating screen has appeared on the market, the length of the screen boundary line is not limited to be wide or long, as shown in fig. 3, after the length of the screen boundary line is acquired, the product of the length of the screen boundary line and a preset proportion is taken as a moving distance, and the moving distance is calculated, determining the distance of each movement of the game target, moving the game target according to the movement distance after obtaining the movement distance, acquiring the edge position of the game target after each movement, and stopping the movement when the edge position belongs to the middle area, namely the whole game target is moved into the middle area.
In this embodiment, when a control program for game target movement receives a position detection instruction, a screen boundary line and a game target corresponding to the position detection instruction are obtained, and then a screen balance line is determined according to the game target and the screen boundary line, if the current position of the game target is located in a boundary area between the screen balance line and the screen boundary line, and a game corresponding to the game target is in an operating state, a preset bounce mode is started, and if the game target is in a motion state, the game target is moved to a middle area defined by the screen balance line.
Further, referring to fig. 3, a second embodiment of the control method of the movement of the game object of the present invention is proposed on the basis of the above-described embodiment of the present invention.
This embodiment is a step after step S10 in the first embodiment, and the present embodiment is different from the above-described embodiments of the present invention in that:
and step S40, if the current position is located in a middle area surrounded by the screen balance line, obtaining a game picture corresponding to the game target.
Step S50, if the game object is in a motion state, acquiring a movement trajectory of the game object in the game screen and an end point of the movement trajectory.
Step S60, if the movement trajectory passes through a boundary region between the screen balance line and the screen boundary line, moving the game screen so that an end point of the movement trajectory falls within the boundary region.
And step S70, after the game target finishes moving along the moving track, returning to the step of obtaining the current position of the game target, and updating the current position.
It is known that, if the current position is located in the middle area surrounded by the screen balance line, the game picture corresponding to the game object is obtained, in order not to affect the normal operation of the game, that is, only the game object cannot be moved alone without moving the game picture, which may cause a problem in the operation of the game, the game object may have a fixed moving track in the game picture, when the game object is located in the middle area and is not stationary with respect to the game picture, the control of the movement of the game object obtains the moving track of the game object in the game picture and determines the end point of the moving track, and if the determined moving track passes through the boundary area between the screen balance line and the screen boundary line, the end point of the moving track may be determined to fall outside the range of the smart tv display screen, in which case, the control program of the movement of the game object may move the game picture, and enabling the end point of the moving track to fall on the boundary area, namely ensuring that the game target falls on the boundary area after moving along the moving track is finished, then updating the current position, and returning to the step of acquiring the current position.
Specifically, on the basis of the present embodiment, the step S30 of refining includes:
and e1, if the game target is in a motion state, acquiring the motion trail of the game target and the terminal point of the motion trail.
And e2, moving the game picture, and if the end point of the motion trail falls in the boundary area after the game picture is moved, ending the game corresponding to the game target.
Step e3, if the end point of the motion trail passes through the middle area enclosed by the screen balance line in the moving process of the game picture, moving the game target to the middle area by moving the game picture.
Specifically, if the game object is in a motion state, the motion trajectory of the game object and the end point of the motion trajectory are acquired, and after the motion trajectory of the game object and the end point of the motion trajectory are acquired, the game screen is moved, and during the movement of the game screen, if the game screen moves to the screen boundary and the movement of the game screen is completed, and after the movement of the game screen is completed, the end point of the motion trajectory falls in the boundary area, the game corresponding to the game object is ended, that is, the game object has moved to the boundary of the game screen, which indicates the end of the game, and during the movement of the game screen, if the end point of the motion trajectory passes through an intermediate area surrounded by a screen balance line, the game object is moved to the intermediate area by moving the game screen.
In the embodiment, the position of the game target is adjusted by moving the game picture, and the problem that the game target jumps out of the display range of the screen and the game experience of a user is influenced is solved under the condition that the normal operation of the game is not influenced.
In addition, referring to fig. 4, an embodiment of the present invention further provides a control device for controlling movement of a game object, where the control device for movement of a game object includes:
the position acquisition module 10 is configured to receive a position detection instruction, acquire a screen boundary line and a game target corresponding to the position detection instruction, and determine a screen balance line according to the game target and the screen boundary line;
a jumping mode starting module 20, configured to start a preset jumping mode if the current position of the game target is located in a boundary region between the screen balance line and the screen boundary line, and a game corresponding to the game target is in a running state;
and the control moving module 30 is configured to, in the preset bounce mode, move the game target to a middle area surrounded by the screen balance lines if the game target is in a motion state.
Optionally, the apparatus for controlling the movement of the game object further includes:
the position acquisition module is used for acquiring the positions of all screen balance lines if the game target is in a static state in the preset jumping mode;
the target screen balance line determining module is used for determining a target screen balance line which is closest to the current position in all the screen balance lines according to the current position and the positions of all the screen balance lines;
and the first moving module is used for moving the game target to the target screen balance line.
Optionally, the apparatus for controlling the movement of the game object further includes:
the central position acquisition module is used for acquiring the central position of the game target;
the step of moving the game target onto the target screen balance line comprises:
a second moving module for moving the center position to the target screen balance line.
Optionally, the position obtaining module 10 includes:
the size information acquisition unit is used for acquiring size information of the game target and determining a first width according to the target length and the target width in the size information, wherein the difference between the first width and the target width is equal to a first preset value;
and the screen balance line determining unit is used for determining a screen balance line according to the screen boundary line and the first width, wherein the distance between the screen balance line and the screen boundary line is equal to the first width.
Optionally, the control movement module 30 includes:
a line pixel point sum obtaining unit, configured to obtain a length of the screen boundary line if the game target is in a motion state, and use a product of the length of the screen boundary line and a preset ratio as a movement distance;
and the circulating unit is used for moving the game target according to the moving distance, acquiring the edge position of the game target after moving, and returning to the step of moving the game target according to the moving distance until the edge position belongs to the middle area if the edge position belongs to the boundary area.
Optionally, the apparatus for controlling the movement of the game object further includes:
the game picture acquisition module is used for acquiring a game picture corresponding to the game target if the current position is located in a middle area surrounded by the screen balance lines;
a moving track obtaining module, configured to obtain a moving track of the game target in the game screen and a terminal point of the moving track if the game target is in a motion state;
the game picture moving module is used for moving the game picture if the moving track passes through a boundary area between the screen balance line and the screen boundary line so as to enable the end point of the moving track to fall in the boundary area;
and the current position updating module is used for returning to the step of acquiring the current position of the game target and updating the current position after the game target finishes moving along the moving track.
Optionally, the control movement module 30 further includes:
a motion track obtaining unit, configured to obtain a motion track of the game target and a terminal point of the motion track if the game target is in a motion state;
the game ending unit is used for moving the game picture, and ending the game corresponding to the game target if the end point of the motion trail falls in the boundary area after the game picture is moved;
and the third moving unit is used for moving the game target to a middle area defined by the screen balance line by moving the game picture if the terminal point of the motion trail passes through the middle area in the moving process of the game picture.
In addition, an embodiment of the present invention further provides a readable storage medium, where a control program of game object movement is stored, and when executed by a processor, the control program of game object movement implements the operations in the control method of game object movement provided in the foregoing embodiment.
The method executed by each program module can refer to each embodiment of the method of the present invention, and is not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be substantially or partially embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method for controlling the movement of a game object according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1.一种游戏目标移动的控制方法,其特征在于,所述游戏目标移动的控制方法包括以下步骤:1. a control method of game object movement, is characterized in that, the control method of described game object movement comprises the following steps: 接收位置检测指令,获取所述位置检测指令对应的屏幕边界线和游戏目标,并根据所述游戏目标和所述屏幕边界线,确定屏幕平衡线;Receive the position detection instruction, obtain the screen boundary line and the game object corresponding to the position detection instruction, and determine the screen balance line according to the game object and the screen boundary line; 若所述游戏目标的当前位置位于所述屏幕平衡线与所述屏幕边界线之间的边界区域,且所述游戏目标对应的游戏处于运行状态,则启动预设跳动模式;If the current position of the game object is located in the boundary area between the screen balance line and the screen boundary line, and the game corresponding to the game object is in a running state, the preset jump mode is activated; 在所述预设跳动模式下,若所述游戏目标处于运动状态,则将所述游戏目标移动到所述屏幕平衡线围成的中间区域。In the preset jumping mode, if the game object is in a motion state, the game object is moved to the middle area enclosed by the screen balance line. 2.如权利要求1所述的游戏目标移动的控制方法,其特征在于,所述若所述游戏目标的当前位置位于所述屏幕平衡线与所述屏幕边界线之间的边界区域,且所述游戏目标对应的游戏处于运行状态,则启动预设跳动模式的步骤之后包括:2 . The method for controlling the movement of a game object according to claim 1 , wherein, if the current position of the game object is located in the boundary area between the screen balance line and the screen boundary line, and the If the game corresponding to the game objective is in the running state, the steps of starting the preset jump mode include: 在所述预设跳动模式下,若所述游戏目标处于静止状态,则获取所有屏幕平衡线的位置;In the preset beating mode, if the game object is in a static state, obtain the positions of all screen balance lines; 根据所述当前位置和所有屏幕平衡线的位置,确定所有屏幕平衡线中距离所述当前位置最近的目标屏幕平衡线;According to the current position and the positions of all screen balance lines, determine the target screen balance line closest to the current position among all screen balance lines; 将所述游戏目标移动到所述目标屏幕平衡线上。Move the game object onto the target screen balance line. 3.如权利要求2所述的游戏目标移动的控制方法,其特征在于,所述根据所述当前位置和所有屏幕平衡线的位置,确定所有屏幕平衡线中距离所述当前位置最近的目标屏幕平衡线的步骤之后,包括:3. The control method for game object movement as claimed in claim 2, wherein, according to the current position and the positions of all screen balance lines, determine the target screen closest to the current position in all screen balance lines After the steps to balance the line, include: 获取所述游戏目标的中心位置;obtain the center position of the game object; 所述将所述游戏目标移动到所述目标屏幕平衡线上的步骤包括:The step of moving the game object to the target screen balance line includes: 将所述中心位置移动到所述目标屏幕平衡线。Move the center position to the target screen balance line. 4.如权利要求1所述的游戏目标移动的控制方法,其特征在于,所述根据所述游戏目标和所述屏幕边界线,确定屏幕平衡线的步骤包括:4. The method for controlling the movement of a game object according to claim 1, wherein the step of determining a screen balance line according to the game object and the screen boundary line comprises: 获取所述游戏目标的尺寸信息,并根据所述尺寸信息中的目标长度和目标宽度,确定第一宽度,其中所述第一宽度与所述目标宽度的差等于第一预设值;Acquiring size information of the game object, and determining a first width according to the target length and target width in the size information, wherein the difference between the first width and the target width is equal to a first preset value; 根据所述屏幕边界线和所述第一宽度,确定屏幕平衡线,其中,所述屏幕平衡线与所述屏幕边界线的距离等于所述第一宽度。A screen balance line is determined according to the screen boundary line and the first width, wherein the distance between the screen balance line and the screen boundary line is equal to the first width. 5.如权利要求1所述的游戏目标移动的控制方法,其特征在于,所述若所述游戏目标处于运动状态,则将所述游戏目标移动到所述屏幕平衡线围成的中间区域的步骤包括:5 . The method for controlling the movement of a game object according to claim 1 , wherein if the game object is in a motion state, the game object is moved to a middle area surrounded by the balance line of the screen. 6 . Steps include: 若所述游戏目标处于运动状态,则获取所述屏幕边界线的长度,并将所述屏幕边界线的长度与预设比例的乘积作为移动距离;If the game object is in motion, obtain the length of the screen boundary line, and use the product of the length of the screen boundary line and the preset ratio as the moving distance; 将所述游戏目标按所述移动距离进行移动,并在移动后获取所述游戏目标的边缘位置,若所述边缘位置属于所述边界区域,则返回将所述游戏目标按所述移动距离进行移动的步骤,直至所述边缘位置属于中间区域。Move the game object according to the moving distance, and obtain the edge position of the game object after moving, if the edge position belongs to the boundary area, return to move the game object according to the moving distance The steps of moving until the edge position belongs to the middle area. 6.如权利要求1所述的游戏目标移动的控制方法,其特征在于,所述根据所述游戏目标和所述屏幕边界线,确定屏幕平衡线的步骤之后,包括:6. The method for controlling the movement of a game object according to claim 1, wherein after the step of determining the screen balance line according to the game object and the screen boundary line, the method comprises: 若所述当前位置位于所述屏幕平衡线围成的中间区域,则获取所述游戏目标对应的游戏画面;If the current position is located in the middle area surrounded by the screen balance line, acquiring the game screen corresponding to the game object; 若所述游戏目标处于运动状态,则获取所述游戏目标在所述游戏画面中的移动轨迹,以及所述移动轨迹的终点;If the game object is in a motion state, acquiring the movement track of the game object in the game screen and the end point of the movement track; 若所述移动轨迹经过所述屏幕平衡线与所述屏幕边界线之间的边界区域,则移动所述游戏画面,以使所述移动轨迹的终点落在所述边界区域;If the movement trajectory passes through the boundary area between the screen balance line and the screen boundary line, move the game screen so that the end point of the movement trajectory falls on the boundary area; 当所述游戏目标沿所述移动轨迹移动完成后,返回获取游戏目标的当前位置的步骤,并更新所述当前位置。After the game object moves along the movement track, return to the step of acquiring the current position of the game object, and update the current position. 7.如权利要求6所述的游戏目标移动的控制方法,其特征在于,所述若所述游戏目标处于运动状态,则将所述游戏目标移动到所述屏幕平衡线围成的中间区域的步骤包括:7 . The method for controlling the movement of a game object according to claim 6 , wherein if the game object is in a motion state, the game object is moved to a middle area surrounded by the balance line of the screen. 8 . Steps include: 若所述游戏目标处于运动状态,则获取所述游戏目标的运动轨迹,以及所述运动轨迹的终点;If the game object is in a motion state, acquiring the motion track of the game object and the end point of the motion track; 移动所述游戏画面,若所述游戏画面移动完成后,所述运动轨迹的终点落在所述边界区域,则结束所述游戏目标对应的游戏;Moving the game screen, if the end point of the motion track falls in the boundary area after the game screen is moved, the game corresponding to the game target is ended; 若在所述游戏画面移动过程中,所述运动轨迹的终点经过所述屏幕平衡线围成的中间区域,则通过移动所述游戏画面,将所述游戏目标移动到所述中间区域。If during the movement of the game screen, the end point of the motion track passes through the middle area enclosed by the screen balance line, the game object is moved to the middle area by moving the game screen. 8.一种游戏目标移动的控制装置,其特征在于,所述游戏目标移动的控制装置包括:8. A control device for moving a game object, wherein the control device for moving the game object comprises: 位置获取模块,用于接收位置检测指令,获取所述位置检测指令对应的屏幕边界线和游戏目标,并根据所述游戏目标和所述屏幕边界线,确定屏幕平衡线;a position acquisition module, configured to receive a position detection instruction, acquire a screen boundary line and a game target corresponding to the position detection instruction, and determine a screen balance line according to the game target and the screen boundary line; 跳动模式启动模块,用于若所述游戏目标的当前位置位于所述屏幕平衡线与所述屏幕边界线之间的边界区域,且所述游戏目标对应的游戏处于运行状态,则启动预设跳动模式;A jump mode startup module, configured to start a preset jump if the current position of the game object is located in the boundary area between the screen balance line and the screen boundary line, and the game corresponding to the game object is in a running state model; 控制移动模块,用于在所述预设跳动模式下,若所述游戏目标处于运动状态,则将所述游戏目标移动到所述屏幕平衡线围成的中间区域。The control movement module is configured to move the game object to a middle area surrounded by the balance line of the screen if the game object is in a motion state in the preset beating mode. 9.一种游戏目标移动的控制设备,其特征在于,所述游戏目标移动的控制设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的游戏目标移动的控制程序,所述游戏目标移动的控制程序被所述处理器执行时实现如权利要求1至7中任一项所述的游戏目标移动的控制方法的步骤。9. A control device for the movement of a game object, wherein the control device for the movement of the game object comprises: a memory, a processor, and a control device for the movement of the game object stored on the memory and running on the processor. A control program that implements the steps of the method for controlling the movement of the game object according to any one of claims 1 to 7 when the control program for the movement of the game object is executed by the processor. 10.一种可读存储介质,其特征在于,所述可读存储介质上存储有游戏目标移动的控制程序,所述游戏目标移动的控制程序被处理器执行时实现如权利要求1至7中任一项所述的游戏目标移动的控制方法的步骤。10. A readable storage medium, characterized in that a control program for movement of a game object is stored on the readable storage medium, and when the control program for movement of the game object is executed by a processor, it is implemented as in claims 1 to 7 The steps of any one of the control methods for the movement of game objects.
CN202011614092.4A 2020-12-29 2020-12-29 Control method, device, equipment and readable storage medium for game target movement Active CN112587923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011614092.4A CN112587923B (en) 2020-12-29 2020-12-29 Control method, device, equipment and readable storage medium for game target movement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011614092.4A CN112587923B (en) 2020-12-29 2020-12-29 Control method, device, equipment and readable storage medium for game target movement

Publications (2)

Publication Number Publication Date
CN112587923A true CN112587923A (en) 2021-04-02
CN112587923B CN112587923B (en) 2024-03-12

Family

ID=75206402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011614092.4A Active CN112587923B (en) 2020-12-29 2020-12-29 Control method, device, equipment and readable storage medium for game target movement

Country Status (1)

Country Link
CN (1) CN112587923B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007222310A (en) * 2006-02-22 2007-09-06 Square Enix Co Ltd Game device, field boundary display method, program, and recording medium
CN101534913A (en) * 2006-12-22 2009-09-16 科乐美数码娱乐株式会社 Game device, method of controlling game device, and information recording medium
US20100099469A1 (en) * 2007-03-13 2010-04-22 Konami Digital Entertainment Co. Ltd Game device, control method of game device and information storage medium
US20130058019A1 (en) * 2011-09-06 2013-03-07 Lg Electronics Inc. Mobile terminal and method for providing user interface thereof
US20140302900A1 (en) * 2011-12-29 2014-10-09 Neowiz Games Corporation Method and apparatus for manipulating character of soccer game
CN105813700A (en) * 2013-12-11 2016-07-27 科乐美数码娱乐株式会社 Game program, game system, and game method
CN106951178A (en) * 2017-05-11 2017-07-14 天津卓越互娱科技有限公司 A kind of method and system for controlling game role to move
CN107754308A (en) * 2017-09-28 2018-03-06 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
CN108159701A (en) * 2017-12-27 2018-06-15 网易(杭州)网络有限公司 Method of adjustment, device, processor and the terminal of game role display location
CN108881606A (en) * 2018-04-24 2018-11-23 努比亚技术有限公司 Interface display methods, terminal and the computer readable storage medium of terminal
CN109675307A (en) * 2019-01-10 2019-04-26 网易(杭州)网络有限公司 Display control method, device, storage medium, processor and terminal in game
US20190134499A1 (en) * 2017-11-07 2019-05-09 Nhn Entertainment Corp. Apparatus and method for operating mobile game
CN110064192A (en) * 2019-04-08 2019-07-30 努比亚技术有限公司 Interface control method, mobile terminal and computer readable storage medium
CN110448904A (en) * 2018-11-13 2019-11-15 网易(杭州)网络有限公司 The control method and device at game visual angle, storage medium, electronic device
CN111714886A (en) * 2020-07-24 2020-09-29 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium
CN112090073A (en) * 2020-09-27 2020-12-18 网易(杭州)网络有限公司 Game display method and device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007222310A (en) * 2006-02-22 2007-09-06 Square Enix Co Ltd Game device, field boundary display method, program, and recording medium
CN101534913A (en) * 2006-12-22 2009-09-16 科乐美数码娱乐株式会社 Game device, method of controlling game device, and information recording medium
US20100113147A1 (en) * 2006-12-22 2010-05-06 Akiyoshi Chosogabe Game device, method of controlling game device, and information recording medium
US20100099469A1 (en) * 2007-03-13 2010-04-22 Konami Digital Entertainment Co. Ltd Game device, control method of game device and information storage medium
US20130058019A1 (en) * 2011-09-06 2013-03-07 Lg Electronics Inc. Mobile terminal and method for providing user interface thereof
US20140302900A1 (en) * 2011-12-29 2014-10-09 Neowiz Games Corporation Method and apparatus for manipulating character of soccer game
CN105813700A (en) * 2013-12-11 2016-07-27 科乐美数码娱乐株式会社 Game program, game system, and game method
CN106951178A (en) * 2017-05-11 2017-07-14 天津卓越互娱科技有限公司 A kind of method and system for controlling game role to move
CN107754308A (en) * 2017-09-28 2018-03-06 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium
US20190091570A1 (en) * 2017-09-28 2019-03-28 Netease (Hangzhou) Network Co.,Ltd. Information processing method, apparatus, electronic device and storage medium
US20190134499A1 (en) * 2017-11-07 2019-05-09 Nhn Entertainment Corp. Apparatus and method for operating mobile game
CN108159701A (en) * 2017-12-27 2018-06-15 网易(杭州)网络有限公司 Method of adjustment, device, processor and the terminal of game role display location
CN108881606A (en) * 2018-04-24 2018-11-23 努比亚技术有限公司 Interface display methods, terminal and the computer readable storage medium of terminal
CN110448904A (en) * 2018-11-13 2019-11-15 网易(杭州)网络有限公司 The control method and device at game visual angle, storage medium, electronic device
CN109675307A (en) * 2019-01-10 2019-04-26 网易(杭州)网络有限公司 Display control method, device, storage medium, processor and terminal in game
CN110064192A (en) * 2019-04-08 2019-07-30 努比亚技术有限公司 Interface control method, mobile terminal and computer readable storage medium
CN111714886A (en) * 2020-07-24 2020-09-29 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium
CN112090073A (en) * 2020-09-27 2020-12-18 网易(杭州)网络有限公司 Game display method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
荆涛: "应用SpriteCraft游戏引擎开发――太空船与离子弹", 《电脑编程技巧与维护》, no. 11, pages 65 - 70 *

Also Published As

Publication number Publication date
CN112587923B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN110215690B (en) Visual angle switching method and device in game scene and electronic equipment
CN112509524B (en) Ink screen quick refreshing method, device, equipment and computer readable storage medium
CN112351347B (en) Screen focus moving display method, display device and storage medium
CN110827770B (en) Regional backlight brightness adjusting method and device for display image and storage medium
US20130207892A1 (en) Control method and apparatus of electronic device using control device
CN107957841B (en) Rolling screen capture method and device
CN104536661A (en) Terminal screen shot method
CN112540696A (en) Screen touch control management method, intelligent terminal, device and readable storage medium
CN112929860A (en) Bluetooth connection method and device and electronic equipment
CN109947312A (en) A kind of control method and terminal device
CN112785697B (en) Game animation editing method, device, equipment and computer readable storage medium
CN110251941B (en) Game picture self-adaption method and device, electronic equipment and storage medium
CN105094576B (en) Application scenarios switching method and apparatus
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
CN111316210B (en) Control method for preventing false touch of terminal, mobile terminal and computer readable storage medium
CN112316410A (en) Control method, system, equipment and readable storage medium based on television game
CN111010528A (en) Video call method, mobile terminal and computer readable storage medium
CN112587923A (en) Method, device and equipment for controlling movement of game target and readable storage medium
CN111773693B (en) Method and device for processing field of view in game and electronic equipment
US20170168694A1 (en) Method and electronic device for adjusting sequence of shortcut switches in control center
CN112882768A (en) Progress bar loading method, device and equipment and computer readable storage medium
US20250068252A1 (en) Virtual reality-based control method and apparatus, and electronic device
CN118092749A (en) Touch area determination method, device, electronic device and storage medium
CN115738264B (en) Virtual object operation control method, device and electronic device
CN111147777A (en) Intelligent terminal voice interaction method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant