CN103157281B - Display method and display equipment of two-dimension game scene - Google Patents

Display method and display equipment of two-dimension game scene Download PDF

Info

Publication number
CN103157281B
CN103157281B CN201310116538.4A CN201310116538A CN103157281B CN 103157281 B CN103157281 B CN 103157281B CN 201310116538 A CN201310116538 A CN 201310116538A CN 103157281 B CN103157281 B CN 103157281B
Authority
CN
China
Prior art keywords
displayed scene
coordinate
scene
existing object
rule
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
CN201310116538.4A
Other languages
Chinese (zh)
Other versions
CN103157281A (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.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information 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 Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN201310116538.4A priority Critical patent/CN103157281B/en
Publication of CN103157281A publication Critical patent/CN103157281A/en
Application granted granted Critical
Publication of CN103157281B publication Critical patent/CN103157281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a display method and display equipment of a two-dimension game scene. The display method of the two-dimension game scene includes the following steps of confirming a target position of a present object which corresponds to a request order which responses to the display scene of a two-dimension game according to an initial position of the present object in the display scene; adding the present object to a background image of the display scene according to the target position, adjusting the direction of the present object to the target direction which corresponds to the request order, and obtaining the display scene; and providing the display scene to a user. The position of the present object is changed into the target position from the initial position through response to the request order. The display method of the two-dimension game scene enables the user to obtain the display scene of positions and directions of different objects according to self needs, thereby obviously reducing inconvenience to the user caused by fitting in with the fixed object position and bringing better experience to the user. In addition, the invention further provides the display equipment of the two-dimension game scene.

Description

A kind of method and apparatus of two-dimensional game scene display
Technical field
Embodiments of the present invention relate to game application, and more specifically, embodiments of the present invention relate to the method and apparatus of a kind of two-dimensional game scene display.
Background technology
This part embodiments of the present invention be intended to for stating in claims provide background or context.Description herein can comprise the concept that can probe into, but the concept not necessarily expected or probed into before.Therefore, unless herein means out, otherwise the content described in this part is not prior art for the description of the application and claims, and not because be included in just admit it is prior art in this part.
In whole program application, the popularity of recreation experience application is quite high.Wherein, most of user can use the application of game.At present, the scene of game adopted is applied in game two and three dimensions two kinds.Wherein, relative to 3d gaming, the EMS memory occupation amount of two-dimensional game to subscriber equipment is little, the arithmetic speed of required video card is not high yet, especially for online game, two-dimensional game need the network speed that takies and flow-rate ratio 3d gaming much lower, therefore, many users and application provider can select the application of two-dimensional game.
In two-dimensional game, when user carries out game operation, need for user shows the scene of game.The displayed scene of game comprises the background base map in subscriber equipment or the webserver and the various objects on background base map, as the player characters who of user, various NPC (Non-PlayerCharacter, non-player role) etc.In prior art, during displayed scene, intercept part to display in background base map, then by be currently located at the object in intercepting part, with fixing position add in intercepting part, then formed image is supplied to user.
Summary of the invention
But inventor finds in long-term research process, in the prior art, because each object is all add in intercepted background base map, so the position of each object is all changeless in different displayed scenes with fixing position in the displayed scene of two-dimensional game.Such as, in the turn-based online game of two dimension, in the displayed scene of fight, the player characters who of user and the position of enemy role are all fixing, generally be enemy role be positioned at the upper left side of displayed scene and face lower right, user's player characters who is positioned at the lower right of displayed scene and faces lower right.But, user when carrying out game operation, often want the object seen to appear at the diverse location in displayed scene and face different directions.Such as, in aforesaid scene of fighting, the convenience of user in order to operate, sometimes the front can seeing enemy role is needed, sometimes the front can seeing player characters who is then needed, sometimes need player characters who to be positioned at the lower right of displayed scene, sometimes then need enemy role to be positioned at the below of displayed scene.
Therefore in the prior art, object always occurs with the position that Stationary liquid is same and faces the same direction of Stationary liquid in displayed scene, and not to be often user current required this fixing position and direction, under this fixing position, make troubles often to the operation of user, and then cause bad Consumer's Experience.
For this reason, be starved of a kind of method and apparatus of two-dimensional game scene display of improvement, to make user when carrying out game operation, multiple different position can be provided in the displayed scene of two-dimensional game for object, thus make user can go to select according to the demand of oneself, thus promote user's experience in gaming further.
In the present context, embodiments of the present invention expect the method and apparatus that provides a kind of two-dimensional game scene to show.
In the first aspect of embodiment of the present invention, provide the method for a kind of two-dimensional game scene display, comprise: in response to the request instruction of displayed scene in described two-dimensional game, according to the initial position of existing object in described displayed scene, determine the target location of the described existing object that described request instruction is corresponding; Described existing object is the current object be in described displayed scene; According to described target location, described existing object is added in the Background of described displayed scene, and the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtain described displayed scene; Described Background is the background base map that described displayed scene is corresponding; Described displayed scene is provided to user.
In one embodiment of the invention, this is according to the initial position of existing object in described displayed scene, determine the target location of existing object described in described request instruction, such as can comprise: the coordinate obtaining the initial position of described existing object in described displayed scene, as initial coordinate; According to described request instruction, determine the object erect-position relation of described displayed scene, and extract Coordinate Conversion rule corresponding to described object erect-position relation; Described Coordinate Conversion rule is utilized described initial coordinate to be converted to the coordinate of the target location of described existing object, as coordinates of targets.
In another embodiment of the invention, wherein, described Coordinate Conversion rule is the first rule, Second Rule, three sigma rule or the 4th rule; Described first rule is: x 2=x 1, y 2=y 1; Described Second Rule is: x 2=w-x 1, y 2=y 1; Described three sigma rule is: x 2=x 1, y 2=h-y 1; Described 4th rule is: x 2=w-x 1, y 2=h-y 1; Wherein, described x 1for the abscissa in initial coordinate, described x 2for the abscissa in coordinates of targets, described y 1for the ordinate in initial coordinate, described y 2for the ordinate in coordinates of targets, described w is described displayed scene length on the horizontal scale, and described h is described displayed scene length on the vertical scale.
In yet another embodiment of the present invention, the direction of described existing object is adjusted to target direction corresponding to described target location by this, such as can comprise: from the corresponding relation between preset object erect-position relation and object orientation, obtain the object orientation corresponding to object erect-position relation of described displayed scene, as target direction; The direction of described existing object is adjusted to described target direction.
In yet another embodiment of the present invention, such as can also comprise in response to described request instruction, obtain the existing object in the Background of described displayed scene corresponding to described request instruction and described displayed scene, and determine the initial position of described existing object in described displayed scene.
In another embodiment again of the present invention, existing object in the Background of the described displayed scene of this acquisition and described displayed scene, such as can comprise: according to described request instruction, determine the coordinate of the calibration point of described displayed scene in described background base map, as demarcation coordinate; According to described demarcation coordinate, corresponding for the indication range of the described displayed scene coordinate range in background base map is defined as the displaing coordinate scope of described displayed scene; To the Background of the background base map within described displaing coordinate scope as described displayed scene be positioned at, and the object that the coordinate of current time in background base map is positioned within described displaing coordinate scope is defined as existing object.
In another embodiment again of the present invention, this determines the initial position of described existing object in described displayed scene, such as can comprise: according to described request instruction, determine the coordinate of the origin of coordinates of described displayed scene in described background base map, as origin; According to described origin, by the difference of the coordinate of the origin of coordinates in background base map of the coordinate of described existing object in background base map and described displayed scene, as the initial coordinate of described existing object in described displayed scene.
In the second aspect of embodiment of the present invention, provide the equipment of a kind of two-dimensional game scene display, comprise: target location determining unit, for the request instruction in response to displayed scene in described two-dimensional game, according to the initial position of existing object in described displayed scene, determine the target location of the described existing object that described request instruction is corresponding; Described existing object is the current object be in described displayed scene; Adding device, for according to described target location, adds in the Background of described displayed scene by described object; Described Background is the background base map that described scene of game is corresponding; Adjustment unit, for the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtains described displayed scene; Display unit, for providing described displayed scene to user.
In another embodiment again of the present invention, this target location determining unit such as can comprise: initial coordinate obtains subelement, for obtaining the coordinate of the initial position of described existing object in described displayed scene, as initial coordinate; Subelement is determined in direction, for according to described request instruction, determines the object erect-position relation of described displayed scene; Rule Extraction subelement, for extracting Coordinate Conversion rule corresponding to described object erect-position relation; Coordinate Conversion subelement, for utilizing the regular coordinate described initial coordinate being converted to the target location of described existing object of described Coordinate Conversion, as coordinates of targets.
In another embodiment again of the present invention, wherein, described Coordinate Conversion rule is the first rule, Second Rule, three sigma rule or the 4th rule; Described first rule is: x 2=x 1, y 2=y 1; Described Second Rule is: x 2=w-x 1, y 2=y 1; Described three sigma rule is: x 2=x 1, y 2=h-y 1; Described 4th rule is: x 2=w-x 1, y 2=h-y 1; Wherein, described x 1for the abscissa in initial coordinate, described x 2for the abscissa in coordinates of targets, described y 1for the ordinate in initial coordinate, described y 2for the ordinate in coordinates of targets, described w is described displayed scene length on the horizontal scale, and described h is described displayed scene length on the vertical scale.
In another embodiment again of the present invention, this adjustment unit such as can comprise: target direction obtains subelement, for from the corresponding relation between preset object erect-position relation and object orientation, obtain the object orientation corresponding to object erect-position relation of described displayed scene, as target direction; Target direction adjustment subelement, for being adjusted to described target direction by the direction of described existing object.
In another embodiment again of the present invention, this equipment such as can also comprise: current acquiring unit, in response to described request instruction, obtains the existing object in the Background of described displayed scene corresponding to described request instruction and described displayed scene; Initial position determining unit, for determining the initial position of described existing object in described displayed scene.
In another embodiment again of the present invention, this current acquiring unit such as can comprise: demarcate coordinate determination subelement, for according to described request instruction, determine the coordinate of the calibration point of described displayed scene in described background base map, as demarcation coordinate; Displaing coordinate scope determination subelement, for according to described demarcation coordinate, is defined as the displaing coordinate scope of described displayed scene by corresponding for the indication range of the described displayed scene coordinate range in background base map; Current background obtains subelement, for being positioned at the Background of the background base map within described displaing coordinate scope as described displayed scene; Existing object obtains subelement, is defined as existing object for the object be positioned within described displaing coordinate scope by the coordinate of current time in background base map.
In another embodiment again of the present invention, this initial position determining unit such as can comprise: origin determination subelement, for according to described request instruction, determine the coordinate of the origin of coordinates of described displayed scene in described background base map, as origin; Initial coordinate computation subunit, for according to described origin, by the difference of the coordinate of the origin of coordinates in background base map of the coordinate of described existing object in background base map and described displayed scene, as the initial coordinate of described existing object in described displayed scene.
According to the method and apparatus of embodiment of the present invention, by existing object is added in the Background of the displayed scene of two-dimensional game according to target location required in request instruction, and the direction of existing object is adjusted to direction required in request instruction, user can be different according to oneself demand, and assign the request instruction of different displayed scenes, thus just can obtain the displayed scene in its object's position wanted and direction, user so just can be made to obtain its easy to operate displayed scene, and without the need to deacclimatizing in displayed scene the object's position and direction that are not easy to operate, thus improve the convenient degree that user operates in two-dimensional game, for user brings better experience.
Further, when scene shows, can respond in real time request instruction, Background and the existing object of displayed scene corresponding to request instruction is obtained at each current time, the displayed scene that so just user can be made to watch breaks away from the constraint of player characters who, thus it wants the displayed scene observed to make user can observe at any time in whole scene of game, thus further for user brings better experience.
summary of the invention
The present inventor finds, the Consumer's Experience that why operation inconvenience etc. can be brought bad to user when two-dimensional game scene shows in prior art, be because its in the displayed scene of every type all only for object is wherein prefixed a kind of fixing position and direction.Such as, in the displayed scene of fight type, the direction, the lower right corner that the player characters who of user is generally positioned at displayed scene then faces the upper left corner, and the direction, the upper left corner that the position of enemy personage is generally positioned at displayed scene then faces the lower right corner.This fixing position causes user can not change the object's position in displayed scene and direction according to the demand of oneself when playing, and also just can not get its displayed scene wanted.Like this when operating inconvenience, user just must deacclimatize this unhandy object's position and direction, and it experiences and will decline in the process of two-dimensional game use.
Based on above-mentioned discovery, general principle of the present invention is: when responding the request instruction of displayed scene in two-dimensional game, target location and the target direction of this object corresponding in request instruction is determined according to the initial position of object in displayed scene, then object is added in the Background of displayed scene according to target location and target direction, again the displayed scene obtained is provided to user, like this, the request instruction making user can assign different displayed scenes according to its oneself demand obtains the object's position displayed scene different with direction, thus make user without the need to deacclimatizing in displayed scene the object's position and direction that are not easy to operate, thus improve the convenient degree of user operation, for user brings better experience.
After describing general principle of the present invention, lower mask body introduces various non-limiting embodiment of the present invention.
application scenarios overview
First be the block schematic illustration of an exemplary application scene of embodiments of the present invention with reference to figure 2, Fig. 2.Wherein, user is undertaken by client 202 and user interface interaction equipment (such as game server 201) alternately.It will be understood by those skilled in the art that the block schematic illustration shown in Fig. 2 is only the example that embodiments of the present invention can be achieved wherein.The scope of application of embodiment of the present invention is not subject to the restriction of any aspect of this framework.
It should be noted that, client 202 herein can be existing, research and develop or in the future research and development, can by any type of wired or wireless connection (such as, Wi-Fi, LAN, WAN, internet etc.) with the mutual any client of game server 201, include but not limited to: existing, research and develop or research and development in the future, desktop computer, laptop computer, mobile terminal (comprising smart mobile phone, non intelligent mobile phone, various panel computer) etc.
It is also to be noted that game server 201 be herein only existing, research and develop or in the future research and development, an example of the equipment that two-dimensional game can be provided to apply to user.Embodiments of the present invention are unrestricted in this regard.
In the exemplary application scene shown in Fig. 2, game server 201 can in response to the request instruction of displayed scene in described two-dimensional game, according to the initial position of existing object in described displayed scene, determine the target location of the described existing object that described request instruction is corresponding, described existing object is the current object be in described displayed scene.Then game server 201 can according to described target location, described existing object is added in the Background of described displayed scene, and the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtain described displayed scene, wherein said Background is the background base map that described displayed scene is corresponding.Last game server 201 can provide described displayed scene to user.It should be noted that, request instruction herein can be such as user pass through click client 202 provide, be sent to game server 201 for triggering the shortcut link of displayed scene.According to some illustrative embodiments of the present invention, described displayed scene such as can be presented in client 202 as the floating layer in interface.
In application scenarios of the present invention, two-dimensional game application can be online game application, also can be single-play game application.It should be noted that, although herein by the action description of embodiment of the present invention for be performed by game server 201, but these actions also can be performed by client device 202, part can certainly be performed by client 202, partly performed by game server 201.The present invention is unrestricted in executive agent, as long as perform the action disclosed in embodiment of the present invention.
illustrative methods
Below in conjunction with the application scenarios of Fig. 2, be described with reference to Figure 3 the method for the display of two-dimensional game scene according to exemplary embodiment of the invention.It should be noted that above-mentioned application scenarios is only that embodiments of the present invention are unrestricted in this regard for the ease of understanding spirit of the present invention and principle and illustrating.On the contrary, embodiments of the present invention can be applied to applicable any scene.Further, as described above, the action of following methods can be performed by server 201, can be performed by client 202, and also can part be performed by server 201, part is performed by client 202.
Shown in Figure 3, be the flow chart of method one embodiment of two-dimensional game scene display provided by the invention, the present embodiment such as specifically can comprise:
Step 301, request instruction in response to displayed scene in described two-dimensional game, according to the initial position of existing object in described displayed scene, determine the target location of the described existing object that described request instruction is corresponding; Described existing object is the current object be in described displayed scene.
The present embodiment goes for the application scenarios that user uses two-dimensional network game application on the client, and now user interface interaction equipment can be the game server of network side.User is by after on client logs to game server, whether game server meeting Real-Time Monitoring user triggers the request instruction of displayed scene on the client, if, then subsequent game server responds the request instruction of described displayed scene, according to the target location of existing object corresponding to the initial position determination request instruction of existing object in displayed scene.And if user does not trigger the request instruction of displayed scene, then game server can not perform subsequent step.
In the present embodiment, what displayed scene represented is the image being shown to user by the window of client, includes Background and existing object in this image.Wherein, Background is the image of the corresponding position in the background base map of whole scene of game of displayed scene, and existing object is then the current object be in the position of displayed scene.This existing object can comprise the player characters who of user and various NPC; Background base map is then the Background of preset whole scene of game.
Be understandable that, the request instruction of displayed scene is by user's instruction triggered on the client, wherein can comprise the position of user-selected displayed scene in whole scene of game, the existing object indication information such as target location and target direction in displayed scene.Like this, when responding this request instruction, just can go to obtain displayed scene according to indication information.Certainly, also directly indication information can not be recorded in request instruction, but the mark that record one is corresponding, and go to search corresponding indication information in preset mark corresponding relation.
It should be noted that, in the present embodiment, in each displayed scene, the initial position of existing object can be the default location pre-set, and this default location can be the fixed position adopted in prior art.When determining the target location of existing object, need to determine according to its initial position.
Step 302, according to described target location, described existing object to be added in the Background of described displayed scene, and the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtain described displayed scene; Described Background is the background base map that described displayed scene is corresponding.
It should be noted that, before adjustment, need the target direction first determining that existing object is corresponding in described request instruction.In general, target location and the target direction of existing object are all corresponding, when determining target location, just can determine target direction.Certainly, for the determination of target direction, can be first determine that target direction is determined by target location again in target location, also can be go to determine target location and target direction according to request instruction simultaneously.
Step 303, provide described displayed scene to user.
When providing to user, be on the client for the mode of user's display realizes by gained displayed scene.Wherein, client can show this displayed scene in the window of user interface.
In the present embodiment, by responding the request instruction of displayed scene, thus go to according to the initial position of existing object in displayed scene the target location determining corresponding requests instruction, thus can existing object be added in the target location of displayed scene with the target direction that request instruction is corresponding, thus make user can be obtained the displayed scene in different object's position and direction by the different request instructions assigning displayed scene according to oneself different demand, and then user can be made to obtain its easy to operate displayed scene, thus improve the convenient degree that user operates in two-dimensional game, for user brings better experience.
It should be noted that, in order to the quantity reducing the clicking operation that user will carry out when trigger request instruction improves Consumer's Experience further, can object erect-position relation in more preset displayed scenes, relativeness between the target location of existing object can be fixed in object erect-position relation, but can be different relativenesses between each object erect-position relation, such user only needs the object erect-position relation selecting its needs just can determine target location and the target direction of each existing object in displayed scene, and do not need to select respectively for each existing object again.
Shown in Figure 4, be the flow chart of another embodiment of method of two-dimensional game scene display provided by the invention.The present embodiment is on the embodiment basis shown in earlier figures 3, represents position with coordinate, and provides in step 301 a kind of concrete embodiment of the position that really sets the goal.The present embodiment such as specifically can comprise:
Step 401, request instruction in response to displayed scene in described two-dimensional game, obtain the coordinate of the initial position of described existing object in described displayed scene, as initial coordinate.
In the present embodiment, each position of existing object, displayed scene etc. can be represented with coordinate.Wherein, can be different coordinates for different positions in same scene, and also can be different coordinates in different scenes for same position.
In the present embodiment, what initial coordinate represented is the initial position that existing object is sitting in displayed scene, so this initial coordinate is the coordinate of existing object in displayed scene, its coordinate value calculates with the origin of coordinates of displayed scene.And the coordinate of displayed scene can be arranged on the summit in the upper left corner of displayed scene, and abscissa can forward to the right, ordinate can forward downward.
Step 402, according to described request instruction, determine the object erect-position relation of described displayed scene, and extract Coordinate Conversion rule corresponding to described object erect-position relation.
User, when triggering the request instruction of displayed scene, needs the object erect-position relation selected required for it, so can contain the indication information of object erect-position relation in this request instruction.Because object erect-position relation is a kind of default position relationship, so also corresponding Coordinate Conversion rule can be preset for each object erect-position relation, thus may be used for the coordinate calculating existing object target location wherein, i.e. coordinates of targets.This Coordinate Conversion rule is the corresponding relation between initial coordinate and the coordinates of targets of its correspondence.
Such as, can preset four kinds of object erect-position relations, wherein become symmetric relation between the position of same object in any two object erect-position relations, symmetry can be about the abscissa center line of displayed scene, ordinate center line or central point.As the schematic diagram of Fig. 5, be four kinds of object erect-position relations corresponding in a kind of displayed scene of fight.Wherein, displayed scene 1 and displayed scene 2 are symmetrical about abscissa center line, and displayed scene 1 and displayed scene 3 are symmetrical about ordinate center line, and displayed scene 1 and displayed scene 4 are about central point.
In the present embodiment, corresponding to above-mentioned four kinds of object erect-position relations, determined coordinate rule can be following the first rule, Second Rule, three sigma rule or the 4th rule:
Described first rule is: x 2=x 1, y 2=y 1;
Described Second Rule is: x 2=w-x 1, y 2=y 1;
Described three sigma rule is: x 2=x 1, y 2=h-y 1;
Described 4th rule is: x 2=w-x 1, y 2=h-y 1;
Wherein, described x 1for the abscissa in initial coordinate, described x 2for the abscissa in coordinates of targets, described y 1for the ordinate in initial coordinate, described y 2for the ordinate in coordinates of targets, described w is described displayed scene length on the horizontal scale, and described h is described displayed scene length on the vertical scale.Wherein, when displayed scene is the display window on screen, then w is the length of this window, and h is then the width of this window.
When determining corresponding rule from above-mentioned four kinds of Coordinate Conversion rules, determined Coordinate Conversion rule is all relevant with the object erect-position relation of target location with the object erect-position relation of initial position.Such as, in the example of aforesaid fight displayed scene, if it is displayed scene 1 that the object erect-position of initial position closes, when the object erect-position pass of target location is displayed scene 2, then determined rule is Second Rule, and when the object erect-position pass of target location is displayed scene 3, then determined rule is three sigma rule, when the object erect-position pass of target location is displayed scene 4, then determined rule is the 4th rule.Certainly, initial position can be preset fixed variable, so just only can determine Coordinate Conversion rule according to the object erect-position relation of target location.
It should be noted that, in the example of above-mentioned fight displayed scene, the position of original enemy NPC and player characters who is fixing, so original magic arts object is only drawn in original two fixing positions.And in the present embodiment, the existing object in fight displayed scene, through Coordinate Conversion, enemy NPC and player characters who can appear at four positions, and these four positions are symmetrical.In order to make magic arts object that enemy NPC and player characters who can be coordinated to show, magic arts object is drawn in the position that can adopt the mode of mirror image that magic arts object is not set in four positions.
Step 403, described Coordinate Conversion rule is utilized described initial coordinate to be converted to the coordinate of the target location of described existing object, as coordinates of targets.
During conversion, initial coordinate can be substituted in the equation group of determined Coordinate Conversion rule, the result calculated is coordinates of targets.
Step 404, according to described target location, described existing object to be added in the Background of described displayed scene, and the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtain described displayed scene; Described Background is the background base map that described displayed scene is corresponding.
Obtaining coordinates of targets, existing object directly can added to the point of displayed scene on coordinates of targets.
It should be noted that, because the present embodiment carries out implementing on the basis providing optional object erect-position relation for user, so the target direction required when adjusting the direction of existing object also can by being preset at two-dimensional game and applying in the mode corresponding with object erect-position relation.Particularly, in the present embodiment, the direction of existing object is adjusted to target direction corresponding to target location can comprise: from the corresponding relation between preset object erect-position relation and object orientation, obtain the object orientation corresponding to object erect-position relation of described displayed scene, as target direction; The direction of described existing object is adjusted to described target direction.
Step 405, provide described displayed scene to user.
By the technical scheme of the present embodiment, by presetting object erect-position relation in some common displayed scenes, wherein, target location and the target direction of each existing object is included in object erect-position relation, like this, user is when assigning the request instruction of displayed scene, select once in the object erect-position relation that can only need preset at these, just can obtain its required displayed scene, thus avoid user repeatedly clicking operation just can complete the user operation inconvenience that position and the direction of existing object each in whole displayed scene are selected and caused, and the problem of frequent reciprocal effect systematic function between interactive device.
When user asks displayed scene, first need the Background and the existing object wherein that obtain displayed scene.Can go the situation of checking diverse location in whole scene of game at any time to make user, the request instruction that can respond user goes the displayed scene obtaining diverse location in scene of game to be supplied to user.
Shown in Figure 6, be the flow chart of the another embodiment of method of two-dimensional game scene display provided by the invention, the present embodiment such as specifically can comprise:
Step 601, in response to described request instruction, obtain the existing object in the Background of described displayed scene corresponding to described request instruction and described displayed scene, and determine the initial position of described existing object in described displayed scene.
In game application, shown by displayed scene is all certain part in whole scene of game, and in whole scene of game, on the diverse location of each object meeting real-time update in its background base map.Therefore, when obtaining displayed scene, need real-time response request instruction, and remove the Background determining to be positioned at its position range in scene of game and existing object according to the position range of displayed scene.
In the present embodiment, Background and existing object can be determined by the locative mode of coordinate.Such as, see Fig. 7, show in step 601 embodiment obtaining Background and existing object in displayed scene, wherein, can have different coordinate systems under different scene, the origin of coordinates of the coordinate system of each scene can be any point in scene, as the summit in the scene upper left corner.Present embodiment such as specifically can comprise:
Step 701, according to described request instruction, determine the coordinate of the calibration point of described displayed scene in described background base map, as demarcation coordinate.
Wherein, for demarcating the position of displayed scene in scene of game, a calibration point is provided to be displayed scene.This calibration point can be the point in displayed scene, the central point of such as displayed scene or top left corner apex.The coordinate of this calibration point in background base map, also i.e. its coordinate in whole scene of game.
Step 702, according to described demarcation coordinate, corresponding for the indication range of the described displayed scene coordinate range in background base map is defined as the displaing coordinate scope of described displayed scene.
When determining displaing coordinate scope, need to determine according to demarcation coordinate.Particularly, calculate by demarcating coordinate, displayed scene length on the horizontal scale and length on the vertical scale.
Such as, when calibration point is the central point of displayed scene, suppose that demarcating coordinate is (x 3, y 3), displayed scene is respectively w, h in length that is horizontal, ordinate, and (x, y) represents that the point being arranged in displayed scene is at the coordinate of background base map, then the displaing coordinate scope of displayed scene can be expressed as:
x 3-w/2≤x≤x 3﹢w/2,y 3-h/2≤y≤y 3﹢h/2。
Step 703, will the Background of the background base map within described displaing coordinate scope as described displayed scene be positioned at, and the object that the coordinate of current time in background base map is positioned within described displaing coordinate scope is defined as existing object.
It should be noted that, the displaing coordinate scope of displayed scene is not must be completely the same with the size of displayed scene.Because displaing coordinate scope is used for choosing Background and existing object for displayed scene, and existing object itself also needs to take a coordinates regional instead of a coordinate points, so existing object also can have part to be present in displayed scene when its coordinate is positioned at beyond viewing area, so displaing coordinate scope can the size according to object on the basis of displayed scene size be expanded.Such as, the top left corner apex of suppose object is its coordinate points and in scene of game, is expressed as (x, y), and the upper left corner of displayed scene is its origin and in scene of game, is expressed as (x 0, y 0), the length on object abscissa and ordinate is respectively w o, h o, the length on displayed scene abscissa and ordinate is respectively w, h, then displaing coordinate scope can be:
x 0-w o≤x≤x 0﹢w,y 0-h o≤y≤y 0﹢h。
In addition, in present embodiment, after step 701, can be the coordinate in displayed scene by the Coordinate Conversion of object in background base map, now, displaing coordinate scope is the coordinate range in displayed scene, can not need according to demarcation coordinate and directly determine according to the size of displayed scene.Certainly, can after determining the existing object in displayed scene, then be also only the coordinate in displayed scene by the Coordinate Conversion of existing object in background base map, the number of objects of converted coordinate can be reduced like this.
Then Fig. 6 is returned.
In the present embodiment, for determined existing object, need for its initial position determined in displayed scene.Determine that when representing position with coordinate the mode of initial position can be the coordinate Coordinate Conversion of existing object in scene of game become in displayed scene, also be the invariant position of existing object, but the coordinate of this position is represented the coordinate system from the coordinate system transformation of scene of game to displayed scene.
See Fig. 8, show in step 601 flow chart of the embodiment determining the initial position of existing object in displayed scene.Present embodiment such as specifically can comprise:
Step 801, according to described request instruction, determine the coordinate of the origin of coordinates of described displayed scene in described background base map, as origin.
Wherein, the origin of coordinates of displayed scene can be any one coordinate points in displayed scene.Such as, initial point can be the top left corner apex of displayed scene, also can be that the center of displayed scene is fallen, and also can be summit, the upper right corner.The forward of two reference axis also can be arranged arbitrarily, and such as, when top left corner apex is initial point, can be to the right abscissa forward by level, will be ordinate forward straight down.
It should be noted that, the calibration point in the initial point in present embodiment and Fig. 7 illustrated embodiment can be same point, also can be different.Calibration point is used to displayed scene and locates in scene of game, and initial point is then the coordinate system for setting up displayed scene.
Step 802, according to described origin, by the difference of the coordinate of the origin of coordinates in background base map of the coordinate of described existing object in background base map and described displayed scene, as the initial coordinate of described existing object in described displayed scene.
Such as, the coordinate of existing object in background base map is (400,300), the origin of displayed scene is (200,100), then the coordinate of existing object in displayed scene is (400-200,300-100), namely (200,300).
It should be noted that, in kind of the embodiment of two shown in Fig. 7 and Fig. 8, to there is not the sequencing in inevitable execution.When adopting Fig. 7 and Fig. 8 to perform step 601 at the same time, can by Fig. 7 all complete in steps after perform step in Fig. 8 again, also the step of Fig. 7 and Fig. 8 synchronously can carry out, first can also perform step 701 and perform step 801 and 802 again, and then perform step 702 and 703.Such as, when calibration point and initial point are, synchronously step 701 and step 801 can be performed at same; Or, when calibration point and initial point are not, first can perform step 701 at same, perform step 801 and 802 afterwards, then perform step 702 and 703.
Then return Fig. 6, after step 601 is complete, enter step 602.
Step 602, request instruction in response to displayed scene in described two-dimensional game, according to the initial position of existing object in described displayed scene, determine the target location of the described existing object that described request instruction is corresponding; Described existing object is the current object be in described displayed scene.
It should be noted that, can carry out the response of request instruction in step 602 and step 601 simultaneously, namely, only to the response of this request instruction once, in this time response process, extract all indication informations of needs, comprise the target location and target direction etc. of the position of displayed scene, each existing object.
Step 603, according to described target location, described existing object to be added in the Background of described displayed scene, and the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtain described displayed scene; Described Background is the background base map that described displayed scene is corresponding.
Step 604, provide described displayed scene to user.
The technical scheme of the present embodiment, by the request instruction of response displayed scene is determined the position of displayed scene and is obtained in scene of game the background base map and existing object that are positioned at displayed scene scope, user can be made to check the situation in any one region in whole scene of game at any time, thus improve the experience of user in game application.
In order to make those skilled in the art more clearly understand technical scheme of the present invention, be described with the method for an embody rule scene to two-dimensional game scene display in the present invention below.This application scenarios responds the request instruction of the displayed scene of fight, according to request instruction obtain displayed scene position and and then the position of wherein existing object is converted, wherein, this displayed scene is called fight block, and is converted position by the object erect-position relation preset.In this application scenarios, represent the position of each object and fight block with coordinate; Coordinate in scene of game is called world coordinates, and the coordinate in fight block is called screen coordinate; The calibration point of fight block is its central point, and this calibration point is called virtual video camera, under fight block is positioned at virtual video camera; The initial point of fight block is its top left corner apex; The coordinate points of each object is its top left corner apex.
See Fig. 9, be the flow chart of the method embodiment again of two-dimensional game scene provided by the invention display, the present embodiment such as specifically can comprise:
Step 901, response fight block request instruction and extract indication information.
World coordinates (the x of virtual video camera of step 902, block of determining to fight from indication information cam, y cam) and the world coordinates (x of fight block initial point 0, y 0).
Step 903, by the world coordinates (x of each object obj, y obj) be converted to screen coordinate (x under virtual video camera scr, y scr):
Wherein, x scr=x obj-x 0, y scr=y obj-y 0.
Step 904, the background base map within the scope of displaing coordinate under virtual video camera and object intercepted Background for fight block and existing object:
Displaing coordinate scope is :-w obj≤ x scr≤ w scr,-h obj≤ y scr≤ y 0﹢ h scr.Wherein, w obj, h objrepresent the length on the abscissa of object, ordinate, w scr, h scrrepresent the length on the abscissa of fight block, ordinate.
Step 905, from indication information, determine object erect-position relation.
Step 906, utilize Coordinate Conversion rule the screen coordinate of existing object is converted: Coordinate Conversion rule is determined by object erect-position relation, convert and the screen coordinate of existing object be converted to coordinates of targets from initial coordinate.
Step 907, existing object to be added in the Background of fight block: add according to gained coordinates of targets.
The direction of step 908, adjustment existing object is to target direction: target direction is determined by object erect-position relation.
Step 909, provide fight block to user: above-mentioned existing object and Background are rendered on screen.
By the technical scheme of the present embodiment, user can be made according to the fight block in the different object's position of oneself different Requirement Acquisition and direction, and make only need once select selected object erect-position relation assigning request instruction, the situation in any one region in scene of game can also be checked at any time, thus improve the experience of user in two-dimensional game application.
example devices
After the method describing exemplary embodiment of the invention, next, with reference to Figure 10, Figure 10 is to the equipment of exemplary embodiment of the invention (such as, game server or client), for the structural representation of an embodiment of two-dimensional game scene display, the equipment of exemplary embodiment of the invention, such as, specifically can comprise:
Target location determining unit 1001, for the request instruction in response to displayed scene in described two-dimensional game, according to the initial position of existing object in described displayed scene, determines the target location of the described existing object that described request instruction is corresponding; Described existing object is the current object be in described displayed scene;
Adding device 1002, for according to described target location, adds in the Background of described displayed scene by described object; Described Background is the background base map that described scene of game is corresponding;
Adjustment unit 1003, for the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtains described displayed scene;
Display unit 1004, for providing described displayed scene to user.
Wherein, as shown in figure 11, described target location determining unit 1001 such as can comprise:
Initial coordinate obtains subelement 1101, for obtaining the coordinate of the initial position of described existing object in described displayed scene, as initial coordinate;
Subelement 1102 is determined in direction, for according to described request instruction, determines the object erect-position relation of described displayed scene;
Rule Extraction subelement 1103, for extracting Coordinate Conversion rule corresponding to described object erect-position relation;
Coordinate Conversion subelement 1104, for utilizing the regular coordinate described initial coordinate being converted to the target location of described existing object of described Coordinate Conversion, as coordinates of targets.
Wherein, described Coordinate Conversion rule is the first rule, Second Rule, three sigma rule or the 4th rule;
Described first rule is: x 2=x 1, y 2=y 1;
Described Second Rule is: x 2=w-x 1, y 2=y 1;
Described three sigma rule is: x 2=x 1, y 2=h-y 1;
Described 4th rule is: x 2=w-x 1, y 2=h-y 1;
Wherein, described x 1for the abscissa in initial coordinate, described x 2for the abscissa in coordinates of targets, described y 1for the ordinate in initial coordinate, described y 2for the ordinate in coordinates of targets, described w is described displayed scene length on the horizontal scale, and described h is described displayed scene length on the vertical scale.
Wherein, as shown in figure 12, described adjustment unit 1003 can specifically comprise:
Target direction obtains subelement 1201, for from the corresponding relation between preset object erect-position relation and object orientation, obtains the object orientation corresponding to object erect-position relation of described displayed scene, as target direction;
Target direction adjustment subelement 1202, for being adjusted to described target direction by the direction of described existing object.
As shown in figure 13, be the structural representation of the another embodiment of equipment of two-dimensional game scene display provided by the invention.Except the structure of Figure 10, described equipment such as can also comprise:
Current acquiring unit 1301, in response to described request instruction, obtains the existing object in the Background of described displayed scene corresponding to described request instruction and described displayed scene;
Initial position determining unit 1302, for determining the initial position of described existing object in described displayed scene.
Wherein, as shown in figure 14, described current acquiring unit 1301 can specifically comprise:
Demarcate coordinate determination subelement 1401, for according to described request instruction, determine the coordinate of the calibration point of described displayed scene in described background base map, as demarcation coordinate;
Displaing coordinate scope determination subelement 1402, for according to described demarcation coordinate, is defined as the displaing coordinate scope of described displayed scene by corresponding for the indication range of the described displayed scene coordinate range in background base map;
Current background obtains subelement 1403, for being positioned at the Background of the background base map within described displaing coordinate scope as described displayed scene;
Existing object obtains subelement 1404, is defined as existing object for the object be positioned within described displaing coordinate scope by the coordinate of current time in background base map.
Wherein, as shown in figure 15, described initial position determining unit 1302 such as can specifically comprise:
Origin determination subelement 1501, for according to described request instruction, determines the coordinate of the origin of coordinates of described displayed scene in described background base map, as origin;
Initial coordinate computation subunit 1502, for according to described origin, by the difference of the coordinate of the origin of coordinates in background base map of the coordinate of described existing object in background base map and described displayed scene, as the initial coordinate of described existing object in described displayed scene.
Visible, the equipment that embodiment of the present invention provides (such as, game server), user can be made according to the fight block in the different object's position of oneself different Requirement Acquisition and direction, and make only need once select selected object erect-position relation assigning request instruction, the situation in any one region in scene of game can also be checked at any time, thus improve the experience of user in two-dimensional game application.
Although it should be noted that the some unit or subelement that are referred to equipment (such as, game server) in above-detailed, this division is only not enforceable.In fact, according to the embodiment of the present invention, the Characteristic and function of two or more unit above-described can be specialized in a unit.Otherwise, the Characteristic and function of an above-described unit can Further Division for be specialized by multiple unit.
In addition, although describe the operation of the inventive method in the accompanying drawings with particular order, this is not that requirement or hint must perform these operations according to this particular order, or must perform the result that all shown operation could realize expectation.On the contrary, the step described in flow chart can change execution sequence.Additionally or alternatively, some step can be omitted, multiple step be merged into a step and perform, and/or a step is decomposed into multiple step and perform.
The verb mentioned in application documents " comprises ", those elements except recording in application documents are not got rid of in " comprising " and paradigmatic use thereof or the existence of element except step or step.Article "a" or "an" before element does not get rid of the existence of multiple this element.
Although describe spirit of the present invention and principle with reference to some detailed description of the invention, but should be appreciated that, the present invention is not limited to disclosed detailed description of the invention, can not combine to be benefited to the feature that the division of each side does not mean that in these aspects yet, this division is only the convenience in order to state.The present invention is intended to contain the interior included various amendment of spirit and scope and the equivalent arrangements of claims.The scope of claims meets the most wide in range explanation, thus comprises all such amendments and equivalent structure and function.
Accompanying drawing explanation
By reference to accompanying drawing reading detailed description hereafter, above-mentioned and other objects of exemplary embodiment of the invention, feature and advantage will become and should be readily appreciated that.In the accompanying drawings, show some embodiments of the present invention by way of example, and not by way of limitation, wherein:
Fig. 1 schematically shows the block diagram of the exemplary computer system 100 being suitable for realizing embodiment of the present invention;
Fig. 2 schematically shows the block schematic illustration of an exemplary application scene of embodiments of the present invention;
Fig. 3 schematically shows the flow chart according to method one embodiment of two-dimensional game scene display in the present invention;
Fig. 4 schematically shows the flow chart according to another embodiment of method of two-dimensional game scene display in the present invention;
Fig. 5 schematically shows the schematic diagram of four kinds of object erect-position relations corresponding in a kind of displayed scene according to an embodiment in the present invention;
Fig. 6 schematically shows the flow chart according to the another embodiment of method of two-dimensional game scene display in the present invention;
Fig. 7 schematically shows the flow chart of the embodiment according to the Background and existing object obtaining displayed scene in step 601 in the present invention;
Fig. 8 schematically shows the flow chart according to determining existing object embodiment of initial position in displayed scene in step 601 in the present invention;
Fig. 9 schematically shows the flow chart according to the method embodiment again of two-dimensional game scene display in the present invention;
Figure 10 schematically shows the structured flowchart according to equipment one embodiment of two-dimensional game scene display in the present invention;
Figure 11 schematically shows the structured flowchart according to target location determining unit 1001 in equipment in the present invention one embodiment;
Figure 12 schematically shows the structured flowchart according to adjustment unit 1003 in equipment in the present invention one embodiment;
Figure 13 schematically shows the structured flowchart according to the another embodiment of equipment of two-dimensional game scene display in the present invention;
Figure 14 schematically shows the structured flowchart according to acquiring unit 1301 current in the another embodiment of equipment in the present invention;
Figure 15 schematically shows the structured flowchart according to initial position determining unit 1302 in the another embodiment of equipment in the present invention.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Detailed description of the invention
Below with reference to some illustrative embodiments, principle of the present invention and spirit are described.Should be appreciated that providing these embodiments is only used to enable those skilled in the art understand better and then realize the present invention, and not limit the scope of the invention by any way.On the contrary, provide these embodiments to be to make the disclosure more thorough and complete, and the scope of the present disclosure intactly can be conveyed to those skilled in the art.
Fig. 1 shows the block diagram of the exemplary computer system 100 being suitable for realizing embodiment of the present invention.As shown in Figure 1, computing system 100 can comprise: CPU (CPU) 101, random access memory (RAM) 102, read-only storage (ROM) 103, system bus 104, hard disk controller 105, KBC 106, serial interface controller 107, parallel interface controller 108, display controller 109, hard disk 110, keyboard 111, serial peripheral equipment 112, concurrent peripheral equipment 113 and display 114.In these equipment, what be coupled with system bus 104 has CPU 101, RAM 102, ROM 103, hard disk controller 105, KBC 106, serialization controller 107, parallel controller 108 and display controller 109.Hard disk 110 is coupled with hard disk controller 105, keyboard 111 is coupled with KBC 106, serial peripheral equipment 112 is coupled with serial interface controller 107, and concurrent peripheral equipment 113 is coupled with parallel interface controller 108, and display 114 is coupled with display controller 109.Should be appreciated that the structured flowchart described in Fig. 1 is only used to the object of example, instead of limitation of the scope of the invention.In some cases, can increase or reduce some equipment as the case may be .
Art technology technical staff know, embodiments of the present invention can be implemented as a kind of system, method or computer program.Therefore, the disclosure can be implemented as following form, that is: hardware, completely software (comprising firmware, resident software, microcode etc.) completely, or the form that hardware and software combines, be commonly referred to as " circuit ", " module " or " system " herein.In addition, in certain embodiments, the present invention can also be embodied as the form of the computer program in one or more computer-readable medium, comprises computer-readable program code in this computer-readable medium.
Any combination of one or more computer-readable medium can be adopted.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable recording medium such as may be, but not limited to, the system of electricity, magnetic, optical, electrical magnetic, infrared ray or semiconductor, device or device, or combination above arbitrarily.The example more specifically (non-exhaustive examples) of computer-readable recording medium such as can comprise: the combination with the electrical connection of one or more wire, portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), erasable type programmable read only memory (EPROM or flash memory), optical fiber, Portable, compact disk read-only storage (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate.In this document, computer-readable recording medium can be any comprising or stored program tangible medium, and this program can be used by instruction execution system, device or device or be combined with it.
The data-signal that computer-readable signal media can comprise in a base band or propagate as a carrier wave part, wherein carries computer-readable program code.The data-signal of this propagation can adopt various ways, includes but not limited to the combination of electromagnetic signal, optical signal or above-mentioned any appropriate.Computer-readable signal media can also be any computer-readable medium beyond computer-readable recording medium, and this computer-readable medium can send, propagates or transmit the program for being used by instruction execution system, device or device or be combined with it.
The program code that computer-readable medium comprises with any suitable medium transmission, can include but not limited to wireless, electric wire, optical cable, RF etc., or the combination of above-mentioned any appropriate.
The computer program code operated for performing the present invention can be write with one or more programming languages or its combination, described programming language comprises object oriented program language-such as Java, Smalltalk, C++, also comprises conventional process type programming language-such as " C " language or similar programming language.Program code can fully perform on the user computer, partly perform on the user computer, as one, independently software kit performs, partly part performs on the remote computer or performs on remote computer or server completely on the user computer.In the situation relating to remote computer, remote computer can be connected to subscriber computer by the network of any kind (comprising LAN (LAN) or wide area network (WAN)), or, outer computer (such as utilizing ISP to pass through Internet connection) can be connected to.
Below with reference to the flow chart of the method for the embodiment of the present invention and the block diagram of equipment (or system), embodiments of the present invention are described.Should be appreciated that the combination of each square frame in each square frame of flow chart and/or block diagram and flow chart and/or block diagram can be realized by computer program instructions.These computer program instructions can be supplied to the processor of all-purpose computer, special-purpose computer or other programmable data treating apparatus, thus produce a kind of machine, these computer program instructions are performed by computer or other programmable data treating apparatus, create the device of the function/operation specified in the square frame in realization flow figure and/or block diagram.
Also can these computer program instructions be stored in the computer-readable medium that computer or other programmable data treating apparatus can be made to work in a specific way, like this, the instruction be stored in computer-readable medium just produces the product of the command device of the function/operation specified in a square frame comprising in realization flow figure and/or block diagram.
Also can computer program instructions be loaded on computer, other programmable data treating apparatus or miscellaneous equipment, make to perform sequence of operations step on computer, other programmable data treating apparatus or miscellaneous equipment, to produce computer implemented process, thus make the instruction performed on computer or other programmable device can provide the process of the function/operation specified in the square frame in realization flow figure and/or block diagram.
According to the embodiment of the present invention, the method and apparatus of a kind of two-dimensional game scene display is proposed.
In this article, it is to be appreciated that any number of elements in accompanying drawing is all unrestricted for example, and any name is all only for distinguishing, and does not have any limitation.
Below with reference to some representative embodiments of the present invention, explaination principle of the present invention and spirit in detail.

Claims (14)

1. a method, be applied to two-dimensional game application, described method comprises:
In response to the request instruction of displayed scene in described two-dimensional game, according to the initial position of existing object in described displayed scene, determine the target location of the described existing object that described request instruction is corresponding; Described existing object is the current object be in described displayed scene;
According to described target location, described existing object is added in the Background of described displayed scene, and the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtain described displayed scene; Described Background is the background base map that described displayed scene is corresponding;
Described displayed scene is provided to user.
2. method according to claim 1, described according to the initial position of existing object in described displayed scene, determine the target location of existing object described in described request instruction, comprising:
Obtain the coordinate of the initial position of described existing object in described displayed scene, as initial coordinate;
According to described request instruction, determine the object erect-position relation of described displayed scene, and extract Coordinate Conversion rule corresponding to described object erect-position relation;
Described Coordinate Conversion rule is utilized described initial coordinate to be converted to the coordinate of the target location of described existing object, as coordinates of targets.
3. method according to claim 2, described Coordinate Conversion rule is the first rule, Second Rule, three sigma rule or the 4th rule;
Described first rule is: x 2=x 1, y 2=y 1;
Described Second Rule is: x 2=w-x 1, y 2=y 1;
Described three sigma rule is: x 2=x 1, y 2=h-y 1;
Described 4th rule is: x 2=w-x 1, y 2=h-y 1;
Wherein, described x 1for the abscissa in initial coordinate, described x 2for the abscissa in coordinates of targets, described y 1for the ordinate in initial coordinate, described y 2for the ordinate in coordinates of targets, described w is described displayed scene length on the horizontal scale, and described h is described displayed scene length on the vertical scale.
4. method according to claim 2, the described direction by described existing object is adjusted to target direction corresponding to described target location, comprising:
From the corresponding relation between preset object erect-position relation and object orientation, obtain the object orientation corresponding to object erect-position relation of described displayed scene, as target direction;
The direction of described existing object is adjusted to described target direction.
5. method according to claim 1, described according to the initial position of existing object in described displayed scene, before determining the target location of described existing object, also comprise:
In response to described request instruction, obtain the existing object in the Background of described displayed scene corresponding to described request instruction and described displayed scene, and determine the initial position of described existing object in described displayed scene.
6. method according to claim 5, obtains the existing object in the Background of described displayed scene and described displayed scene, comprising:
According to described request instruction, determine the coordinate of the calibration point of described displayed scene in described background base map, as demarcation coordinate;
According to described demarcation coordinate, corresponding for the indication range of the described displayed scene coordinate range in background base map is defined as the displaing coordinate scope of described displayed scene;
To the Background of the background base map within described displaing coordinate scope as described displayed scene be positioned at, and the object that the coordinate of current time in background base map is positioned within described displaing coordinate scope is defined as existing object.
7. method according to claim 5, describedly determines the initial position of described existing object in described displayed scene, comprising:
According to described request instruction, determine the coordinate of the origin of coordinates of described displayed scene in described background base map, as origin;
According to described origin, by the difference of the coordinate of the origin of coordinates in background base map of the coordinate of described existing object in background base map and described displayed scene, as the initial coordinate of described existing object in described displayed scene.
8. an equipment, be applied to two-dimensional game application, described equipment comprises:
Target location determining unit, for the request instruction in response to displayed scene in described two-dimensional game, according to the initial position of existing object in described displayed scene, determines the target location of the described existing object that described request instruction is corresponding; Described existing object is the current object be in described displayed scene;
Adding device, for according to described target location, adds in the Background of described displayed scene by described object; Described Background is the background base map that described scene of game is corresponding;
Adjustment unit, for the direction of described existing object is adjusted to target direction corresponding to described request instruction, obtains described displayed scene;
Display unit, for providing described displayed scene to user.
9. equipment according to claim 8, described target location determining unit comprises:
Initial coordinate obtains subelement, for obtaining the coordinate of the initial position of described existing object in described displayed scene, as initial coordinate;
Subelement is determined in direction, for according to described request instruction, determines the object erect-position relation of described displayed scene;
Rule Extraction subelement, for extracting Coordinate Conversion rule corresponding to described object erect-position relation;
Coordinate Conversion subelement, for utilizing the regular coordinate described initial coordinate being converted to the target location of described existing object of described Coordinate Conversion, as coordinates of targets.
10. equipment according to claim 9, described Coordinate Conversion rule is the first rule, Second Rule, three sigma rule or the 4th rule;
Described first rule is: x 2=x 1, y 2=y 1;
Described Second Rule is: x 2=w-x 1, y 2=y 1;
Described three sigma rule is: x 2=x 1, y 2=h-y 1;
Described 4th rule is: x 2=w-x 1, y 2=h-y 1;
Wherein, described x 1for the abscissa in initial coordinate, described x 2for the abscissa in coordinates of targets, described y 1for the ordinate in initial coordinate, described y 2for the ordinate in coordinates of targets, described w is described displayed scene length on the horizontal scale, and described h is described displayed scene length on the vertical scale.
11. equipment according to claim 9, described adjustment unit comprises:
Target direction obtains subelement, for from the corresponding relation between preset object erect-position relation and object orientation, obtains the object orientation corresponding to object erect-position relation of described displayed scene, as target direction;
Target direction adjustment subelement, for being adjusted to described target direction by the direction of described existing object.
12. equipment according to claim 8, described equipment also comprises:
Current acquiring unit, in response to described request instruction, obtains the existing object in the Background of described displayed scene corresponding to described request instruction and described displayed scene;
Initial position determining unit, for determining the initial position of described existing object in described displayed scene.
13. equipment according to claim 12, described current acquiring unit comprises:
Demarcate coordinate determination subelement, for according to described request instruction, determine the coordinate of the calibration point of described displayed scene in described background base map, as demarcation coordinate;
Displaing coordinate scope determination subelement, for according to described demarcation coordinate, is defined as the displaing coordinate scope of described displayed scene by corresponding for the indication range of the described displayed scene coordinate range in background base map;
Current background obtains subelement, for being positioned at the Background of the background base map within described displaing coordinate scope as described displayed scene;
Existing object obtains subelement, is defined as existing object for the object be positioned within described displaing coordinate scope by the coordinate of current time in background base map.
14. equipment according to claim 12, described initial position determining unit comprises:
Origin determination subelement, for according to described request instruction, determines the coordinate of the origin of coordinates of described displayed scene in described background base map, as origin;
Initial coordinate computation subunit, for according to described origin, by the difference of the coordinate of the origin of coordinates in background base map of the coordinate of described existing object in background base map and described displayed scene, as the initial coordinate of described existing object in described displayed scene.
CN201310116538.4A 2013-04-03 2013-04-03 Display method and display equipment of two-dimension game scene Active CN103157281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310116538.4A CN103157281B (en) 2013-04-03 2013-04-03 Display method and display equipment of two-dimension game scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310116538.4A CN103157281B (en) 2013-04-03 2013-04-03 Display method and display equipment of two-dimension game scene

Publications (2)

Publication Number Publication Date
CN103157281A CN103157281A (en) 2013-06-19
CN103157281B true CN103157281B (en) 2015-06-10

Family

ID=48581128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310116538.4A Active CN103157281B (en) 2013-04-03 2013-04-03 Display method and display equipment of two-dimension game scene

Country Status (1)

Country Link
CN (1) CN103157281B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375343A (en) * 2016-10-31 2017-02-01 上海斐讯数据通信技术有限公司 Client, server, interactive communication system and communication ways

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104922906B (en) * 2015-07-15 2018-09-04 网易(杭州)网络有限公司 Action executes method and apparatus
CN105243268B (en) * 2015-09-18 2018-06-22 网易(杭州)网络有限公司 A kind of map localization method, device and user terminal
CN105335064B (en) * 2015-09-29 2017-08-15 腾讯科技(深圳)有限公司 A kind of information processing method and terminal
CN105912232B (en) * 2016-03-31 2020-09-25 联想(北京)有限公司 Information processing method and electronic equipment
CN106215420B (en) * 2016-07-11 2019-12-06 畅游云端(北京)科技有限公司 Method and apparatus for creating game scene
CN106362396A (en) * 2016-08-18 2017-02-01 网易(杭州)网络有限公司 Game performance test method and apparatus
CN106267822A (en) * 2016-08-18 2017-01-04 网易(杭州)网络有限公司 The method of testing of game performance and device
CN106503477B (en) * 2016-11-24 2018-09-07 腾讯科技(深圳)有限公司 The control method and relevant apparatus of virtual objects
CN107050862B (en) * 2017-05-19 2018-06-15 网易(杭州)网络有限公司 Display control method and system, the storage medium of scene of game
WO2018209707A1 (en) 2017-05-19 2018-11-22 网易(杭州)网络有限公司 Method and system for use in controlling display of game scene, and storage medium
CN107694086B (en) * 2017-10-13 2018-11-23 网易(杭州)网络有限公司 Information processing method and device, storage medium, the electronic equipment of game system
CN113064530A (en) * 2021-04-26 2021-07-02 上海哔哩哔哩科技有限公司 Image processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924873A (en) * 2006-09-19 2007-03-07 北京金山数字娱乐科技有限公司 Game map storage method and device, display method and system
CN102236906A (en) * 2011-05-20 2011-11-09 深圳市木森动漫游戏有限公司 Flash two-dimensional scroll scene

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11203504A (en) * 1998-01-20 1999-07-30 Taito Corp Image processing method for video game device
JP4387511B2 (en) * 1999-09-09 2009-12-16 株式会社バンダイナムコゲームス GAME DEVICE AND INFORMATION STORAGE MEDIUM
US20080076556A1 (en) * 2006-09-22 2008-03-27 Big Fish Games, Inc. Simulated 3D View of 2D Background Images and Game Objects

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924873A (en) * 2006-09-19 2007-03-07 北京金山数字娱乐科技有限公司 Game map storage method and device, display method and system
CN102236906A (en) * 2011-05-20 2011-11-09 深圳市木森动漫游戏有限公司 Flash two-dimensional scroll scene

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375343A (en) * 2016-10-31 2017-02-01 上海斐讯数据通信技术有限公司 Client, server, interactive communication system and communication ways

Also Published As

Publication number Publication date
CN103157281A (en) 2013-06-19

Similar Documents

Publication Publication Date Title
CN103157281B (en) Display method and display equipment of two-dimension game scene
US9937422B2 (en) Voxel-based, real-time acoustic adjustment
EP3965431A1 (en) Video data processing method and related device
WO2017092303A1 (en) Virtual reality scenario model establishing method and device
US20150356770A1 (en) Street view map display method and system
US20170186219A1 (en) Method for 360-degree panoramic display, display module and mobile terminal
CN111414225B (en) Three-dimensional model remote display method, first terminal, electronic device and storage medium
US20230290043A1 (en) Picture generation method and apparatus, device, and medium
WO2023226371A1 (en) Target object interactive reproduction control method and apparatus, device and storage medium
CN110909439A (en) AR-based assembly method and device and terminal
CN113470112A (en) Image processing method, image processing device, storage medium and terminal
CN110286906B (en) User interface display method and device, storage medium and mobile terminal
US10293259B2 (en) Control of audio effects using volumetric data
CN111862349A (en) Virtual brush implementation method and device and computer readable storage medium
CN110990106B (en) Data display method and device, computer equipment and storage medium
CN115671735A (en) Object selection method and device in game and electronic equipment
CN112929685B (en) Interaction method and device for VR live broadcast room, electronic device and storage medium
CN114913277A (en) Method, device, equipment and medium for three-dimensional interactive display of object
CN114170381A (en) Three-dimensional path display method and device, readable storage medium and electronic equipment
CN108920598A (en) Panorama sketch browsing method, device, terminal device, server and storage medium
CN116129085B (en) Virtual object processing method, device, storage medium, and program product
US11910068B2 (en) Panoramic render of 3D video
US20240020910A1 (en) Video playing method and apparatus, electronic device, medium, and program product
US20230078041A1 (en) Method of displaying animation, electronic device and storage medium
KR101159705B1 (en) An object guiding system for producing virtual reality based on the billboard mapping and the method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant