CN112587923B - Game target movement control method, device, equipment and readable storage medium - Google Patents

Game target movement control method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112587923B
CN112587923B CN202011614092.4A CN202011614092A CN112587923B CN 112587923 B CN112587923 B CN 112587923B CN 202011614092 A CN202011614092 A CN 202011614092A CN 112587923 B CN112587923 B CN 112587923B
Authority
CN
China
Prior art keywords
game
target
screen
game target
moving
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.)
Active
Application number
CN202011614092.4A
Other languages
Chinese (zh)
Other versions
CN112587923A (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

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

The invention discloses a control method, a device, equipment and a readable storage medium for game target movement, wherein the method comprises the following steps: 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 surrounded by the screen balance line. The invention solves the problem that the game target can jump out of the display range of the screen to influence the game experience of the user.

Description

Game target movement control method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of terminal control, and in particular, to a method, apparatus, device, and readable storage medium for controlling movement of a game target.
Background
With the development of smart large screens, for example, smart televisions, more and more games can be carried on the existing smart televisions, however, when some games in the smart televisions have the problem that game objects jump out of the display range of the screen, the problem that the game objects are not fully displayed is caused, and the existing method for solving the problem is to automatically adjust game pictures so that the game objects are kept within the display range of the televisions, however, the adjustment of the method is inaccurate and the man-machine interaction is not strong.
Disclosure of Invention
The invention mainly aims to provide a control method, a device, equipment and a readable storage medium for game target movement, which aim to solve the technical problem that a game target is not fully displayed because the game target jumps out of a screen display range.
In addition, in order to achieve the above object, the present invention also provides a control method of game target movement, the control method of game target movement comprising 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 surrounded by the screen balance line.
Optionally, 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, the step of starting the preset jump mode includes:
under the preset jumping mode, if the game target is in a static state, the positions of all screen balance lines are obtained;
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;
and moving the game target to the target screen balance line.
Optionally, after the step of determining the target screen balance line closest to the current position from the current position and the positions of all the 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 includes:
and 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 target is in a motion state, the step of moving the game target 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 the game target is moved, 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.
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 the middle area surrounded by the screen balance line, a game picture corresponding to the game target is obtained;
if the game target is in a motion state, acquiring a moving track of the game target in the game picture and an end point of the moving track;
if the moving track passes through the boundary area between the screen balance line and the screen boundary line, moving the game picture so that the end point of the moving track falls in the boundary area;
and returning to the step of acquiring the current position of the game target after the game target moves along the moving track, and updating the current position.
Optionally, if the game target is in a motion state, the step of moving the game target 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 an end point of the motion track;
moving the game picture, and ending the game corresponding to the game target if the end point of the motion track falls in the boundary area after the game picture is moved;
if the end point of the motion track passes through the middle area surrounded by the screen balance line in the moving process of the game picture, the game target is moved to the middle area by moving the game picture.
In addition, in order to achieve the above object, the present invention also provides a control device for game target movement, the control device for game target movement 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 jump mode starting module is used for starting a preset jump 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 the 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 surrounded by the screen balance line if the game target is in a motion state in the preset jumping mode.
In addition, in order to achieve the above object, the present invention also provides a control apparatus for game target movement, the control apparatus for game target movement including: the game target movement control device comprises a memory, a processor and a game target movement control program stored in the memory and capable of running on the processor, wherein the game target movement control program realizes the steps of the game target movement control method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a readable storage medium having stored thereon a control program for game target movement, which when executed by a processor, implements the steps of the control method for game target movement as described above.
The embodiment of the invention provides a method, a device and equipment for controlling game target movement and a readable storage medium. In the embodiment of the invention, when the control program for moving the game target receives the position detection instruction, the screen boundary line and the game target corresponding to the position detection instruction are obtained, and then the screen balance line is determined according to the game target and the screen boundary line.
Drawings
FIG. 1 is a schematic hardware configuration diagram of an implementation manner of a control device for game target movement according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a method for controlling movement of a game object according to the present invention;
FIG. 3 is a diagram illustrating a game target movement according to a first embodiment of the control method of game target movement of the present invention.
FIG. 4 is a flowchart of a control method for game target movement according to a second embodiment of the present invention;
FIG. 5 is a functional block diagram of an embodiment of a control device for game object movement according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The control terminal (also called terminal, equipment or terminal equipment) for the movement of the game target in the embodiment of the invention can be a PC (personal computer), and can also be mobile terminal equipment with display functions such as a smart phone, a tablet personal computer, a smart television, a portable computer and the like.
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 the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further 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 stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on. Among other sensors, 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 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile terminal is stationary, and the mobile terminal can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a control program for game target movement may be included in the memory 1005 as one type of readable storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background 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 used to invoke a control program of game target movement stored in the memory 1005, which when executed by the processor, implements the operations in the control method of game target movement provided in the embodiment described below.
Based on the hardware structure of the device, the embodiment of the control method for the game target movement is provided.
Referring to fig. 2, in a first embodiment of a control method of game target movement of the present invention, the control method of game target movement includes:
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 control method for game target movement in this embodiment is applied to a smart tv, and it is known that, when a game in the smart tv runs, the position of the game target in the game needs to be detected, where the game target is a target that can be operated by a game player, that is, a game character, and after receiving the position detection instruction, the control program for game target movement obtains a screen boundary line corresponding to the position detection instruction and the game target, where the screen boundary line is an edge line of a display screen of the smart tv, the game target is a target that can be operated by the game player, and finally, according to the game target and the screen boundary line, a screen balance line is determined, and according to size information and a current position of the game target, the size information of the game target may be specifically a size of the game target displayed on the display screen of the smart tv, in this embodiment, the length and width of a rectangle that just can frame the game target are taken as the size information of the game target, where the length and width may be a distance unit, for example, a centimeter unit, or a pixel unit, for example, how many pixel points the game target occupies, the current position of the game target may be represented by the center position of the rectangle, and the coordinate system of the display screen of the smart television may be taken as the coordinate system, and the coordinate representation of the center position of the game target is determined, where it is understood that the effect of the screen balance line is that the game target jumps out of the warning line of the display area of the smart television, that is, when the game target passes through the screen balance line, it is indicated that the game target has a possibility of jumping out of the display area of the smart television, specifically, the screen balance line is determined such that when the game target is placed between the screen balance line and the screen boundary line, the game target does not hit the screen balance line or the screen boundary line, and a certain distance from the screen balance line or the screen boundary line, it is known that the screen balance line is in front of the screen boundary line in the inner direction with the direction of the screen boundary line toward the center of the screen as the inner direction, and 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 area between the screen balance line and the screen boundary line, and the game corresponding to the game target is in the running state, starting a preset jumping mode.
As can be seen, the current position is the current position of the game target, and the current position may be any point on the game target, so the current position is located in a boundary area 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 which case, if the game in the smart tv is in a running state, a jumping mode is started, specifically, the state of the game of the smart tv in this embodiment includes at least three states, i.e., a closed state, a suspended state, and a running state, and the jumping mode refers to that when the control program for moving the game target is in a preset jumping mode, the game target and the game screen are in a movable state, and because both the game target and the game screen are composed of pixels, the movement of the game target and the game screen is not continuous movement but jumping between the pixels, and therefore, the movable state of the game target and the game screen is called the preset jumping mode.
Step S30, in the preset jumping mode, if the game target is in a motion state, moving the game target to a middle area surrounded by the screen balance line.
It is understood that, in the present embodiment, the movement of the game target may be manually controllable, in the preset jumping mode, if the game target is in a moving state, the game target is moved to an intermediate area surrounded by the screen balance line, and it is understood that in the preset jumping mode, the game target may be in two moving states, one is in a stationary state, and one is in a moving state, and in the case that the game target is in a boundary area and the game target is in a moving state, the game target is most likely to move out of the screen display area of the smart television, and in this case, the control program for moving the game target will move the game target to the intermediate area surrounded by the screen balance line.
Specifically, the step of refining in step S10 includes:
step a1, obtaining 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 a step a2 of 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 is known that the size information of the game target may be represented by information of a rectangle that just can frame the game target, specifically, if the rectangle that just can frame the game target does not move out of the smart tv display screen in the opposite direction of the middle area, the game target will not move out of the smart tv display screen in the opposite direction of the middle area, so as to ensure that the game target will not move out of the smart tv display screen, in this embodiment, the target length refers to the length of the rectangle, the target width refers to the width of the rectangle, and according to the target length and the target width, the first width refers to the width of the border area, as shown in fig. 3, is determined, and it is known that the first width is slightly greater than the target width, that is, the difference between the first width and the target width is equal to the first preset value, the target length is limited to be less than the length of the border line, that is also limited to be less than the border line width of the screen, it is understood that in the existing tv game screen, the length and the width are not longer than the target of the display screen, that is known, the border and the border is equal to the line width of the screen, that is equal to the line width, and the screen is equal to the width of the screen, and the screen is equal to the line width.
Specifically, the steps following step S20 are as follows:
and b1, under 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.
And b3, moving the game target to the target screen balance line.
It is known that, in the preset jumping mode, if the game target is in the boundary area and the game target is in the static state, the control program for moving the game target will move the game target to the screen balance line, i.e. move the game target to the middle of the screen, so as to ensure that the game target is in a safe area that will not move out of the display screen of the smart television. It is known that when the specific direction of the game target is not determined, the number of screen balance lines needs to be acquired, if the number of screen balance lines is 4, the boundary area is composed of four parts of the display screen, namely, up, down, left and right, in this case, the control program for moving the game target will acquire the positions of all the screen balance lines, then determine the target screen balance line closest to the current position of the game target in all the screen balance lines according to the positions of all the screen balance lines and the current position of the game target, and then move the game target to the target screen balance line.
Specifically, the steps following step b2 include:
step c1, obtaining the center position of the game target.
The step of refining in the step b3 comprises the following steps:
and c2, moving the center position to the target screen balance line.
It is known that, in the process of moving the game target onto the target screen balance line, the center position of the game target, that is, the center position of the rectangle just capable of framing the game target, needs to be acquired first, and the center position may not be on the game target, and after the center position of the game target is acquired, the center position is moved onto the target screen balance line, that is, the game target is moved onto the screen balance line.
Specifically, the step of refining in step S30 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 the game target is moved, 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 is in the moving state, the control program for the game object to move acquires the length of the screen boundary line, wherein the length of the screen boundary line refers to the length and the width of the screen boundary line of the display screen of the intelligent television, the length of the screen boundary line can be wide or long, the length of the screen boundary line can be specifically determined according to the movement condition of the game object, if the game object moves up and down, the length of the screen boundary line is rectangular, if the game object moves left and right, the length of the screen boundary line is rectangular, since the rotating screen appears in the market, the length of the screen boundary line is not limited, as shown in fig. 3, the product of the length of the screen boundary line and the preset proportion is taken as the moving distance, the moving distance is calculated, the moving distance of the game object is determined each time, the game object is moved according to the moving distance after the moving distance is obtained, the edge position of the game object is acquired each time, and the moving of the game object is stopped when the edge position belongs to the middle area, namely the whole game object is moved into the middle area.
In this embodiment, 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, and then a screen balance line is determined according to the game target and the screen boundary line.
Further, referring to fig. 3, a second embodiment of the control method of game object movement of the present invention is proposed on the basis of the above-described embodiment of the present invention.
This embodiment is a step subsequent to step S10 in the first embodiment, and differs from the above-described embodiment of the present invention in that:
and S40, if the current position is positioned in the middle area surrounded by the screen balance line, acquiring a game picture corresponding to the game target.
Step S50, if the game target is in a motion state, acquiring a moving track of the game target in the game picture and an end point of the moving track.
Step S60, if the movement track passes through the boundary area between the screen balance line and the screen boundary line, moving the game screen so that the end point of the movement track falls on the boundary area.
Step S70, returning to the step of acquiring the current position of the game target after the game target moves along the movement track, 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 target is obtained, so that the normal running of the game is not affected, that is, only the game target cannot be moved independently, but the game picture is not moved, so that the running of the game is problematic.
Specifically, on the basis of the present embodiment, the step of refining in step S30 includes:
and e1, if the game target is in a motion state, acquiring a motion track of the game target and an end point of the motion track.
And e2, moving the game picture, and ending the game corresponding to the game target if the end point of the motion track falls in the boundary area after the game picture is moved.
And e3, if the end point of the motion track passes through the middle area surrounded 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.
It is known that if the game target is in a motion state, the motion track of the game target and the end point of the motion track are obtained, the game picture is moved after the motion track and the end point of the motion track of the game target are obtained, if the game picture moves to the picture boundary to cause the movement of the game picture to be completed in the process of moving the game picture, and the end point of the motion track falls in the boundary area after the movement of the game picture is completed, the game corresponding to the game target is ended, that is, the game target has moved to the boundary of the game picture, which marks the end of the game, and if the end point of the motion track passes through the middle area surrounded by the screen balance line in the process of moving the game picture, the game target is moved to the middle area through moving the game picture.
In the embodiment, the position of the game target is adjusted by moving the game picture, so that the problem that the game target can jump out of the screen display range to influence the game experience of a user is solved under the condition that the normal running of the game is not influenced.
In addition, referring to fig. 4, an embodiment of the present invention further provides a control device for moving a game target, where the control device for moving a game target includes:
a position obtaining module 10, configured to receive a position detection instruction, obtain 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;
the jumping mode starting module 20 is configured to start 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 the game corresponding to the game target is in a running state;
and the control moving module 30 is configured to move the game target to a middle area surrounded by the screen balance line if the game target is in a motion state in the preset jumping mode.
Optionally, the control device for game target movement 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 under the preset jumping mode;
the target screen balance line determining module is used for 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;
and the first moving module is used for moving the game target to the target screen balance line.
Optionally, the control device for game target movement further includes:
a center position acquisition module for acquiring the center position of the game target;
the step of moving the game target onto the target screen balance line includes:
and the second moving module is used for moving the center position to the target screen balance line.
Optionally, the location acquisition module 10 includes:
a size information obtaining unit, configured to obtain size information of the game target, and determine a first width according to a target length and a target width in the size information, where a 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 controlling mobile 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 take a product of the length of the screen boundary line and a preset ratio as a movement distance;
and the circulation unit is used for moving the game target according to the moving distance, acquiring the edge position of the game target after the game target is moved, 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 control device for game target movement further includes:
the game picture acquisition module is used for acquiring a game picture corresponding to the game target if the current position is positioned in the middle area surrounded by the screen balance line;
the moving track acquisition module is used for acquiring the moving track of the game target in the game picture and the end point of the moving track if the game target is in a motion state;
a game picture moving module, configured to move the game picture so that an end point of the movement track falls in a boundary area between the screen balance line and the screen boundary line if the movement track passes through 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 after the game target moves along the moving track, and updating the current position.
Optionally, the controlling mobile module 30 further includes:
a motion track acquisition unit, configured to acquire a motion track of the game target and an end 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 track falls in the boundary area after the game picture is moved;
and the third moving unit is used for moving the game target to the middle area by moving the game picture if the end point of the motion track passes through the middle area surrounded by the screen balance line in the moving process of the game picture.
In addition, the embodiment of the invention also provides a readable storage medium, wherein the readable storage medium stores a control program for game target movement, and the control program for game target movement realizes the operations in the control method for game target movement provided by the embodiment when being executed by a processor.
The methods performed by the program modules may refer to various embodiments of the methods according to the present invention, and are not described herein.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity/operation/object from another entity/operation/object without necessarily requiring or implying any actual such relationship or order between such entities/operations/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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The apparatus embodiments described above are merely illustrative, in which the units illustrated as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present invention. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the control method for game target movement according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. A control method of game target movement, characterized in that the control method of game target movement comprises 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;
under the preset jumping mode, if the game target is in a motion state, the game target is moved to a middle area surrounded by the screen balance line;
wherein the step of determining a screen balance line according to the game target and the screen boundary line comprises:
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.
2. The method for controlling movement of a game target according to claim 1, wherein the step of starting the preset jump 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 the game corresponding to the game target is in a running state comprises:
under the preset jumping mode, if the game target is in a static state, the positions of all screen balance lines are obtained;
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;
and moving the game target to the target screen balance line.
3. The method for controlling movement of a game target according to claim 2, wherein after the step of determining a target screen balance line closest to the current position among all screen balance lines based on the current position and the positions of all screen balance lines, it comprises:
acquiring the central position of the game target;
the step of moving the game target onto the target screen balance line includes:
and moving the center position to the target screen balance line.
4. The method for controlling movement of a game target according to claim 1, wherein the step of moving the game target to an intermediate area surrounded by the screen balance line if the game target is in a motion state comprises:
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 the game target is moved, 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.
5. The method for controlling movement of a game target according to claim 1, wherein after the step of determining a screen balance line based on the game target and the screen boundary line, comprising:
if the current position is located in the middle area surrounded by the screen balance line, a game picture corresponding to the game target is obtained;
if the game target is in a motion state, acquiring a moving track of the game target in the game picture and an end point of the moving track;
if the moving track passes through the boundary area between the screen balance line and the screen boundary line, moving the game picture so that the end point of the moving track falls in the boundary area;
and returning to the step of acquiring the current position of the game target after the game target moves along the moving track, and updating the current position.
6. The method of claim 5, wherein the step of moving the game target to an intermediate area surrounded by the screen balance line if the game target is in motion comprises:
if the game target is in a motion state, acquiring a motion track of the game target and an end point of the motion track;
moving the game picture, and ending the game corresponding to the game target if the end point of the motion track falls in the boundary area after the game picture is moved;
if the end point of the motion track passes through the middle area surrounded by the screen balance line in the moving process of the game picture, the game target is moved to the middle area by moving the game picture.
7. A control device for game target movement, characterized in that the control device for game target movement comprises:
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 jump mode starting module is used for starting a preset jump 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 the game corresponding to the game target is in a running state;
the control moving module is used for moving the game target to a middle area surrounded by the screen balance line if the game target is in a motion state in the preset jumping mode;
the position acquisition module is further used for acquiring the 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 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.
8. A control apparatus for game target movement, characterized in that the control apparatus for game target movement comprises: a memory, a processor and a control program for game object movement stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the control method for game object movement according to any one of claims 1 to 6.
9. A readable storage medium, wherein a control program for game target movement is stored on the readable storage medium, which when executed by a processor, implements the steps of the control method for game target movement according to any one of claims 1 to 6.
CN202011614092.4A 2020-12-29 2020-12-29 Game target movement control method, device, equipment and readable storage medium Active CN112587923B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN112587923A CN112587923A (en) 2021-04-02
CN112587923B true 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 Game target movement control method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112587923B (en)

Citations (12)

* 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 apparatus, 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
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
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4399472B2 (en) * 2007-03-13 2010-01-13 株式会社コナミデジタルエンタテインメント GAME DEVICE, GAME DEVICE CONTROL METHOD, AND PROGRAM
KR101864618B1 (en) * 2011-09-06 2018-06-07 엘지전자 주식회사 Mobile terminal and method for providing user interface thereof
KR101204244B1 (en) * 2011-12-29 2012-12-24 (주)네오위즈게임즈 Method and apparatus for controlling character in soccer game
KR102049059B1 (en) * 2017-11-07 2020-01-08 엔에이치엔 주식회사 Apparatus and mehtod for operating mobile game

Patent Citations (12)

* 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 apparatus, 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
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
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游戏引擎开发――太空船与离子弹;荆涛;《电脑编程技巧与维护》(第11期);65-70 *

Also Published As

Publication number Publication date
CN112587923A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN110215690B (en) Visual angle switching method and device in game scene and electronic equipment
CN108091288B (en) Display screen uniformity testing method, terminal and computer readable storage medium
CN112509524A (en) Ink screen quick refreshing method, device, equipment and computer readable storage medium
US8953048B2 (en) Information processing apparatus and control method thereof
CN108989678B (en) Image processing method and mobile terminal
US9654743B2 (en) Electronic device, information providing system, control method, and control program
KR20180005528A (en) Display apparatus and method for image processing
CN112351347B (en) Screen focus moving display method, display device and storage medium
US20160246366A1 (en) Control method and control apparatus for electronic equipment and electronic equipment
CN107957841B (en) Rolling screen capture method and device
CN114450969A (en) Video screenshot method, terminal and computer-readable storage medium
CN110753266A (en) Video definition adjusting method and device and storage medium
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
CN112394806A (en) User interface display method and device, electronic equipment and storage medium
CN110827770B (en) Regional backlight brightness adjusting method and device for display image and storage medium
CN114463358A (en) Screen projection display method and device, electronic equipment and readable storage medium
CN112587923B (en) Game target movement control method, device, equipment and readable storage medium
CN108334349B (en) Mobile terminal, display image switching method thereof and computer-readable storage medium
CN112905280A (en) Page display method, device, equipment and storage medium
CN112948045A (en) Picture display method, device, equipment and computer readable storage medium
CN107291468B (en) Method for playing power-on/power-off animation, terminal and computer readable storage medium
CN112333537A (en) Video integration method and device and computer readable storage medium
CN111338728A (en) Screen capturing method and device and computer readable storage medium
CN103959204A (en) Information processing device, information processing method, and recording medium
CN112788425A (en) Dynamic area display method, device, equipment and computer readable 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