Chapter 120: Game Logic
The summer night was still very quiet, except for the sound of the waves, basically no other sound could be heard, Fang Yuan moved the computer he brought back today to the study, there was originally an alien notebook in the study, which was originally used by Lu Shouyi to play games, and the configuration was better than his desktop.
But Fang Yuan still decided to use his own machine, because there were too many things in it, so he took the trouble to bring it out of the house again.
Fang's mother took the two little ones to sleep tonight, so Fang Yuan had a lot of time, just enough time for him to make some preparations for the early game development work.
What exactly are these preparations? So let's take a look at the four elements of the game.
They are mechanics, story, aesthetics, and technology.
Among them, the story and aesthetics are the things of planning and art, and planning will establish a complete world view, and have its own main line, branch lines, etc., and then the art will draw characters and scenes that match the style according to the world view, etc.
These Fang Yuan are not good at it, so they must find professionals to do it, and what Fang Yuan has to do now is mechanism and technology.
If someone says that the project is not established now, what can be done, it is wrong, playing the game is to play the logic, the main quest, the side quest, the NPC dialogue, the movement, and even a click are actually a kind of logic.
And the intelligent sweeping robot is a kind of logic,What he has to do now is a general logic,And then after finding a suitable plan,After making a plan that he is satisfied with,As long as you set the personality of each NPC in it,Each character、Values, etc.,Then the corresponding NPC will be automatically generated。
In addition, the data can also be randomized, so that the program automatically generates a variety of NPCs with distinctive personalities, and then summarizes the existing game tasks on the market, such as collecting, fighting monsters, planting, exploring, interacting, etc., and then writes a logic, so that these NPCs can automatically generate tasks for players to complete according to these logics, thereby increasing the playability of the game.
Because there is a precedent for the previous intelligent sweeping robot, it is much easier to do, and you can even use the characteristics of the previous "spores" program to set up an online and let it reproduce automatically, forming a simple simulation ecology, thus forming a data ecosystem.
Such games are full of unknowns, but they are also more interesting and playable.
It can be said that in addition to the general direction, many details of such a game will not be under his control, but isn't it more interesting?
And now what he does is to make the underlying logic first, and then reserve the interface, in addition to facilitating the planning and configuration in the future, but also reserved for later programmers, so as to facilitate the expansion of some functions, after all, he is not a god, it is impossible to cover everything, not to mention different game types, the needs are different.
Fang Yuan was fully immersed in the lines of code, completely unaware of the passage of time, and he didn't even feel the slightest coolness from the sea breeze blowing in from the open window.
"Dad, are you playing on the computer again?" I don't know when, Xinxin ran to the door of the study with the little bear and the doll ran to the door of the study, and saw her long hair shawl and a set of little monkey pajamas, thinking that she had just run off the bed.
"That's right, Dad is doing something!" Fang Yuan finally withdrew from his immersive thinking world.
"Daddy, do you have cold feet?" the little guy looked at his feet in his sandals.
"Well, a little bit. Fang Yuan glanced up at the open window.
When the little guy heard this, he turned around and ran out, quickly brought a pair of cloth slippers from outside, and then squatted down and put them at his feet, "Dad, you won't be cold when you wear these shoes." ”
Fang Yuan's heart was very moved, so he changed into cloth slippers.
"It's not cold now, is it?" said the little one, leaning his neck.
"Well, it's not cold. Fang Yuan reached out and touched her head, a warm feeling in his heart.
"And do you have a cold belly?" asked the little one, looking up.
"Well, it seems like there's a little bit of it. Fang Yuan followed her words.
When the little guy heard this, he grabbed his knees and climbed into his lap, and then sat in his arms, "It's not cold now, is it?"
"Yes, Dad isn't cold. Fang Yuan gently took the little guy in his arms.
"Oh, so can you show cartoons to your baby now?" the little guy pointed to the computer screen in front of him.
Fang Yuan: "......." ”
"Sister, why don't you go play with your sister. "Fang Yuan can't agree to the little guy's request, it's not early, she should go to bed early.
"Grandma is telling her sister a bedtime story, but the baby doesn't think it's interesting, so the baby wants to play with his father. The little one put her little bear in her arms and played.
"That's not good, you have to go to sleep too, children won't be tall if they don't sleep at night, do you want to become a dwarf?" Fang Yuan picked her up and walked towards Fang's mother's room.
"No, the baby wants to be a beautiful Snow White, and then find a handsome prince. The little guy immediately shook his head.
Fang Yuan couldn't say anything in his heart when he heard this, handsome prince, hehe?
Not to mention how Fang Yuan coaxed and deceived his daughter to give up this dangerous idea, but said that there was a lot of artillery fire next door.
Although he ate a lot of elephants and sea cucumbers at night, Lu Shouyi still couldn't do Yang Qianqiu, after all, people have been practicing taekwondo for decades, and neither physical strength nor endurance can be compared to him, a scumbag who sings every night.
After the incident, Lu Shouyi sat on the head of the bed with blank eyes, completely entered the time of the sage, and said that he would be happy like a fairy with a cigarette afterwards, but now he didn't even have the strength to light a cigarette, and he didn't want to move.
Yang Qianqiu got up from the bed naked, and got out of bed unabashedly, "I'll take a shower." After saying that, he picked up his mobile phone, twisted and walked out of the room, leaving him with a beautiful back.
The desire in Lu Shouyi's heart rose again uncontrollably, but the little brother below was weak, like a dead snake, lying on his stomach softly, and his body couldn't stand up straight.
Waiting for Yang Qianqiu to go out, Lu Shouyi thought about it, and finally struggled to pick up the mobile phone on the side and dialed it out.
"Hey, Mom, do you miss your handsome son?" As soon as the phone was connected, he immediately said eagerly, even if he is weak now, who told him to want money?
"Xiaoyi, there is not enough money to spend, how much are you going to do this time?" Lu's mother said on the other end of the phone.
Lu Shouyi, who never cared about his mother's attitude, has always felt that his mother's attitude is wrong since he listened to Yang Qianqiu's words at night.
"Mom, how can you say that? I miss you?" Lu Shouyi said with a smile, trying to warm up the atmosphere.
"Counting this time this year, you have taken the initiative to call me three times, the first two times were to ask for money, can this time be an exception?" Lu's mother said in an unhurried tone on the other end of the phone.
Lu Shouyi: "......." ”