Method and apparatus for controlling virtual camera in game
AssigneeNetease (Hangzhou) Network Co., Ltd.
InventorsWenchao Zhou, Kun Shao
Life of this patent
Estimating the term…
Abstract
A method and apparatus for controlling a virtual camera in a game are disclosed. In the embodiments of the present disclosure, a virtual camera is controlled to shift in response to a first touch operation for a visual field control area, the virtual camera is controlled, in response to the ending of the first touch operation, to return from a second position to a first position, a game operation instruction is received during the returning process, and a corresponding action is performed in response to the game operation instruction.
Claims18
A method for controlling a virtual camera in a game, applied to a touch terminal rendered with a graphical user interface (GUI), contents rendered on the GUI comprising a game scene captured by the virtual camera, the game scene at least comprising a virtual character, the method comprising:
- associating the virtual camera with a position of a game scene where the virtual character is located to control a movement of the virtual camera according to a change of the position of the virtual character;
- providing a visual field control area on the GUI, in response to a first touch operation on the visual field control area, controlling the virtual camera to shift from a first position to a second position according to the first touch operation and
- in response to the ending of the first touch operation, controlling the virtual camera to restore from the second position to the first position, receiving a game operation instruction during a process of restoring the virtual camera from the second position to the first position, and performing an action corresponding to the game operation instruction;
- wherein the process of restoring the virtual camera from the second position to the first position comprises:
- detecting whether the virtual character orients towards the second position;
- when the virtual character orients towards the second position, controlling the virtual camera to move from the second position to the first position in a speed descending manner;
- and when the virtual character does not orient towards the second position, controlling the virtual camera to move from the second position to the first position in a speed ascending manner.
A non-transitory storage medium, in which a program is stored, wherein the program is run to control a device where the non-transitory storage medium is located to perform the following method:
- associating the virtual camera with a position of a game scene where the virtual character is located to control a movement of the virtual camera according to a change of the position of the virtual character;
- providing a visual field control area on the GUI, in response to a first touch operation on the visual field control area, controlling the virtual camera to shift from a first position to a second position according to the first touch operation and
- in response to the ending of the first touch operation, controlling the virtual camera to restore from the second position to the first position, receiving a game operation instruction during a process of restoring the virtual camera from the second position to the first position, and performing an action corresponding to the game operation instruction;
- wherein the program is run to control the device where the non-transitory storage medium is located to also perform the following method:
- detecting whether the virtual character orients towards the second position;
- when the virtual character orients towards the second position, controlling the virtual camera to move from the second position to the first position in a speed descending manner;
- and when the virtual character does not orient towards the second position, controlling the virtual camera to move from the second position to the first position in a speed ascending manner.
An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the at least one executable instruction, and the at least one executable instruction comprises:
- associating a virtual camera with a position of a game scene where the virtual character is located to control a movement of the virtual camera according to a change of the position of the virtual character;
- providing a visual field control area on the GUI, and in response to a first touch operation on the visual field control area, controlling the virtual camera to shift from a first position to a second position according to the first touch operation and
- in response to the ending of the first touch operation, controlling the virtual camera to restore from the second position to the first position, receiving a game operation instruction during a process of restoring the virtual camera from the second position to the first position, and performing an action corresponding to the game operation instruction;
- wherein the process of restoring the virtual camera from the second position to the first position comprises:
- detecting whether the virtual character orients towards the second position;
- when the virtual character orients towards the second position, controlling the virtual camera to move from the second position to the first position in a speed descending manner;
- and when the virtual character does not orient towards the second position, controlling the virtual camera to move from the second position to the first position in a speed ascending manner.
Dependencies are inferred from the claim text.