CN109692477A - A kind of method and apparatus that interface is shown - Google Patents

A kind of method and apparatus that interface is shown Download PDF

Info

Publication number
CN109692477A
CN109692477A CN201910105351.1A CN201910105351A CN109692477A CN 109692477 A CN109692477 A CN 109692477A CN 201910105351 A CN201910105351 A CN 201910105351A CN 109692477 A CN109692477 A CN 109692477A
Authority
CN
China
Prior art keywords
bend
control
virtual role
reminds
virtual
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
CN201910105351.1A
Other languages
Chinese (zh)
Other versions
CN109692477B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910105351.1A priority Critical patent/CN109692477B/en
Publication of CN109692477A publication Critical patent/CN109692477A/en
Application granted granted Critical
Publication of CN109692477B publication Critical patent/CN109692477B/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/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/537Controlling 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 using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5375Controlling 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 using indicators, e.g. showing the condition of a game character on screen for graphically or textually suggesting an action, e.g. by displaying an arrow indicating a turn in a driving game

Landscapes

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

Abstract

The embodiment of the invention provides a kind of method and apparatus that interface is shown, which comprises whether detection currently meets bend alert condition;If so, showing that bend reminds control in the preset range of virtual rocking bar, bend reminds control for prompting bend nearest apart from virtual role in scene of game.Using the above method, the road information for the bend that user can remind control understanding that will enter based on the bend of display, control the movement of virtual role in game, such as suitable opportunity control virtual role reduction of speed, enter it is curved, go out it is curved, avoid user that from can only carrying out steering judgement based on abstract small map, and it is easy to operate, effectively increase the turning success rate and the coherent experience of game of user.

Description

A kind of method and apparatus that interface is shown
Technical field
The present invention relates to game technical fields, in particular to a kind of method and apparatus that interface is shown.
Background technique
With the development of smart machine, mobile terminal has become a part indispensable in people's life, in addition to reality Now accessible call whenever and wherever possible, mobile terminal can also run various types of games application program, allow users to based on mobile whole End freely operates video games.
Currently, user can only be predicted when carrying out racing game operation by mobile terminal by checking small map Racing track trend, and steering operation is carried out, using aforesaid way, since the direction information that small map is showed is not used plus new intuitively Family experience is deficient, causes it that can not accurately hold steering operation opportunity, eventually reduces user experience.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind The method and apparatus that a kind of interface to solve the above problems is shown.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of methods that interface is shown, by movement Software application is executed on the processor of terminal and is rendered on the touch control display of the mobile terminal obtains graphic user interface, A scene of game, a virtual role and a virtual rocking bar are included at least in the graphic user interface, the virtual rocking bar is used In movement of the control virtual role in the scene of game, which comprises
Whether detection currently meets bend alert condition;
If so, showing that bend reminds control in the preset range of the virtual rocking bar, the bend reminds control to use The nearest bend of virtual role described in distance in the prompt scene of game.
Preferably, the bend alert condition includes:
The bending angle of the bend is greater than or equal to predetermined angle;And/or the virtual role is apart from the bend Distance is less than or equal to pre-determined distance.
Preferably, it is arrowhead form that the bend, which reminds control,;The bend reminds the arrow direction of control according to The direction of bend determines;The width and bending angle that the bend reminds control are respectively according to the width and bending angle of the bend Degree determines.
Preferably, the method also includes:
The bend, which is controlled, according to the distance between the virtual role and the nearest bend reminds the transparent of control Degree.
Preferably, described that the bend prompting is controlled according to the distance between the virtual role and the nearest bend The transparency of control, comprising:
Control is reminded as the diminution of the distance between the virtual role and the nearest bend controls the bend Transparency from large to small, when the virtual role and nearest the distance between the bend reach preset minimum safe distance From when, it is zero that the bend, which reminds the transparency of control,.
Preferably, the method also includes:
When detecting that the virtual role initially enters the bend, is reminded in the bend and show that driving mentions on control Awake control, the assisting automobile driver control is for prompting the virtual role in the driving situation of the bend, the driving situation Including steering position and direction.
Preferably, the assisting automobile driver control is arrowhead form, and the assisting automobile driver control is inclined according to the virtual role The amplitude of center line from the bend generates.
Preferably, the method also includes:
Judge whether the assisting automobile driver control exceeds the safe range that the bend reminds control;
If so, setting the first pre-set color for the assisting automobile driver control;
If it is not, then setting the second pre-set color for the assisting automobile driver control.
Preferably, when the assisting automobile driver control reminds the safe range of control beyond the bend, the method is also Include:
Control the mobile terminal vibration.
Preferably, the safe range is the range determined according to the turn width.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of devices that interface is shown, by described Software application is executed where device on the processor of mobile terminal and is rendered on the touch control display of the mobile terminal and is obtained Graphic user interface includes at least a scene of game, a virtual role and a virtual rocking bar, institute in the graphic user interface Virtual rocking bar is stated for controlling movement of the virtual role in the scene of game, described device includes:
Whether detection module currently meets bend alert condition for detecting;
Display module, for virtually being shaken described when the detection module detects and currently meets bend alert condition Display bend reminds control in the preset range of bar, and the bend reminds control for prompting in the scene of game described in distance The nearest bend of virtual role.
Preferably, the bend alert condition includes:
The bending angle of the bend is greater than or equal to predetermined angle;And/or the virtual role is apart from the bend Distance is less than or equal to pre-determined distance.
Preferably, it is arrowhead form that the bend, which reminds control,;The bend reminds the arrow direction of control according to The direction of bend determines;The width and bending angle that the bend reminds control are respectively according to the width and bending angle of the bend Degree determines.
Preferably, described device further include:
Transparency control module, for according to the control of the distance between the virtual role and the nearest bend The transparency of bend prompting control.
Preferably, the transparency control module is specifically used for:
, control is reminded as the diminution of the distance between the virtual role and the nearest bend controls the bend Transparency from large to small, when the virtual role and nearest the distance between the bend reach preset minimum safe distance From when, it is zero that the bend, which reminds the transparency of control,.
Preferably, described device further include:
Assisting automobile driver control display module, for when detecting that the virtual role initially enters the bend, in institute It states and shows assisting automobile driver control on bend prompting control, the assisting automobile driver control is for prompting the virtual role described curved The driving situation in road, the driving situation include steering position and direction.
Preferably, the assisting automobile driver control is arrowhead form, and the assisting automobile driver control is inclined according to the virtual role The amplitude of center line from the bend generates.
Preferably, described device further include:
Safe range judgment module, for judging whether the assisting automobile driver control exceeds the peace that the bend reminds control Gamut;If so, calling the first pre-set color setup module;If it is not, then calling the second pre-set color setup module;
First pre-set color setup module, for setting the first pre-set color for the assisting automobile driver control;
Second pre-set color setup module, for setting the second pre-set color for the assisting automobile driver control.
Preferably, when the assisting automobile driver control reminds the safe range of control beyond the bend, described device is also Include:
Shake control module, for controlling the mobile terminal vibration.
Preferably, the safe range is the range determined according to the turn width.
To solve the above-mentioned problems, it the embodiment of the invention discloses a kind of storage medium, is stored in the storage medium Computer program, wherein the computer program is arranged to execute method described in the embodiment of the present invention when operation.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of electronic device, including memory and processor, institutes It states and is stored with computer program in memory, the processor is arranged to run the computer program to execute the present invention in fact Apply method described in example.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention is used in practical applications, whether bend alert condition currently can be met by detection, and When condition meets, shown in the preset range of virtual rocking bar for prompting in scene of game apart from nearest curved of virtual role The bend in road reminds control.The road information for the bend that user can remind control understanding that will enter based on the bend of display, Control game in virtual role movement, such as suitable opportunity control virtual role reduction of speed, enter it is curved, out it is curved, avoid user Steering judgement can only be carried out based on abstract small map, and easy to operate, effectively increase the turning success rate and trip of user The coherent experience of play.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram that a kind of interface that one embodiment of the invention provides is shown;
Fig. 2 be another embodiment of the present invention provides a kind of bend remind control display schematic diagram;
Fig. 3 be another embodiment of the present invention provides a kind of bend remind control display schematic diagram;
Fig. 4 be another embodiment of the present invention provides a kind of bend schematic diagram;
Fig. 5 be another embodiment of the present invention provides virtual role negotiation of bends schematic diagram;
Fig. 6 be another embodiment of the present invention provides a kind of assisting automobile driver control display schematic diagram;
Fig. 7 be another embodiment of the present invention provides a kind of assisting automobile driver control display schematic diagram;
Fig. 8 be another embodiment of the present invention provides generation assisting automobile driver control schematic diagram;
Fig. 9 is the structural block diagram for the device that a kind of interface that one embodiment of the invention provides is shown.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.It should be noted that the description and claims of this application and on Stating the term " first " in attached drawing, " second " etc. is to be used to distinguish similar objects, without for describe specific sequence or Precedence.It should be understood that the data used in this way are interchangeable under appropriate circumstances, so as to the reality of the application described herein Apply example.In addition, term " includes " and " having " and their any deformation, it is intended that cover it is non-exclusive include, for example, The process, method, system, product or equipment for containing a series of steps or units those of are not necessarily limited to be clearly listed step Or unit, but may include other steps being not clearly listed or intrinsic for these process, methods, product or equipment Or unit.
Referring to Fig.1, the method flow schematic diagram that a kind of interface of one embodiment of the invention offer is shown is shown, it should Method is obtained by executing software application on the processor of mobile terminal and rendering on the touch control display of the mobile terminal Graphic user interface includes at least a scene of game, a virtual role and a virtual rocking bar, the void in the graphic user interface Quasi- rocking bar is used to control movement of the virtual role in the scene of game, can specifically include following steps:
Whether step S102, detection currently meet bend alert condition;
The embodiment of the present invention can be applied in the terminal, for example, mobile phone, tablet computer, personal digital assistant, wearing Equipment (such as bracelet, glasses, wrist-watch) etc..The operating system of these mobile terminals may include Android (Android), IOS, Windows Phone, Windows etc..Mobile terminal has the hardware devices such as central processor CPU, executes software by CPU Using and on touch control display rendering obtain graphic user interface.Graphic user interface is the important composition portion of touch screen terminal Point, for the interface for interacting with user, user can be operated graphic user interface.In the embodiment of the present invention In, user can manipulate the virtual rocking bar shown in graphic user interface, to control the movement of virtual role.
Above-mentioned software application includes game application, and in RAC (Race Game) racing class game, user can generally be driven One virtual role such as racing car, racing boat, motor boat, and controls many activities of the virtual role, and Lai Jinhang is changed the outfit, driven. In RAC game, generally there are changeable racing track, rugged section, user must concentrate to drive the racing car of oneself.For one For a little poor players of operative skill or the player of the new racing track of some first challenges, if pass through bend It often determines the key factor of game victory or defeat, if cornering angle is spent big or too small, or has little time to turn round, can all cause repeatedly Collision fault, user experience are bad.Therefore, the embodiment of the present invention is to promote the experience of user in driving, introduces and reminds bend The judgement of condition.
It in embodiments of the present invention, can be when virtual role be in the racing track in scene of game, by detecting virtual angle The positional relationship of next bend determines whether to meet bend alert condition in color and racing track, alternatively, according under in the racing track The characteristic of one bend determines whether to meet bend alert condition.Specifically, bend alert condition may include:
The bending angle of bend is greater than or equal to budget angle;And/or distance of the virtual role apart from bend is less than or waits In pre-determined distance.
It should be noted that bend here refers to bend nearest apart from game role in scene of game, namely virtual The bend namely next bend mentioned above that role will enter.In the specific implementation, can be only by the bending angle of bend As the condition that bend is reminded, when the bending angle of bend is greater than or equal to predetermined angle, it can determine and meet bend prompting Condition, if the camber (bending angle) of bend is more than 60 degree;It can also be only by virtual role conduct with a distance from next bend The condition that bend is reminded can determine when distance of the virtual role apart from bend is less than or equal to pre-determined distance and meet bend Alert condition;The bending angle of bend and the distance between virtual role and next bend can also be mentioned as bend simultaneously Wake up condition, when bend bending angle be greater than or equal to budget angle, and, distance of the virtual role apart from bend is less than or equal to When pre-determined distance, determination meets bend alert condition.The selection of bend alert condition and specific value, user/player can roots According to the demand self-setting of oneself, the mode of system default also can be used.
Step S104 currently meets bend alert condition if detecting, shows in the preset range of virtual rocking bar curved Control is reminded in road, which reminds control for prompting the bend that the distance virtual role is nearest in scene of game.
In embodiments of the present invention, when meeting bend alert condition, triggering bend reminds the display of control.The present invention is real Applying example dexterously reminds control to be arranged in virtual rocking bar preset range bend, so that user reminds control to understand by bend Bend situation simultaneously controls virtual rocking bar in time, quickly adjusts the direction of travel of virtual role.The preset range can be for virtual The central point of rocking bar is dot, and preset length is the circular scope of radius.
Shown in Figure 2, user controls virtual role in racing track uplink by the virtual rocking bar 201 in operation scene of game Into, have bend setting on racing track, when virtual role will enter next bend when, detect whether meet triggering bend remind control The condition of part.If the bending angle of next bend is greater than or equal to predetermined angle, can be in the position of graphic user interface It is shown at 202 for prompting the bend of the bend to remind control, alternatively, distance of the virtual role apart from the bend is less than or equal to When pre-determined distance, then the bend prompting control for prompting the bend can be shown at the position of graphic user interface 202, or Person, if the bending angle of the bend is greater than or equal to the distance of predetermined angle and virtual role apart from the bend and is less than or equal in advance If apart from when, then can be shown at the position of graphic user interface 202 for prompt the bend bend remind control.
In the specific implementation, the pass of each bend in scene of game and the mapping between bending angle can be preset Therefore system when virtual role will enter next bend, can transfer the corresponding bending angle of the next bend in advance Degree, then judge whether the bending angle transferred is greater than or equal to predetermined angle.Each bend can also be preset and in game Therefore the mapping relations between position in scene when virtual role will enter next bend, obtain virtual role and work as The preceding position in scene of game, and obtain position of next bend in scene of game according to mapping relations, then root According to the current position of the position in scene of game and next bend in scene of game of virtual role, obtain virtual role with The distance between next bend, to judge whether the distance is less than or equal to pre-determined distance.
Certainly, above content is only as an example, those skilled in the art, which can also show bend in other positions, reminds control Part, the invention is not limited in this regard.
Here bend, which reminds control, to be the curve of a preset length or the mark of other shapes, to prompt user Next bend will be entered, so that user reminds control to operate virtual rocking bar according to the bend of prompt.
Therefore whether the embodiment of the present invention currently meets bend alert condition by detection, if meeting condition, Display bend reminds control in the preset range of virtual rocking bar, which reminds control for prompting distance in the scene of game should The nearest bend of virtual role.The road that user can remind control to understand the bend that will enter based on the bend of display is believed Breath controls the movement of virtual role in game, so that user makes the tradeoff of turning point, and the speed per hour of turning point of penetration in advance Control, such as suitable opportunity control virtual role reduction of speed, enter it is curved, out it is curved, avoid user can only be based on abstract small map Steering judgement is carried out, and easy to operate, effectively increases the turning success rate and the coherent experience of game of user.
In another preferred embodiment of the present invention, it can be arrowhead form that bend, which reminds control, which reminds control Arrow direction according to the direction of bend determine, the bend remind control width and bending angle respectively according to the width of bend It is determined with bending angle.
Referring specifically to shown in Fig. 3, Fig. 3 shows the signal that a kind of display bend provided in an embodiment of the present invention reminds control Figure.Circle 301 represents virtual rocking bar in figure, can be in virtual rocking bar 301 if virtual role will drive into the bend to turn left Around (such as top) show an arrowhead form bend remind control 302, bend remind control 302 arrow direction be need The road direction of turn, the i.e. direction of bend are direction to the left in the diagram of the embodiment of the present invention.Bend reminds control 302 can be used for prompting the next bend that will enter of user being the bend turned left.Bend, which reminds control 302, to be tool There is the arrowhead form of one fixed width and bending angle, the width of the arrow can be directly proportional to the width of the bend, the arrow Bending angle can be identical as the bending angle of the bend.
As shown in figure 4, Fig. 4 illustrates that next bend that virtual role will enter in scene of game.Angle [alpha] in figure Indicate the bending angle of bend, which can be presets in map manufacturing process, therefore can transfer this Bent angle alpha, and the bending angle as bend prompting control 302.After bending angle determines, we can be curved according to arrow Bent angle [alpha] determines the corresponding arc length AL of the arrow, arc length AL=α**π * r/180, wherein r is that the bend of arrowhead form reminds control The length of 302 center line L and virtual rocking bar center, arrow length can carry out one according to arc length AL and preset stretch ratio Fixed scaling.The width of road is equal to the distance between P1 and P2 two o'clock, and wherein P1 and P2 is the same radius by the center of circle Two points intersected with road edge, therefore can determine that bend reminds control according to preset width ratio and the length of P1P2 The width of part 302, certainly, the width of bend may be and averagely have a lot of social connections here.
Therefore in embodiments of the present invention, control is reminded to prompt nearest bend feelings with the bend of arrowhead form Condition can prompt user's turn direction, and user can prejudge the width of next bend according to the width and length of arrow Degree and length, to be ready in advance into bend, to improve the success rate of turn.
In an alternative embodiment of the invention, the method which shows further include: according to virtual objects and recently The distance between bend controls the transparency that bend reminds control.
In embodiments of the present invention, bend reminds control that can also have certain transparency, and system can be according to virtual The distance between role and nearest bend control the transparency that bend reminds control, that is, the embodiment of the present invention can be according to void Quasi- role adjusts the transparency that bend reminds control with a distance from corner, so that user can remind the saturating of control according to bend Lightness prejudges with a distance from corner, so as to more accurately operate virtual rocking bar.
Preferably, the transparency that bend reminds control, packet are controlled according to the distance between virtual role and nearest bend It includes:
As the diminution control bend of virtual role and the distance between nearest bend reminds the transparency of control by big Become smaller, when virtual role reaches preset minimum safe distance with nearest the distance between bend, bend reminds control Transparency is zero.
In the concrete realization, the distance between the virtual role of the embodiment of the present invention and nearest bend can be with transparencies It is directly proportional.With the diminution of the distance between virtual role and nearest bend, system can reduce in a manner of from large to small Bend reminds the transparency of control, i.e. bend reminds control to become real by void, until virtual role enters minimum safe distance range When, bend reminds control to become real display.
For example, system can be showed curved with 50% transparency when virtual role is 50m at a distance from nearest bend Control is reminded in road, and when virtual role becomes smaller at a distance from nearest bend, system can be showed with relatively lower transparency Bend reminds control, and when virtual role is 30m at a distance from nearest bend, system can be showed curved with 30% transparency Control is reminded in road, and as virtual role continues to become smaller at a distance from nearest bend, system can also be used relatively lower transparent Degree shows bend and reminds control, that is, when virtual role is 0m at a distance from nearest bend, (virtual role starts to drive into bend When), system can use 0% transparency, and bend is showed in a manner of fully opaque and reminds control.
Therefore the embodiment of the present invention reminds the transparency of control by adjusting bend, to prompt user's virtual role Distance apart from bend, with being gradually reduced for distance, bend reminds control gradually to become real by empty, until most short safe distance model When enclosing, bend reminds control to show in fact entirely, gradually reinforces so that bend reminds control to play from void to real variation to user The effect of prompt.
In an alternative embodiment of the invention, the method which shows further include:
When detecting that virtual role initially enters bend, is reminded in bend and show assisting automobile driver control on control, this is driven It sails and reminds control for prompting the virtual role in the driving situation of the bend, which includes steering position and direction.
In this clearly demarcated embodiment, when the virtual rocking bar of player exercises initially enters bend, control can be reminded in bend Upper display assisting automobile driver control, to prompt virtual role in the steering position of bend and direction and travel route.It needs to illustrate It is that can consider that virtual role initially enters bend when the virtual rocking bar of player exercises is turned.
Preferably, which is arrowhead form, which deviates bend according to virtual role The amplitude of center line generates.The direction of arrow determines that virtual role is turned to the left according to virtual role driving/movement direction When, the arrow of assisting automobile driver control is towards a left side, and when virtual role bends to right, the arrow of assisting automobile driver control is towards the right side.
Shown in Figure 5, Fig. 5 shows in the embodiment of the present invention virtual role in the schematic diagram of negotiation of bends.It is current empty Quasi- role is vehicle 501, and the bending angle of bend is α, is set when being pre-production map, and L is the center line of bend.C1 generation The central point of table vehicle 501 crosses C1 point to bend center line L and does vertical line, and C2 is vertical line and bend center line L intersects Point, therefore, the distance between central point C1 and crosspoint C2 of vehicle 501 represent the width that vehicle 501 deviates the center line of bend Degree, the i.e. distance of C1C2 represent the amplitude of the center line of virtual role offset bend, therefore can be true according to the amplitude of the offset The bending angle of assisting automobile driver control is determined, to generate assisting automobile driver control according to bending angle.
Shown in Figure 6, Fig. 6, which shows to remind in the embodiment of the present invention in bend, shows assisting automobile driver control on control Schematic diagram.When meeting bend alert condition, it can show that bend reminds control 602 around virtual rocking bar 601, work as user When the virtual role of manipulation initially enters bend, is reminded in bend and show assisting automobile driver control 603 on control 602, in the present invention In embodiment, bend reminds control 602 and assisting automobile driver control 603 is arrowhead form, at this time turn in bend direction and user Curved direction is that the left, therefore, bend reminds control 602 and assisting automobile driver control 603 is arrowhead form to the left.User can To know steering position of the virtual role of its control relative to bend, and turning situation by assisting automobile driver control 603.
In practical applications, the assisting automobile driver control of the embodiment of the present invention can be by the driving situation of virtual role intuitively Be presented to user, specifically, can be manipulated after virtual role drives into bend in user, by showing assisting automobile driver control curved The relative position on control is reminded in road, and the position for allowing user to know virtual role relative to bend, this just knows user Whether the virtual role for knowing its manipulation is in the safety traffic range of bend;At the same time it can also turn by the way that virtual role is current The curvature of assisting automobile driver control is calculated to goniometer, and after generating assisting automobile driver control with the curvature, then pass through while showing and drive It sails the curvature for reminding control and bend reminds the curvature of control, user is allowed to know whether the steering direction of current virtual role meets The bending angle of bend.
Shown in Figure 7, Fig. 7 shows a kind of display schematic diagram of assisting automobile driver control of the embodiment of the present invention.In Fig. 7 Circle is virtual rocking bar 701, and the big arrow of virtual 701 top of rocking bar is that bend reminds control 702, and bend reminds control 702 Head is triangle XYZ, and it is irregular triangle ABF that bend, which reminds the main part of control 702,;ABCD illustrates road area, Wherein void camber line AD and BC illustrate the two sides boundary of road, and E point is the midpoint of AB line, and empty camber line EF is road axis, here Road refer to bend;Three void camber line AD, EF and BC are on the circle of virtual 701 center O different radii of rocking bar;AEBO is at one On straight line, point-blank, the angle α of this two straight lines illustrates the bending angle of road to DFCO.Bend is reminded on control 702 Small arrow QP be assisting automobile driver control, QP is a direction line with the arrow, and wherein Q is on camber line EF, i.e. road axis On, P is on AB, the degrees of offset of PE length illustrating dummy role (vehicle), i.e. the distance of C1C2 in Fig. 5.
As an example, bend reminds the generating process of control 702 as follows:
1, bend is set in game remind road width K locating for width L (w-default) the illustrating dummy role of control (w-default), i.e., it is L (w-default)/K (w- that bend, which reminds the pantograph ratio between the width and real road width of control, default)。
2, it is the triangle of preset fixed side length that bend, which reminds the head XYZ of control,.
3, the radius of virtual rocking bar 701 is R, then, if road (bend) width that virtual role (vehicle) is currently located For K, then the length value L (AB) of current AB is answered are as follows:
L (AB)=L (w-default) * K/K (w-default);
The distance between road axis EF and the central point O of virtual rocking bar 701, i.e. length L (QO) between QO are as follows:
L (QO)=L (EZ)+R=L (YZ)/2+R;
Wherein, L (EZ) identifies the distance between E point and Z point, and L (YZ) identifies the distance between Y point and Z point;
Therefore, the length L (EF) between E point and F point are as follows:
L (EF)=α * π * L (QO)/180, wherein 180 parallactic angle degree systems.
4, assume that virtual role is currently K (C1C2) with a distance from road axis, then the distance L (PE) of P point distance E point Are as follows:
L (PE)=L (AE) * K (C1C2)/(K/2)=L (AB) * K (C1C2)/(K*4).
So far, all the points are around central point O bending it has been determined that available figure shown in Fig. 8, then by center line EF Fig. 6 can be obtained or bend shown in Fig. 7 reminds control and assisting automobile driver control.
In practical applications, the exemplary bend of the present invention reminds control to have corresponding safe range, which can For the range according to determined by turn width, that is, if assisting automobile driver control is in the safe range, then it represents that user's operation Virtual role be also in the safe range of bend, it is pre- that the assisting automobile driver control of the embodiment of the present invention can also be corresponding with first If color and the second pre-set color.
In a preferred embodiment of the invention, the method that interface is shown further include: judge assisting automobile driver control Whether the safe range of control is reminded beyond bend;It, will if assisting automobile driver control reminds the safe range of control beyond bend Assisting automobile driver control is set as the first pre-set color;If assisting automobile driver control reminds the safe range of control without departing from bend, The second pre-set color is set by assisting automobile driver control.In the preferred embodiment, when user is driven in safe range, with The assisting automobile driver controls of two pre-set colors informs user's present running route still in the safe range of bend, when user drives When beyond safe range, be different from the second pre-set color the first pre-set color warning user its manipulation virtual role Have exceeded the safe range of bend.
In another preferred embodiment of the invention, the safe range of control is reminded beyond bend when assisting automobile driver control When, control mobile terminal vibration.The preferred embodiment further prompts the virtual role of its manipulation of user to have exceeded bend Safe range, in the specific implementation, can be default with first when assisting automobile driver control reminds the safe range of control beyond bend The assisting automobile driver control tip user of color increases when assisting automobile driver control, which seriously exceeds bend, reminds the safe range of control Add the vibration of mobile terminal, further user's current operation is prompted seriously to exceed safe range.It should be noted that wherein pacifying Gamut is the range determined according to turn width.
Therefore whether the embodiment of the present invention currently meets bend alert condition by detection, and when condition meets, Display is for prompting the bend of bend nearest apart from virtual role in scene of game to remind in the preset range of virtual rocking bar Control, when virtual role enters driving curves, is reminded in bend to indicate user's operation virtual role and shows driving on control Control is reminded, and whether assisting automobile driver control in different colors and vibrating effect prompt user currently drive in safe range It is interior, so as to more intuitively prompt user, avoid user that from can only carrying out turning judgement based on abstract small map, and then improve The turning success rate of user improves game experiencing.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 9, the structural block diagram for the device that a kind of interface that one embodiment of the invention provides is shown, tool are shown Body may include following module:
Whether detection module 901 currently meets bend alert condition for detecting;
Display module 902, for detection module 901 detect currently meet bend alert condition when, in virtual rocking bar Preset range in display bend remind control, which reminds control for prompting in scene of game the distance virtual role most Close bend.
In a preferred embodiment of the invention, which may include:
The bending angle of the bend is greater than or equal to predetermined angle;And/or distance of the virtual role apart from the bend is small In or equal to pre-determined distance.
In a preferred embodiment of the invention, bend prompting control can also be arrowhead form;The bend is reminded The arrow direction of control can be determined according to the direction of the bend;The bend reminds the width of control that can distinguish with bending angle It is determined according to the width of the bend and bending angle.
In a preferred embodiment of the invention, described device can also include:
Transparency control module is reminded for controlling the bend according to the distance between the virtual role and nearest bend The transparency of control.
In a preferred embodiment of the invention, which is specifically used for, with virtual role and institute State the distance between nearest bend diminution control the bend remind control transparency from large to small, when the virtual role with When the distance between nearest bend reaches preset minimum safe distance, it is zero which, which reminds the transparency of control,.
In a preferred embodiment of the invention, described device can also include:
Assisting automobile driver control display module, for when detecting that the virtual role initially enters the bend, in institute It states and shows assisting automobile driver control on bend prompting control, the assisting automobile driver control is for prompting the virtual role described curved The driving situation in road, the driving situation include steering position and direction.
In a preferred embodiment of the invention, the assisting automobile driver control can also be arrowhead form, the driving The amplitude for reminding control that can also deviate the center line of the bend according to the virtual role generates.
In a preferred embodiment of the invention, described device can also include:
Safe range judgment module, for judging whether the assisting automobile driver control exceeds the peace that the bend reminds control Gamut;If so, calling the first pre-set color setup module;If it is not, then calling the second pre-set color setup module;
First pre-set color setup module, for setting the first pre-set color for the assisting automobile driver control;
Second pre-set color setup module, for setting the second pre-set color for the assisting automobile driver control.
In a preferred embodiment of the invention, the peace of control is reminded beyond the bend when the assisting automobile driver control When gamut, described device can also include:
Shake control module, for controlling the mobile terminal vibration.
In a preferred embodiment of the invention, the safe range can the turn width determination according to Range.
The embodiment of the present invention is used in practical applications, whether bend alert condition currently can be met by detection, and When condition meets, shown in the preset range of virtual rocking bar for prompting in scene of game apart from nearest curved of virtual role The bend in road reminds control.The road information for the bend that user can remind control understanding that will enter based on the bend of display, Control game in virtual role movement, such as suitable opportunity control virtual role reduction of speed, enter it is curved, out it is curved, avoid user Steering judgement can only be carried out based on abstract small map, and easy to operate, effectively increase the turning success rate and trip of user The coherent experience of play.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
The embodiment of the invention also discloses a kind of electronic equipment, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, the processor realize the step that above-mentioned interface is shown when executing described program Suddenly.
The embodiment of the invention also discloses a kind of computer readable storage medium, deposited on the computer readable storage medium Computer program is contained, the computer program realizes the step of above-mentioned interface is shown when being executed by processor.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of interface display methods provided by the present invention and a kind of interface display device, carry out It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments Illustrate to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to According to thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification It should not be construed as limiting the invention.

Claims (13)

1. a kind of method that interface is shown, which is characterized in that by executing software application on the processor of mobile terminal And rendering obtains graphic user interface on the touch control display of the mobile terminal, includes at least in the graphic user interface One scene of game, a virtual role and a virtual rocking bar, the virtual rocking bar is for controlling the virtual role in the trip Movement in scene of playing, which comprises
Whether detection currently meets bend alert condition;
If so, showing that bend reminds control in the preset range of the virtual rocking bar, the bend reminds control for mentioning Show the bend that virtual role described in distance is nearest in the scene of game.
2. the method according to claim 1, wherein the bend alert condition includes:
The bending angle of the bend is greater than or equal to predetermined angle;And/or distance of the virtual role apart from the bend Less than or equal to pre-determined distance.
3. method according to claim 1 or 2, which is characterized in that
It is arrowhead form that the bend, which reminds control,;The bend reminds the arrow direction of control true according to the direction of the bend It is fixed;The bend reminds the width of control and bending angle to be determined respectively according to the width of the bend and bending angle.
4. method according to claim 1 or 2, which is characterized in that the method also includes:
The transparency that the bend reminds control is controlled according to the distance between the virtual role and the nearest bend.
5. according to the method described in claim 4, it is characterized in that, described according to the virtual role and the nearest bend The distance between the control bend remind the transparency of control, comprising:
The saturating of control is reminded as the diminution of the virtual role and the distance between the nearest bend controls the bend Lightness from large to small, when the virtual role and nearest the distance between the bend reach preset minimum safe distance When, it is zero that the bend, which reminds the transparency of control,.
6. method according to claim 1 or 2, which is characterized in that the method also includes:
When detecting that the virtual role initially enters the bend, is reminded in the bend and show assisting automobile driver control on control Part, for prompting the virtual role in the driving situation of the bend, the driving situation includes the assisting automobile driver control Steering position and direction.
7. according to the method described in claim 6, it is characterized in that, the assisting automobile driver control is arrowhead form, the driving The amplitude for the center line for reminding control to deviate the bend according to the virtual role generates.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
Judge whether the assisting automobile driver control exceeds the safe range that the bend reminds control;
If so, setting the first pre-set color for the assisting automobile driver control;
If it is not, then setting the second pre-set color for the assisting automobile driver control.
9. according to the method described in claim 6, it is characterized in that, when the assisting automobile driver control reminds control beyond the bend When the safe range of part, the method also includes:
Control the mobile terminal vibration.
10. method according to claim 8 or claim 9, which is characterized in that the safe range is true according to the turn width Fixed range.
11. a kind of device that interface is shown, which is characterized in that by where described device on the processor of mobile terminal It executes software application and is rendered on the touch control display of the mobile terminal and obtain graphic user interface, graphical user circle A scene of game, a virtual role and a virtual rocking bar are included at least in face, the virtual rocking bar is described virtual for controlling Movement of the role in the scene of game, described device include:
Whether detection module currently meets bend alert condition for detecting;
Display module, for the detection module detect currently meet bend alert condition when, in the virtual rocking bar Display bend reminds control in preset range, and the bend prompting control is used to prompt virtual described in distance in the scene of game The nearest bend of role.
12. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute the described in any item methods of the claims 1 to 10 when operation.
13. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program to execute described in any one of claims 1 to 10 Method.
CN201910105351.1A 2019-02-01 2019-02-01 Method and device for displaying game interface Active CN109692477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910105351.1A CN109692477B (en) 2019-02-01 2019-02-01 Method and device for displaying game interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910105351.1A CN109692477B (en) 2019-02-01 2019-02-01 Method and device for displaying game interface

Publications (2)

Publication Number Publication Date
CN109692477A true CN109692477A (en) 2019-04-30
CN109692477B CN109692477B (en) 2022-04-12

Family

ID=66234811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910105351.1A Active CN109692477B (en) 2019-02-01 2019-02-01 Method and device for displaying game interface

Country Status (1)

Country Link
CN (1) CN109692477B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111186A (en) * 2019-12-26 2020-05-08 珠海金山网络游戏科技有限公司 Virtual character vertex climbing method and device
CN112546628A (en) * 2020-12-29 2021-03-26 网易(杭州)网络有限公司 Display control method and device in game
CN113426124A (en) * 2021-06-30 2021-09-24 网易(杭州)网络有限公司 Display control method and device in game, storage medium and computer equipment
CN116212389A (en) * 2023-05-09 2023-06-06 深圳市卡妙思电子科技有限公司 Electric racing car competition system based on VR technology

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070111768A1 (en) * 2005-11-14 2007-05-17 Microsoft Corporation Speed-dependent suggested driving lines
JP2008113787A (en) * 2006-11-02 2008-05-22 Taito Corp Game device for displaying brake point reduced map
US9687741B1 (en) * 2015-03-10 2017-06-27 Kabam, Inc. System and method for providing separate drift and steering controls
CN108499106A (en) * 2018-04-10 2018-09-07 网易(杭州)网络有限公司 The treating method and apparatus of race games prompt message
CN108553892A (en) * 2018-04-28 2018-09-21 网易(杭州)网络有限公司 virtual object control method, device, storage medium and electronic equipment
CN108619722A (en) * 2018-05-03 2018-10-09 网易(杭州)网络有限公司 The route indicating means and device of race games
CN108654085A (en) * 2018-05-18 2018-10-16 网易(杭州)网络有限公司 Game virtual object control method and device, electronic equipment, storage medium
CN108654087A (en) * 2018-05-09 2018-10-16 网易(杭州)网络有限公司 Information indicating method and device, road condition advisory method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070111768A1 (en) * 2005-11-14 2007-05-17 Microsoft Corporation Speed-dependent suggested driving lines
JP2008113787A (en) * 2006-11-02 2008-05-22 Taito Corp Game device for displaying brake point reduced map
US9687741B1 (en) * 2015-03-10 2017-06-27 Kabam, Inc. System and method for providing separate drift and steering controls
CN108499106A (en) * 2018-04-10 2018-09-07 网易(杭州)网络有限公司 The treating method and apparatus of race games prompt message
CN108553892A (en) * 2018-04-28 2018-09-21 网易(杭州)网络有限公司 virtual object control method, device, storage medium and electronic equipment
CN108619722A (en) * 2018-05-03 2018-10-09 网易(杭州)网络有限公司 The route indicating means and device of race games
CN108654087A (en) * 2018-05-09 2018-10-16 网易(杭州)网络有限公司 Information indicating method and device, road condition advisory method and device
CN108654085A (en) * 2018-05-18 2018-10-16 网易(杭州)网络有限公司 Game virtual object control method and device, electronic equipment, storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111186A (en) * 2019-12-26 2020-05-08 珠海金山网络游戏科技有限公司 Virtual character vertex climbing method and device
CN111111186B (en) * 2019-12-26 2023-08-18 珠海金山数字网络科技有限公司 Virtual character boarding method and device
CN112546628A (en) * 2020-12-29 2021-03-26 网易(杭州)网络有限公司 Display control method and device in game
CN113426124A (en) * 2021-06-30 2021-09-24 网易(杭州)网络有限公司 Display control method and device in game, storage medium and computer equipment
CN113426124B (en) * 2021-06-30 2024-03-12 网易(杭州)网络有限公司 Display control method and device in game, storage medium and computer equipment
CN116212389A (en) * 2023-05-09 2023-06-06 深圳市卡妙思电子科技有限公司 Electric racing car competition system based on VR technology

Also Published As

Publication number Publication date
CN109692477B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN109692477A (en) A kind of method and apparatus that interface is shown
JP6361318B2 (en) VEHICLE IMAGE DISPLAY DEVICE AND VEHICLE IMAGE DISPLAY METHOD
US20070265047A1 (en) Video game processing apparatus, a method and a computer program product for processing a video game
WO2017139023A1 (en) Limited field of view in virtual reality
JP2016059566A (en) Game machine
CN113954869B (en) Road condition reminding method and device, electronic equipment and storage medium
CN108536350B (en) Virtual object control method and equipment
CN104859540A (en) Display control device for vehicle
JP4803030B2 (en) Image processing method, program, recording medium, and game device
CN101524591B (en) Game device
CN108837504A (en) Information processing method, device, equipment and storage medium in race games
JPS6089298A (en) Running information display
CN104368146A (en) Method and device for controlling dummy objects to move
JP2010029711A (en) Game machine and game program using touch panel
JP2011197246A (en) Simulation device, program and information storage medium
JP4610971B2 (en) Game program
CN114904273A (en) Method and device for controlling virtual object in game, electronic equipment and storage medium
JPH08339161A (en) Crane operation training use simulator
JP2008033964A (en) Image generating apparatus and information storage medium
JP2001137539A (en) Method for displaying object on monitor of game machine
JP2007301014A (en) Program, information storage medium, and image generating system
CN107870702B (en) User operation prompting method and device based on head-mounted display equipment
JP4025802B2 (en) PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE
JP6666135B2 (en) Gaming machine
KR101563082B1 (en) Method for providing interface in vehicle driving simulation, recording medium and device for performing the method

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