Chapter 6 The Walking Pea Shooter
At this moment, in front of Han Hai, there is a menu that he is very familiar with, which are c, c++, Java, PHP, assembly, perl, go, python, etc., all the programming languages on the earth are available here.
Han Hai couldn't help but have a little doubt about this system, this thing can be adapted to all languages.
Han Hai casually opened the C++ menu, and then saw a project structure that had been created, and the name of the project was written on the Pea Shooter Model.
Han Hai searched for a long time in the project, and he found that there were many modules in it, such as cannon barrel, head, growth, rate of fire, attack method, root system, seed bullet, and so on.
Han Hai found that he could only read most of the code and had no permission to modify it, only on the root and seed bullet modules, and it was also a single option, if you choose to modify the root system, you can't modify the bullet, and vice versa.
Without hesitation, Han Hai opened the root module, and then he began to read the code for a long time.
At the same time, Fan Yu, who was in rags, took the key and began to open the cages one by one, and then kicked out all the people locked inside.
Then he found some obedient people and pushed the black iron cage to the door of the garage shutter together, and after finishing this work, Fan Yu glanced back at the pea shooter above his head, and then leaned on the roller shutter door to listen, and then pressed the roller shutter button here.
With a sound of melody, the shutter had been raised, and the roar of zombies could be faintly heard outside.
At this time, a flame rose in Fan Yu's palm, and then his eyes gradually became thicker, and he casually threw it towards the empty parking lot outside, and with a relatively loud blasting sound, a large sound of footsteps sounded in the underground garage, and the roar of the zombies became more intense.
At this time, some people who had just been released looked at Fan Yu's behavior and shouted loudly: "You are crazy, so we will all die, put down the roller shutter quickly." “
And Fan Yu just smiled at them, a flame rose in his hand and said coldly: "What, do you have any questions?" “
At this moment, opposite Fan Yu was a young man wearing a gold chain, at this time he stared at the flame in Fan Yu's hand, his face opened his mouth with fear, and finally he didn't say anything.
Fan Yu looked at his expression and then said to these people: "Now, we are saving you, if we don't fight, we will die in the end." But if we fight, we won't necessarily win, but we will have a chance to win. “
Hearing Fan Yu's words, the eyes of the crowd below lit up, because Fan Yu's words said that their hearts were in their hearts.
At this time, they in the slaughterhouse could actually see a large group of zombies running outside through the gap in the black iron cage blocking the door.
Fan Yu saw that the time was ripe, and then shouted to the people: "Now your task is to withstand the black iron cage, and leave the matter of the attack to us." “
After saying that, Fan Yu condensed a ball of flame in his left hand and threw it into the group of zombies that came over, and with a "boom" sound, an empty area was cleared out of the group of zombies.
At this time, the pea shooter hanging on the roof of the slaughterhouse was also powerful, only to see a green bullet across the sky above the black iron cage and fall into the zombie group, the green bullet is very powerful, often one can take the lives of 3~4 zombies.
Although the attacks of the pea shooter and Fan Yu were already very sharp, at this time, the zombies were still on top of this pile of black iron cages and began to squeeze inside.
At this time, more than 10 rescued youths who were inside also pushed the cage to the outside, which temporarily stopped the trend of the cage inward.
At this moment, there are at least a thousand zombies outside the slaughterhouse, so Pea Shooter and Fan Yu don't need to aim at all, and any shot or throw can cause the maximum damage value.
The battle situation here is in a state of stalemate, the zombies will be made up when they die, and the thrust of the black iron cage will not become smaller, so the current situation is a battle of competition and consumption.
It's just that the human side consumes power, while the zombie side consumes quantity.
Looking at Han Hai's side again, at this moment, he saw that the rune energy in the upper left corner had broken through to 200, and at this time, he could finally start writing a simple walking function. Although he doesn't have enough energy to write a whole function now, he can collect character energy and improve the code at the same time.
The root system of the pea shooter is a long whisker, and basically the strength of a single whisker cannot support the weight of the body at all, so Han Hai divided the number of roots of the model into four equal parts, and the root system of each area formed a walking leg.
So he writes a general walking function, and then a direction control function and a coordinated multi-root equilibrium function.
The main body of the function is actually the same, and the purpose of writing this is only to increase reusability and reduce the amount of code, because Hanhai has a limited number of characters.
In this way, Han Hai flipped through the book next to him while writing the lines of code in the function, after all, the cost of module debugging once was a bit high, and he didn't want to spend 100 characters of energy just to debug the feasibility of the module, so he tried to write according to the examples in the book.
This time, Han Hai also found the code to control the growth of the roots of the tree, and he optimized it so that the ripening process became shorter, and Han Hai expected that it would only take half an hour for the pea shooter to reach the mature body.
When the code in Han Hai's interface reached 240 lines, he casually pulled the document to the beginning and carefully began to read it from the beginning.
At this time, I found that at the beginning of this document, you can clearly see a line of familiar characters #include, and when he finished reading, he closed the document and stood up and stretched.
When Han Hai finished stretching, he lowered his head and stood on the ground for a while.
I saw a crack on the cement floor in front of Han Hai, and through the crack, you can clearly see the green seeds inside, probably because Han Hai modified the growth process, and this time the exact growth time countdown was not given next to the plant.
After Han Hai found out about this situation, he looked carefully at the seeds underground, and he compared the incidental ability of growth acceleration with the estimated time in his heart.
But Han Hai looked at it for a while and found that there was no obvious change in the seed, he pressed his right hand against his chin, and he didn't understand why this happened, could it be that the seed was broken?
At that moment, the seed finally pulled out a root, which was different from the previous one, it was clearly able to move, and it began to poke into the hard floor next to it.
At this time, a terrible thing happened, and the seeds that were still growing slowly suddenly stretched out more roots into the floor below, and then grew out of the branches at a speed visible to the naked eye.
However, around the place where the Walking Pea Shooter had just grown, the dirt on the floor had turned into useless grains of sand.
When the pea shooter matured, it pulled its roots out of the ground, then used its many roots to form limbs, and then ran towards the shutter door.
The walking pea shooter began to climb up under a pillar near the roller shutter, and finally stopped at the corner of the roof, and then began to shoot at the zombie horde outside.
And Han Hai didn't pay attention to the behavior of the walking pea shooter, he just estimated the maturity time of this shooter, and then came up with a surprising figure of 15 minutes.
Han Hai looked at the character energy of 201 in the upper left corner of the vision and assessed the income during this time, the 240 lines of code just now consumed about 980 character energy, so his pea shooter alone destroyed 1181 zombies.
But Han Hai looked at the group of zombies at the door, and had a clear understanding of the number of zombies in the underground garage.
He didn't dare to slack off, and immediately planted 2 Pea Shooter Seeds on the ground, because at this time, these teams that were released could no longer hold on, and Fan Yu couldn't send out a flame attack.
Judging from Han Hai's position, there were already some zombies crawling up the cage.
At this moment, Han Hai had more than 100 points of character energy in his account, which showed that there were definitely a lot of zombies roaring outside.
But now that another pea shooter has joined, the speed of destroying zombies has increased again, and after Han Hai planted another seed, he conveyed to them an order to run to the roof of the house to destroy the zombies when they are ripe, and walked towards Fan Yu.
After Han Hai walked to Fan Yu's side, he looked at Fan Yu with a collapsed face and said in surprise: "The zombies in the basement are a little wrong." ”
After Fan Yu saw Han Hai walking by and asked this question, he smiled: "Hehe, it's different, the zombies in the basement have not evolved, and the zombies running outside have been strengthened by 3 black rains." ”
Han Hai asked in surprise, "Can zombies still be strengthened?" What is Black Rain? ”
Fan Yu took out a cigarette from the beggar's pocket, lit it with a flame in his left hand, and took a puff in his mouth before saying quietly: "I don't know when, it will rain every 6 or 7 days, and the color of these rains is actually black." “
Saying this, he turned his head and glanced at Han Hai, and said with a serious face: "This black rain human beings can't touch it, otherwise it will mutate into a zombie." But zombies are different, these black rain seems to be a tonic for zombies, whenever this time zombies will stand in place to accept the black rain, when the black rain stops, it can be clearly found that these zombies have become stronger and faster. ”
In the end, he turned his head disdainfully and glanced at the zombies outside the slaughterhouse and said: "And these zombies in the underground garage were originally driven in by the thugs, because they couldn't touch the black rain and didn't evolve, so they felt weak." ”