Viewing the Rationality of the Parallel World of the Novel from the Perspective of Code Architecture

foreword

I have read a few online novels recently. These novels all look like watching Dragon Ball. They are basically fighting monsters and upgrading, and then fighting monsters and upgrading. There are always stronger monsters, which appear when the protagonist is just able to abuse the monsters before. , to show the protagonist a wider space
insert image description here

At least a few rounds, as many as a dozen rounds, these works have basically reached the ceiling, and the available settings have been used up. After that, everyone used the same setting to continue the life of the work, which is the parallel world. Or parallel planes. Some are pulling or sending people from other worlds or planes, and some are wars between planes. Below these chapters, you can see many question marks from readers. Can the rules of different worlds be combined? How do you fight those who cultivate immortality and those who practice qi? It's unbelievable to think about it. While cultivating true qi, it can shake the heavens and earth in the mid-term, while practicing soul power. Even at a high level, it is to strengthen oneself, and it is difficult to release it externally. What the hell!

world architecture

But as a senior code farmer, seeing these questions, he smiled knowingly. This is the thinking without code structure. If you look at these settings from the perspective of code structure, not only is it not absurd, but it is very reasonable. For the formation of the world It is also very feasible

The following content requires some code knowledge. I will try to make this part as easy as possible. Let’s
not talk nonsense, let’s take the picture first.
insert image description here

Maybe some friends with technical background will be enlightened after seeing this picture.
Let me explain this picture
in general. Of course, this is a minimal template, mainly for the convenience of everyone’s understanding.

rule framework

First of all, the bottom-level logic of the whole world is represented in the above world rule box, which can be
roughly divided into:
general rules of biological level : used to specify how many levels there are, and how to distinguish between high and low levels, which can exist in the form of interfaces.
Universal world interpretation model : used to target Interpretation of basic objects, such as stones are all stones, water is all water, etc. There are a lot of general explanations here, in the form of abstract parent classes. The world’s general editing method
: used to provide basic world change methods, such as stone shattering , freezing water into ice, etc. These methods do not need to be implemented, and there is
a biological general comparison/combat module in the form of an interface : it is used to perform comparisons between creatures, or the calculation of direct combat between two creatures, will use the general rules of the creature level. Level data, the impact on the world after calculation will be notified to the specific world through the editing method

rule implementation

For each specific world, such as the world of cultivating immortals, the world of martial arts, the world of cultivating souls, etc., you need to implement interfaces or integrate parent classes to create your own unique personalized world

The specific upgrade system rules : It stipulates that in this world, the system is called Qi training, foundation building, Jindan, Yuanying or Wendao, consecration, spiritual wisdom, and melting. Whether you want to meditate or kill monsters, whether you want to read thousands of books or travel thousands of miles, etc.
Specific interpretation model : It stipulates how to explain people's perception of the surrounding world, and when certain basic substances are put together to feel whether it is water or water vapor, If the ground moves by 1 centimeter, whether it is felt by people or shakes the mountain. When a certain substance fills the sky, it looks like the sky is full of rays, the stars are brilliant, or the clouds are dense, etc.
Specific comparison/combat module : call the parent class to handle the general battle, and the personalized content of this world is handled by itself. This also understands why some props and skills are not effective for people in another world or another plane, because when people in different worlds fight, it is handled by the parent class, and all personalities that can only be handled by the child class The specific
world editing method : defines how the basic substances in the world are operated, and the basic substances affected by the same battle are enlarged by ten times and reflected in the world or reduced by ten times

Architecture extension

Based on this framework, when a person enters another world, due to the consistency of the underlying interface, all props and skill levels can be compared in parallel, only the senses are relatively difficult to deal with.
For the senses, we can have three solutions:
one is to maintain the realization method of the original world , so that this person's interpretation and feelings of the world are different from others, and it can also isolate the harm caused by personalized props and exercises.
The second is to replace them all with the realization of the world , so that there is no difference from the natives of this world.
The first two are basically unchanged in terms of strength level, and only subjective feelings are affected, but the third is different.
The third is partial replacement . For example, if only the implementation of the world editing method is replaced, then this person may be a strongman in the original world, who can break stones with one punch. The new world interpretation model is weakened by 10 times, and the editing method is enhanced by 10 times. Method enhancement An ordinary person can break stones, but due to the weakening of the interpretation model, the feeling is not painful, and there is nothing wrong with it, but because this person only replaced the editing method, the output is stronger, but the interpretation model does not Weakened, so it is more fragile, and ordinary people can seriously injure him as long as they can hit him. In this way of understanding, different part replacements can systematically create many interesting cross-world scenes

Welcome to pay attention to the official account, communicate together and make progress together
Welcome to pay attention to the official account, communicate together and make progress together

Guess you like

Origin blog.csdn.net/cowcomic/article/details/121305663