My dad's life

Chapter 122 Game Logic

The summer at night is still very quiet, except for the sound of waves, basically no other sounds can be heard. Fang Yuan moved the computer he brought back today to the study. There was an alien notebook in the study, which was originally used by Lu Shouyi. For playing games, the configuration is better than his desktop.

But Fangyuan decided to use his own machine, because there were too many things inside, so he took it out of the house without any hesitation.

Tonight, Fang’s mother took two little guys to sleep, so Fangyuan had a lot of time, just enough to give him time to make some preparations for the pre-game development work.

What exactly are these preparations?Then we have to understand the four elements of the game.

They are mechanism, story, beauty and technology.

Among them, the story and beauty are the matters of planning and art. The planning will establish a complete world view, and have its own main lines, branches, etc., and then the art draws characters and scenes that match the style according to the world view.

These Fangyuan are not good at it, so we must find professionals to do it. What Fangyuan has to do now is mechanism and technology.

If someone says that there are no projects set up and there is nothing to do, then they are wrong. To put it bluntly, playing games is to play logic. Main tasks, side tasks, NPC dialogue, movement, and even a single click are actually a kind of logic.

The intelligent sweeping robot is a kind of logic. What he has to do now is a kind of general logic. After finding a suitable plan and making a satisfactory plan, he only needs to set up each NPC and each role in it. Personality, specialty, value, etc., then the corresponding NPC will be automatically generated.

In addition, you can also randomize data, let the program automatically generate various NPCs with unique characters, and then summarize the existing game tasks on the market, such as collecting, killing monsters, planting, exploring, interacting, etc., and then write them into one According to these logics, these NPCs can automatically generate tasks for players to complete, thereby increasing the playability of the game.

Because there are precedents for the previous intelligent sweeping robot, it is much easier to do it, and you can even use the characteristics of the previous "spore" program to set up an online, let it reproduce automatically, and form a simple simulation ecology, thus forming a data ecosystem.

Such games are full of unknowns, but the same is more interesting and playable.

It can be said that in addition to the general direction of such a game, many details will not be controlled by him, but isn't it more interesting?

What he does now is to make the low-level logic first, and then reserve the interface. In addition to facilitating future planning and configuration, he also reserves it for later programmers to expand some functions. After all, he is not a god, and it is impossible to cover everything. , What's more, different game types have different needs.

Fang Yuan devoted himself to the lines of code, completely unaware of the passage of time, even the slightest coolness brought by the sea breeze from the open window, he did not feel it.

"Dad, are you playing on the computer again?" I don’t know when, Xinxin hugged the bear to play with. Doll ran to the entrance of the study, watching her long hair shawl, wearing a set of little monkey pajamas, thinking she just ran off the bed .

"Yes, Dad is doing things!" Fang Yuan finally retreated from the immersive world of thinking.

"Dad, are your feet cold?" The little guy turned his eyes to his feet wearing sandals.

"Well, really a little bit." Fang Yuan raised his head and glanced at the open window.

Upon hearing the words, the little guy turned to Blingbling and ran out. He quickly fetched a pair of cloth slippers from the outside, then squatted down and placed it under his feet, "Dad, you won't be cold with these shoes."

Fang Yuan was very moved in her heart, so she changed into cloth slippers.

"It's not cold anymore, right?" The little guy raised his neck, happily.

"Well, it's not cold anymore." Fang Yuan reached out and touched her head, feeling warm in her heart.

"Then your belly is cold?" The little guy raised his head and continued to ask.

"Well, it seems really a little bit." Fang Yuan followed her words.

The little guy heard the words, grabbed his knees and climbed onto his lap, then sat in his arms, "It's not cold anymore, right?"

"Yes, Dad is not cold anymore." Fang Yuan gently put the little guy in his arms.

"Oh, can you show the cartoon to the baby now?" The little guy pointed to the computer screen in front.

Fangyuan: "..."

"Sister, why don't you go to play with your sister." Fang Yuan couldn't agree to the little guy's request. It's getting late, she should go to bed earlier.

"Grandma is telling her sister a bedtime story, but the baby finds it boring, so the baby wants to play with her dad." The little guy hugged her little bear and said.

"That won't work, you have to go to bed too. Children will grow up if they don't sleep at night. Do you want to become a dwarf?" Fang Yuan picked her up and walked to Fang's mother's room.

"No, the baby will be a beautiful Snow White, and then find a handsome prince." The little guy shook his head immediately.

Fang Yuan could hardly say a word in his heart, handsome prince, huh?

Not to mention how Fangyuan coaxed and tricked her daughter to give up this dangerous idea, but said that there was a lot of gunfire next door.

Although he ate a lot of elephants and sea cucumbers at night, Lu Shouyi still failed to do Yang Qianqiu. After all, people insisted on taekwondo practice for decades, and neither physical strength nor endurance could be compared to him, a scumbag who sang songs every night. .

After waiting for the incident, Lu Shouyi sat on the bedside with his eyes blankly, and completely entered the time of the sage. He said that a cigarette after the incident was as happy as a fairy, but now he has no strength to light a cigarette and does not want to move. move.

Yang Qianqiuchu. She got up from the bed naked and got out of the bed without any cover, "I'm going to take a shower." After speaking, he picked up the phone and twisted and walked out of the room, leaving him with a beautiful Back view.

The desire in Lu Shouyi's heart rose again uncontrollably, but the little brother below was weak, like a dead snake, lying on his back, unable to stand upright.

When Yang Qianqiu went out, Lu Shouyi thought for a while, finally struggling to pick up the phone beside him and dial out.

"Hey, Mom, don't you think your handsome son?" As soon as the call was connected, he immediately said eagerly. Even though he is weak now, who told him to want money?

"Xiaoyi, the money is not enough? How much do you plan to spend this time?" Mother Lu said with a plain expression on the other side of the phone.

Lu Shouyi, who had never cared about his mother's attitude, had always felt that his mother's attitude was wrong after listening to Yang Qianqiu's words at night.

"Mom, how can you say that? I think you still can't do it?" Lu Shouyi said with a smile, trying to warm up the atmosphere.

"Counting this time this year, you took the initiative to call me three times. The first two were asking for money. Can you make an exception this time?" Mother Lu still said in a calm tone on the other side of the phone.

Lu Shouyi: "..."