Random map generation method, client, server and system
A map generation and server-side technology, applied in the field of games, can solve problems such as excessive data, long transmission time, and excessive mobile phone traffic, and achieve the effect of accelerating transmission speed, reducing data volume, and reducing the amount of transmitted data
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] see figure 2 , which is a flow chart of the steps of the maze generation method of the present invention. The invention provides a method for generating a random map, comprising the following steps:
[0066] S11: The game client sends a random map generation request to the game server.
[0067]S12: The game client receives the map length, width and random seed from the game server.
[0068] S13: The game client and the game server simultaneously generate the same two-dimensional data matrix of the maze according to the map length, width and random seed.
[0069] In this step S13, a step S131 is also included: generating a random number sequence according to the random seed. Then a random map is generated according to the random number sequence. Specifically, in this step, the formula for updating and generating the seed is: R=((R+K)*M)&N
[0070] Among them, "&" is the computer "AND" operator, K, M, N are three control constants, and the constant values can be c...
Embodiment 2
[0092] see Figure 4 , which is a flowchart of the steps of the method for generating a random map in Embodiment 2. The present invention also provides a method for generating a random map, comprising the following steps:
[0093] S21: The game server receives a random map generation request from the game client;
[0094] S22: The game server sends the map length, width and random seed to the game client;
[0095] S23: The game server and the game client simultaneously generate the same two-dimensional data matrix of the maze according to the map length, width and random seed.
[0096] In this step, step S231 is also included: generating a random number sequence according to the random seed. The update formula of the random number sequence is: R=((R+K)*M)&N. Among them, "&" is the computer "AND" operator, K, M, N are three control constants, and the constant values can be customized.
[0097] see Figure 5 , which is a module connection block diagram of the server in E...
Embodiment 3
[0104] see Image 6 , which is a connection block diagram of the random map generation system of the present invention. In addition, the present invention also provides a system for generating a random map, which is characterized in that it includes a client and a server.
[0105] The client 1 includes: a request sending module 11 , a receiving module 12 , a generating module 13 and a map splicing module 14 .
[0106] The request sending module 11 is used to send a random map generation request to the game server;
[0107] The receiving module 12 is used to receive the map length, width and random seed from the game server;
[0108] The generation module 13 is used to generate the same two-dimensional data matrix of the maze according to the map length, width and random seed.
[0109] Further, the generating module also includes a random sequence generating submodule, which is used to generate a random sequence according to the random seed. The update formula of the random...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com