CN109771943A - A kind of building method and device of scene of game - Google Patents

A kind of building method and device of scene of game Download PDF

Info

Publication number
CN109771943A
CN109771943A CN201910010461.XA CN201910010461A CN109771943A CN 109771943 A CN109771943 A CN 109771943A CN 201910010461 A CN201910010461 A CN 201910010461A CN 109771943 A CN109771943 A CN 109771943A
Authority
CN
China
Prior art keywords
scene
game
soil block
new
server
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.)
Pending
Application number
CN201910010461.XA
Other languages
Chinese (zh)
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 CN201910010461.XA priority Critical patent/CN109771943A/en
Publication of CN109771943A publication Critical patent/CN109771943A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention provides a kind of building method of scene of game and devices, software application is executed on the processor of mobile terminal and is rendered on the screen of the mobile terminal obtains graphic user interface, the graphic user interface includes a part of scene of game, the corresponding template data of soil block is preserved in the mobile terminal, the soil block has corresponding pixel size, the described method includes: receiving server sending logic coordinate after entering scene of game;The logical coordinates is converted to the pixel coordinate of the scene of game;User's ken of the scene of game is determined centered on the pixel coordinate;The visual soil block in user's ken is determined according to the pixel size of the soil block;The corresponding template data of the visual soil block is loaded to construct scene of game.In the embodiment of the present invention after entering scene of game, the visual soil block in user's ken can be determined according to pixel size and is loaded, there is no need to load soil block all in the scene of game, so the consuming of memory source in mobile terminal can be reduced.

Description

A kind of building method and device of scene of game
Technical field
The present invention relates to Internet technical fields, building method and a kind of sports ground more particularly to a kind of scene of game The constructing apparatus of scape.
Background technique
Sand-play therapy is to constitute map (scene of game) by one or more soil block, generally with map compared with With the characteristics of big, it is also its feature that furthermore interactivity is strong, freedom degree is high, chance event is more, creativeness is strong etc..
Wherein, Sand-play therapy game scenario can be by cocos-2dx engine renders 2d scene.In cocos-2dx wash with watercolours When contaminating scene, then creation Scene (scene) first creates a Layer (figure layer) on Scene.What Layer was generally comprised It is the content being directly displayed on mobile terminal screen, and the input of user can be received, such as touches, keyboard input.It can To add picture spirit, text etc., to construct content to be shown in Scene on Layer.
Cocos-2dx engine provides Tilemap mechanism to make biggish map, however cocos-2dx engine Tilemap mechanism be to have customized map in advance, therefore be easy to give user a kind of unalterable experience.In addition, due to current Map in Sand-play therapy is larger, so if can be very huge using the data that Tilemap mechanism constructs, and it also requires collection At the tools of the Tilemap of cocos-2dx engine, the waste of mobile terminal memory source is caused.
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 A kind of building method of the scene of game to solve the above problems and a kind of corresponding constructing apparatus of scene of game.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of building methods of scene of game, in mobile terminal Processor on execute software application and on the screen of the mobile terminal rendering obtain graphic user interface, the figure is used Family interface includes a part of scene of game, preserves the corresponding template data of soil block, the soil in the mobile terminal Block has corresponding pixel size, which comprises
After entering scene of game, server sending logic coordinate is received;
The logical coordinates is converted to the pixel coordinate of the scene of game;
User's ken of the scene of game is determined centered on the pixel coordinate;
The visual soil block in user's ken is determined according to the pixel size of the soil block;
The corresponding template data of the visual soil block is loaded to construct scene of game.
Preferably, there is figure layer, the figure layer size and the scene of game are in the same size in the scene of game.
Preferably, the server has corresponding host identification, the method also includes:
Obtain mapping table;The mapping table includes the server identification and ground map logo;
When determining the destination server logged in, the server identification corresponding ground icon of the destination server is obtained Know;
The corresponding map data file of described ground map logo is obtained, the map data file includes the corresponding mould of soil block Plate data.
Preferably, it after the corresponding template data of the load visual soil block is to construct scene of game, also wraps It includes:
In response to slide on the graphical user interface, new pixel coordinate is determined according to the slide;
The new pixel coordinate is converted into new logic coordinate;
The new logic coordinate is sent to the server, the server is for determining that the new logic coordinate pair is answered User's ken in new visual soil block, and the template data of the new visual soil block is sent to the mobile terminal;
The template data of the new visual soil block is loaded to update the scene of game.
Preferably, the method also includes:
Recycling has not loaded the occupied memory source of template data of soil block in new user's ken.
Preferably, it after the corresponding template data of the load visual soil block is to construct scene of game, also wraps It includes:
When detecting processing operation on the graphical user interface, the corresponding location information of the processing operation is determined;
When the location information is located in specified region, the processing operation is responded in the scene of game.
The embodiment of the invention also discloses a kind of constructing apparatus of scene of game, execute on the processor of mobile terminal soft Part is applied and rendering obtains graphic user interface on the screen of the mobile terminal, and the graphic user interface includes sports ground A part of scape preserves the corresponding template data of soil block in the mobile terminal, and the soil block has corresponding pixel Size, described device include:
Logical coordinates receiving module, for receiving server sending logic coordinate after entering scene of game;
Logical coordinates conversion module, for the logical coordinates to be converted to the pixel coordinate of the scene of game;
User's ken determining module, for determining user's ken of the scene of game centered on the pixel coordinate;
Visual soil block determining module, for according to the pixel size of the soil block determine in user's ken can Depending on soil block;
Scene of game module construction, for loading the corresponding template data of the visual soil block to construct scene of game.
Preferably, there is figure layer, the figure layer size and the scene of game are in the same size in the scene of game.
Preferably, the server has corresponding host identification, described device further include:
Identifier acquisition module, for obtaining mapping table;The mapping table includes the server identification and ground Map logo;
Destination server login module, for obtaining the destination server when determining the destination server logged in Server identification corresponding ground map logo;
Map data file obtains module, for obtaining the corresponding map data file of described ground map logo, the map Data file includes the corresponding template data of soil block.
Preferably, further includes:
Sliding behaviour's respond module, in response to slide on the graphical user interface, according to the sliding Operation determines new pixel coordinate;
New pixel coordinate conversion module, for the new pixel coordinate to be converted to new logic coordinate;
New logic coordinate sending module, for the new logic coordinate to be sent to the server, the server is used In determining the new visual soil block in the corresponding user's ken of the new logic coordinate, and by the template of the new visual soil block Data are sent to the mobile terminal;
Scene of game update module, for loading the template data of the new visual soil block to update the sports ground Scape.
Preferably, described device further include:
Memory source recycling module, for recycling the template data institute for not loaded soil block in new user's ken The memory source of occupancy.
Preferably, further includes:
Processing operation respond module when for detecting processing operation on the graphical user interface, determines the place Reason operates corresponding location information;
Operation processing module, for being responded in the scene of game when the location information is located in specified region The processing operation.
The embodiment of the invention also discloses a kind of electronic equipment, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the electronic equipment executes one or more method as described above.
The embodiment of the invention also discloses one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that the processor executes one or more method as described above.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention will receive server sending logic coordinate, mobile terminal then can after entering scene of game The pixel coordinate of scene of game is converted to according to logical coordinates, and user's view of scene of game is determined centered on pixel coordinate Domain, the pixel size for being then based on soil block determine visual soil block in user's ken, it is corresponding finally to load visual soil block Template data to construct scene of game.In the embodiment of the present invention after entering scene of game, it can be determined according to pixel size Visual soil block in user's ken simultaneously loads, there is no need to load soil block all in the scene of game, so can To reduce the consuming of memory source in mobile terminal.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the building method embodiment of scene of game of the invention;
Fig. 2 is the schematic diagram of soil block in a kind of scene of game of the invention;
Fig. 3 is a kind of structural block diagram of the constructing apparatus embodiment of scene of game of the invention.
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.
Referring to Fig.1, a kind of step flow chart of the building method embodiment of scene of game of the invention is shown, in movement Software application is executed on the processor of terminal and is rendered on the screen of the mobile terminal obtains graphic user interface, the figure Shape user interface includes a part of scene of game.
It should be noted that mobile terminal can be the various electronic equipments such as mobile phone, tablet computer, game machine, PDA.? Runs software is applied on mobile terminal renders graphic user interface on the screen of the mobile terminal, shown by graphic user interface Content at least partly includes a scene of game partially or fully, the specific form of scene of game can be it is rectangular, can also be with It is other shapes (for example, circle etc.).Software application can be Sand-play therapy, and when running Sand-play therapy, scene of game is logical It is often to be made of multiple soil blocks.
In embodiments of the present invention, the corresponding template data of soil block, the soil block are preserved in the mobile terminal With corresponding pixel size.For example, if some scene of game of Sand-play therapy be made of 250000 soil blocks, then The corresponding template data of 250000 soil blocks can be stored in local using binary system (such as 1.txt) by mobile terminal side.Its In, the template data of soil block can be soil picture.
Assuming that each soil block is the diamond shape soil block of 220*110 pixel, each scene of game includes 250000 soils Block, then the size of scene of game is then 110000*55000 pixel.Soil block include iron ore, timber, faction strong point, repair The multiple types such as sieve strong point, outpost, each type have different grade distinctions again.
In embodiments of the present invention, there is figure layer (layer) in the scene of game, the figure layer size and the game Scene is in the same size.Specifically, a figure layer is added in scene of game, figure layer is the father node of soil block, i.e., in figure layer It may include multiple soil blocks.If the size of scene of game is 110000*55000 pixel, then the size of figure layer is also 110000*55000 pixel.
In embodiments of the present invention, the building method of the scene of game can specifically include following steps:
Step 101, after entering scene of game, server sending logic coordinate is received.
In the concrete realization, into after scene of game, the logical coordinates of server transmission will be received in mobile terminal, it should Logical coordinates be used for position user in user's ken it can be seen that scene of game.
Wherein, user's ken refers to that user can see the region of scene of game on mobile terminal screen, usually with shifting Dynamic terminal screen is in the same size, for example, the size of user's ken is if mobile terminal screen size is 1920*1080 pixel 1920*1080 pixel.
Step 102, the logical coordinates is converted to the pixel coordinate of the scene of game.
It should be noted that in embodiments of the present invention, being used when being communicated between server and mobile terminal The logical coordinates of soil block, such as the soil block of the 20th row the 30th column, server is this logical coordinates to be positioned, and is moved Terminal is based on pixel coordinate then to position, therefore, after mobile terminal side receives logical coordinates, need for logical coordinates into Row conversion, is converted to pixel coordinate.
The initial logic coordinate of figure layer is (0,0) in scene of game, and user's ken of mobile terminal is motionless, the lower left corner Logical coordinates be also (0,0).According to the position that soil block in scene of game is arranged, the logical coordinates (x, y) and soil of soil block The mapping equation that the pixel coordinate (px, py) in plot is directly mutually converted are as follows:
F (x, y)=(px, py) logical coordinates image rotation element coordinate function F
D (px, py)=(x, y) pixel coordinate coordinate turns logical coordinates D
Step 103, user's ken of the scene of game is determined centered on the pixel coordinate.
After entering scene of game, a central point logical coordinates center (cx, cy) of server transmission will be received, The logical coordinates of figure layer can be moved to (cx, cy) from (0,0) by mobile terminal, be seen in user's ken then ensuring that The soil block that figure layer is put centered on (cx, cy).
Step 104, the visual soil block in user's ken is determined according to the pixel size of the soil block.
In practice, because the scene of game of Sand-play therapy is bigger, if the template of the soil block of load whole Therefore data, in embodiments of the present invention, can be loaded only and be regarded in user then just needing to expend many memory sources The template data of soil block in domain, i.e., the template data of visual soil block.
The pixel size of soil block is fixed, it is assumed that the size of soil block is 220*110 pixel, if screen size is 1920*1080 pixel can show that soil number of blocks is 1920/220=9,1080/110=10 in user's ken, i.e., user with It can be seen that the soil block of 10 rows 9 column in the ken of family.So only need to show this 10 row, 9 column, 90 blocks of soil in user's ken i.e. Can, without 250000 soil blocks are all shown.
In the actual process, the template data for the soil block that can be arranged with pre-loaded 16 row 16, can guarantee user in this way During sliding scene of game, not pre-loaded and the display that do not plan a successor it will not show because of the template data of soil block As.
Step 105, the corresponding template data of the visual soil block is loaded to construct scene of game.
After the visual soil block in user's ken has been determined, loading the corresponding template data of visual soil block can be complete Constructing in scene of game in pairs.
The embodiment of the present invention will receive server sending logic coordinate, mobile terminal then can after entering scene of game The pixel coordinate of scene of game is converted to according to logical coordinates, and user's view of scene of game is determined centered on pixel coordinate Domain, the pixel size for being then based on soil block determine visual soil block in user's ken, it is corresponding finally to load visual soil block Template data to construct scene of game.In the embodiment of the present invention after entering scene of game, it can be determined according to pixel size Visual soil block in user's ken simultaneously loads, there is no need to load soil block all in the scene of game, so can To reduce the consuming of memory source in mobile terminal.
In one preferred embodiment of the invention, the server has corresponding host identification, and the method may be used also To include the following steps:
Obtain mapping table;The mapping table includes the server identification and ground map logo;
When determining the destination server logged in, the server identification corresponding ground icon of the destination server is obtained Know;
The corresponding map data file of described ground map logo is obtained, the map data file includes the corresponding mould of soil block Plate data.
In practical applications, a Sand-play therapy can have multiple servers, such as 20, and each server has Host number (host identification), server can issue one mapping table of mobile terminal, preserve master in mapping table Which ground map logo pair machine mark and corresponding ground map logo need to load for informing mobile terminal when running Sand-play therapy Soil block template data in the map data file answered, such as No. 3 maps of A server, No. 2 maps of B server.It is mobile Terminal can determine whether that its destination server to be logged in takes when needing to show soil block according to target when logging in Sand-play therapy The host identification of business device determines corresponding ground map logo, then can obtain from the corresponding map data file of ground map logo The template data of soil block is simultaneously loaded.
In one preferred embodiment of the invention, in the corresponding template data of the visual soil block that loads with structure Scene of game is made, i.e., can also be included the following steps: after step 105
In response to slide on the graphical user interface, new pixel coordinate is determined according to the slide;
The new pixel coordinate is converted into new logic coordinate;
The new logic coordinate is sent to the server, the server is for determining that the new logic coordinate pair is answered User's ken in new visual soil block, and the template data of the new visual soil block is sent to the mobile terminal;
The template data of the new visual soil block is loaded to update the scene of game.
In specific application, user can realize that the ken switches by carrying out slide on a graphical user interface, So that the scene of game in user's ken, i.e., visual soil block changes.According to user mobile terminal slide away from From, such as 300 pixel of upward sliding, slide 200 pixels to the left, then the new pixel coordinate of the central point of user's ken be (cx- 200, cy+300).According to conversion coordinate function D above-mentioned, the new logic coordinate positioned at central point is obtained, new logic coordinate is sent out To server, server will issue the template data of the new visual soil block in the ken centered on the new logic coordinate Mobile terminal, mobile terminal then will based on these data be updated the soil block in scene of game.
It should be noted that Sand-play therapy may carry out map rejuvenation at any time, then the soil block mould that mobile terminal saves The soil block template data that plate data and server save will be different.When user initially enters scene of game, in order to Scene of game is quickly seen at enough families, can come to show soil in advance with the template data of the pre-loaded soil block locally saved Block, if user has switched the scene of game in user's ken by slide, then can be determined based on slide So that it is determined that new logic coordinate and being sent to server, server gets corresponding new new pixel coordinate according to new logic coordinate After the template data of visual soil block, it is sent to mobile terminal, mobile terminal loads the template data of the new visual soil block, this Sample, user can obtain newest data.
Preferably, update user use interior visual soil block when, can only by server with have change in mobile terminal The template data for changing soil block is sent to mobile terminal, and the template data without the soil block of variation is then not necessarily to retransmit.
In one preferred embodiment of the invention, the method can also include the following steps:
Recycling has not loaded the occupied memory source of template data of soil block in new user's ken.
It, can be by the template data of the soil block in no longer new user's ken after updating the scene of game in user's ken Occupied memory source is recycled, to save memory source.
In one preferred embodiment of the invention, the method can also include the following steps:
When detecting processing operation on the graphical user interface, the corresponding location information of the processing operation is determined;
When the location information is located in specified region, the processing operation is responded in the scene of game.
Referring to shown in Fig. 2, the soil picture of fine arts personnel production is rectangular, but for a user, in screen On the soil block seen be only intermediate diamond-shaped area, if when user clicks four white spaces around the soil picture not It should be responded.Therefore, in embodiments of the present invention, if detecting the processing operation of user on a graphical user interface, Such as clicking operation, then it will be determined that whether the position where point operation is to be located in specified region (such as diamond-shaped area), If so, the clicking operation is responded, if it is not, being then not responding to the clicking operation.
The embodiment of the present invention has used the position moving method of figure layer on user's ken and scene of game, adds to reach dynamic Carrying user can see soil block, and not have to the purpose of all soil blocks in load scene of game, and in addition to this, the present invention is real Apply example mobile terminal and server by communication means, it can also be ensured that soil block can according to the data of server come Dynamic updates, to adapt to the demand of scene of game internal data variation.
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. 3, a kind of structural block diagram of the constructing apparatus embodiment of scene of game of the invention is shown, mobile whole Software application is executed on the processor at end and is rendered on the screen of the mobile terminal obtains graphic user interface, the figure User interface includes a part of scene of game, preserves the corresponding template data of soil block, the soil in the mobile terminal Plot has corresponding pixel size, and described device can specifically include following module:
Logical coordinates receiving module 201, for receiving server sending logic coordinate after entering scene of game;
Logical coordinates conversion module 202, for the logical coordinates to be converted to the pixel coordinate of the scene of game;
User's ken determining module 203, for determining user's view of the scene of game centered on the pixel coordinate Domain;
Visual soil block determining module 204, for being determined in user's ken according to the pixel size of the soil block Visual soil block;
Scene of game module construction, for loading the corresponding template data of the visual soil block to construct scene of game.
In one preferred embodiment of the invention, in the scene of game have figure layer, the figure layer size with it is described Scene of game is in the same size.
In one preferred embodiment of the invention, the server has corresponding host identification, and described device may be used also To include following module:
Identifier acquisition module, for obtaining mapping table;The mapping table includes the server identification and ground Map logo;
Destination server login module, for obtaining the destination server when determining the destination server logged in Server identification corresponding ground map logo;
Map data file obtains module, for obtaining the corresponding map data file of described ground map logo, the map Data file includes the corresponding template data of soil block.
In one preferred embodiment of the invention, described device can also include following module:
Sliding behaviour's respond module, in response to slide on the graphical user interface, according to the sliding Operation determines new pixel coordinate;
New pixel coordinate conversion module, for the new pixel coordinate to be converted to new logic coordinate;
New logic coordinate sending module, for the new logic coordinate to be sent to the server, the server is used In determining the new visual soil block in the corresponding user's ken of the new logic coordinate, and by the template of the new visual soil block Data are sent to the mobile terminal;
Scene of game update module, for loading the template data of the new visual soil block to update the sports ground Scape.
In one preferred embodiment of the invention, described device can also include following module
Memory source recycling module, for recycling the template data institute for not loaded soil block in new user's ken The memory source of occupancy.
In one preferred embodiment of the invention, described device can also include following module
Processing operation respond module when for detecting processing operation on the graphical user interface, determines the place Reason operates corresponding location information;
Operation processing module, for being responded in the scene of game when the location information is located in specified region The processing operation.
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 provides a kind of electronic equipment, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the electronic equipment executes method described in the embodiment of the present invention.
The embodiment of the invention also provides one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that the processor executes method described in the embodiment of the present invention.
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 building method and a kind of constructing apparatus of scene of game of scene of game provided by the present invention, into It has gone and has been discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, the above implementation The explanation of example is merely used to help understand method and its core concept of the invention;Meanwhile for the general technology people of this field Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as limiting the invention.

Claims (14)

1. a kind of building method of scene of game, which is characterized in that on the processor of mobile terminal execute software application and Rendering obtains graphic user interface on the screen of the mobile terminal, and the graphic user interface includes one of scene of game Point, the corresponding template data of soil block is preserved in the mobile terminal, the soil block has corresponding pixel size, described Method includes:
After entering scene of game, server sending logic coordinate is received;
The logical coordinates is converted to the pixel coordinate of the scene of game;
User's ken of the scene of game is determined centered on the pixel coordinate;
The visual soil block in user's ken is determined according to the pixel size of the soil block;
The corresponding template data of the visual soil block is loaded to construct scene of game.
2. the method according to claim 1, wherein having figure layer, the figure layer size in the scene of game It is in the same size with the scene of game.
3. the method according to claim 1, wherein the server has corresponding host identification, the side Method further include:
Obtain mapping table;The mapping table includes the server identification and ground map logo;
When determining the destination server logged in, the server identification corresponding ground map logo of the destination server is obtained;
The corresponding map data file of described ground map logo is obtained, the map data file includes the corresponding template number of soil block According to.
4. the method according to claim 1, wherein loading the corresponding template number of the visual soil block described Accordingly after construction scene of game, further includes:
In response to slide on the graphical user interface, new pixel coordinate is determined according to the slide;
The new pixel coordinate is converted into new logic coordinate;
The new logic coordinate is sent to the server, the server is for determining the corresponding use of the new logic coordinate New visual soil block in the ken of family, and the template data of the new visual soil block is sent to the mobile terminal;
The template data of the new visual soil block is loaded to update the scene of game.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Recycling has not loaded the occupied memory source of template data of soil block in new user's ken.
6. method described according to claim 1 or 2 or 3 or 4 or 5, which is characterized in that in the load visual soil block After corresponding template data is to construct scene of game, further includes:
When detecting processing operation on the graphical user interface, the corresponding location information of the processing operation is determined;
When the location information is located in specified region, the processing operation is responded in the scene of game.
7. a kind of constructing apparatus of scene of game, which is characterized in that on the processor of mobile terminal execute software application and Rendering obtains graphic user interface on the screen of the mobile terminal, and the graphic user interface includes one of scene of game Point, the corresponding template data of soil block is preserved in the mobile terminal, the soil block has corresponding pixel size, described Device includes:
Logical coordinates receiving module, for receiving server sending logic coordinate after entering scene of game;
Logical coordinates conversion module, for the logical coordinates to be converted to the pixel coordinate of the scene of game;
User's ken determining module, for determining user's ken of the scene of game centered on the pixel coordinate;
Visual soil block determining module, for determining the visual soil in user's ken according to the pixel size of the soil block Plot;
Scene of game module construction, for loading the corresponding template data of the visual soil block to construct scene of game.
8. device according to claim 7, which is characterized in that have figure layer, the figure layer size in the scene of game It is in the same size with the scene of game.
9. device according to claim 7, which is characterized in that the server has corresponding host identification, the dress It sets further include:
Identifier acquisition module, for obtaining mapping table;The mapping table includes the server identification and ground icon Know;
Destination server login module, for obtaining the service of the destination server when determining the destination server logged in Device identifies corresponding ground map logo;
Map data file obtains module, for obtaining the corresponding map data file of described ground map logo, the map datum File includes the corresponding template data of soil block.
10. device according to claim 7, which is characterized in that further include:
Sliding behaviour's respond module, in response to slide on the graphical user interface, according to the slide Determine new pixel coordinate;
New pixel coordinate conversion module, for the new pixel coordinate to be converted to new logic coordinate;
New logic coordinate sending module, for the new logic coordinate to be sent to the server, the server is for true New visual soil block in the corresponding user's ken of the fixed new logic coordinate, and by the template data of the new visual soil block It is sent to the mobile terminal;
Scene of game update module, for loading the template data of the new visual soil block to update the scene of game.
11. device according to claim 10, which is characterized in that described device further include:
Memory source recycling module has not loaded occupied by the template data of soil block in new user's ken for recycling Memory source.
12. according to device described in claim 7 or 8 or 9 or 10 or 11, which is characterized in that further include:
Processing operation respond module when for detecting processing operation on the graphical user interface, determines the processing behaviour Make corresponding location information;
Operation processing module, described in being responded in the scene of game when the location information is located in specified region Processing operation.
13. a kind of electronic equipment characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made The methods for obtaining the one or more that the electronic equipment is executed as described in claim 1-6.
14. one or more machine readable medias, are stored thereon with instruction, when executed by one or more processors, so that The processor executes one or more methods as described in claim 1-6.
CN201910010461.XA 2019-01-04 2019-01-04 A kind of building method and device of scene of game Pending CN109771943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910010461.XA CN109771943A (en) 2019-01-04 2019-01-04 A kind of building method and device of scene of game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910010461.XA CN109771943A (en) 2019-01-04 2019-01-04 A kind of building method and device of scene of game

Publications (1)

Publication Number Publication Date
CN109771943A true CN109771943A (en) 2019-05-21

Family

ID=66499229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910010461.XA Pending CN109771943A (en) 2019-01-04 2019-01-04 A kind of building method and device of scene of game

Country Status (1)

Country Link
CN (1) CN109771943A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110559665A (en) * 2019-09-29 2019-12-13 珠海文景科技有限公司 Game map processing method and device, terminal device and storage medium
CN111054068A (en) * 2019-12-25 2020-04-24 北京金山猎豹科技有限公司 Virtual object loading method and device and electronic equipment
CN111228816A (en) * 2020-02-10 2020-06-05 郑州阿帕斯数云信息科技有限公司 Scene layout method and device in game
CN111381792A (en) * 2020-03-12 2020-07-07 上海曼恒数字技术股份有限公司 Virtual reality data transmission method and system supporting multi-person cooperation
CN112807695A (en) * 2021-02-24 2021-05-18 网易(杭州)网络有限公司 Game scene generation method and device, readable storage medium and electronic equipment
CN113769402A (en) * 2021-09-16 2021-12-10 厦门极致互动网络技术股份有限公司 Method for updating visible region of geodetic map in frames

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096326A (en) * 1995-06-23 1997-01-10 Konami Co Ltd Image display device
CN1924873A (en) * 2006-09-19 2007-03-07 北京金山数字娱乐科技有限公司 Game map storage method and device, display method and system
CN101208723A (en) * 2005-02-23 2008-06-25 克雷格·萨默斯 Automatic scene modeling for the 3D camera and 3D video
CN101308524A (en) * 2007-05-15 2008-11-19 上海灵禅信息技术有限公司 All-purpose two-dimensional horizontal edition game map edition design
CN106075907A (en) * 2016-06-02 2016-11-09 苏州乐米信息科技有限公司 A kind of edit methods of map
CN108022301A (en) * 2017-11-23 2018-05-11 腾讯科技(上海)有限公司 A kind of image processing method, device and storage medium
CN108335260A (en) * 2018-02-02 2018-07-27 网易(杭州)网络有限公司 A kind of scene of game image processing method, device, storage medium and electronic device
CN108499103A (en) * 2018-04-16 2018-09-07 网易(杭州)网络有限公司 The display methods and device of situation elements
CN108629847A (en) * 2018-05-07 2018-10-09 网易(杭州)网络有限公司 Virtual objects mobile route generation method, device, storage medium and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096326A (en) * 1995-06-23 1997-01-10 Konami Co Ltd Image display device
CN101208723A (en) * 2005-02-23 2008-06-25 克雷格·萨默斯 Automatic scene modeling for the 3D camera and 3D video
CN1924873A (en) * 2006-09-19 2007-03-07 北京金山数字娱乐科技有限公司 Game map storage method and device, display method and system
CN101308524A (en) * 2007-05-15 2008-11-19 上海灵禅信息技术有限公司 All-purpose two-dimensional horizontal edition game map edition design
CN106075907A (en) * 2016-06-02 2016-11-09 苏州乐米信息科技有限公司 A kind of edit methods of map
CN108022301A (en) * 2017-11-23 2018-05-11 腾讯科技(上海)有限公司 A kind of image processing method, device and storage medium
CN108335260A (en) * 2018-02-02 2018-07-27 网易(杭州)网络有限公司 A kind of scene of game image processing method, device, storage medium and electronic device
CN108499103A (en) * 2018-04-16 2018-09-07 网易(杭州)网络有限公司 The display methods and device of situation elements
CN108629847A (en) * 2018-05-07 2018-10-09 网易(杭州)网络有限公司 Virtual objects mobile route generation method, device, storage medium and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110559665A (en) * 2019-09-29 2019-12-13 珠海文景科技有限公司 Game map processing method and device, terminal device and storage medium
CN111054068A (en) * 2019-12-25 2020-04-24 北京金山猎豹科技有限公司 Virtual object loading method and device and electronic equipment
CN111228816A (en) * 2020-02-10 2020-06-05 郑州阿帕斯数云信息科技有限公司 Scene layout method and device in game
CN111381792A (en) * 2020-03-12 2020-07-07 上海曼恒数字技术股份有限公司 Virtual reality data transmission method and system supporting multi-person cooperation
CN111381792B (en) * 2020-03-12 2023-06-02 上海曼恒数字技术股份有限公司 Virtual reality data transmission method and system supporting multi-user cooperation
CN112807695A (en) * 2021-02-24 2021-05-18 网易(杭州)网络有限公司 Game scene generation method and device, readable storage medium and electronic equipment
CN113769402A (en) * 2021-09-16 2021-12-10 厦门极致互动网络技术股份有限公司 Method for updating visible region of geodetic map in frames

Similar Documents

Publication Publication Date Title
CN109771943A (en) A kind of building method and device of scene of game
CN106658139B (en) Focus control method and device
CN103226573B (en) The method of Search Results association display and client terminal
WO2021169274A1 (en) Historical map data processing method, apparatus and system
CN109675309B (en) Construction method and device of game scene
CN104793874A (en) Interface display method and electronic equipment
CN109785408B (en) Mapping method and device and electronic equipment
US10445412B1 (en) Dynamic browsing displays
CN106455056A (en) Positioning method and device
CN111737800A (en) Primitive selection method and device and electronic equipment
CN105426056A (en) Desktop launcher Launcher menu displaying method and apparatus
CN105554271A (en) Electronic equipment and message management method applied to electronic equipment
CN110798824A (en) Electronic table card control method, intelligent terminal and system
US9082317B2 (en) Method and apparatus for displaying digital map in client
CN103236042A (en) Self-adaptive picture processing method and device
CN109657023B (en) Scenic spot dynamic electronic map drawing method, server and system
KR20100079619A (en) Method and apparatus for automatically arranging images
CN105930090A (en) Method and system for transmitting coordinate data of touch screens on basis of mobile terminals
JP2013120201A (en) Information processing apparatus and method
EP2346262A2 (en) Method and apparatus for setting stereoscopic effect in a portable terminal
CN111666011B (en) Page focus display method and device
CN101799913A (en) Method and device for realizing coordinate transformation in two-dimensional scene
CN104615357A (en) Terminal
CN110991050B (en) CAD (computer-aided design) image stacking method and related product
CN113888673A (en) Map editing method, system, device, computing equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190521

RJ01 Rejection of invention patent application after publication