When we play games, we often see the scenes in the game world at the first glance after entering the game. Of course, except for some, because those games hide the game scene, such as location in text games. Since we are exposed to the core of the game world, what content does the core scenario include?
One
Scenario Composition
Here we use the tianlong Babu/martial arts world as a reference. Its composition mainly includes core, event, region, chat pipeline, search machine, Pathfinder, copy, and drop.
Core
Each system has its own core part. The core is generally used as the overall control function, and the processing of data logic in the scenario is placed in the core part, such as all objects in the scenario and the data of each object, network synchronization.
Event
A complete object generally has an event. As for what is an event, we will not explain it here. Events in a scenario in the tianlong/martial arts world include scenario initialization, scenario timer, scenario exit, player entry scenario, role upgrade, role death, role regeneration, scenario notification, and task acceptance check. the default event of the NPC dialog, and the event list of the NPC event.
Region
In a game scenario, the concept of 2D or 3D is like that you appear in different places every day, and different places are different regions, the same concept also exists in scenarios. For example, you can see different game scenarios when standing at different coordinate points, while 3D is troublesome because it has a coordinate system more than 2D.
Chat Pipeline
The scene and nearby data in the chat all exist as special chat data in each scenario. In order to process the information more efficiently, this channel is often set separately for the scenario.
Search Machine
Many objects exist in the scenario. to query these objects, this module is formed to quickly find the specified scenario object.
Pathfinder
The scenario Pathfinder is very important in the scenario. If you do not select this part in the scenario, it is impossible to go to the destination, because the Pathfinder is to determine all the points and routes to go through, just like when you travel outside, you don't know the destination.
Copy
A copy is a special type of scenario. However, unlike a common scenario, a copy can be copied and created only when necessary, in normal scenarios, the server is loaded at the beginning.
Drop
Falling data is often placed in scenarios in Large Games. Each falling point corresponds to the falling information.
Mmorgp large-scale game design and development (game server game scenario overview)