Chapter 73: Su Han's Powerful Programming Ability
Because if you want to write a game, you should first design the actions and game scenes of the game characters, and not directly write the code.
If there are no characters and the middle of the scene, how can you debug it?
Even if the shape of the character is just a simple line, it is fine.
To put it bluntly, you can hold it.
But it can't be without.
Now it seems that the other party's so-called programming is nothing more than a take-it-or-leave-it-or-leave-it.
Nine times out of ten, it's the kind of writing that uses someone else's task package.
The logical relationship between the data is not known.
It may not even be very clear about the process of writing.
It seems that the other party is still only at the elementary level.
Are you still planning to study for a bachelor's, master's and doctorate?
Wei Haoguang shook his head.
However, Su Han writes code very quickly.
It's a little bit unbelievably fast.
Wei Haoguang was a little dumbfounded when he saw this.
How could anyone write code so quickly?
Don't be foolish, you kid!
Of course, Wei Haoguang just thought so, how to say that he is also an expert, he can naturally see that the other party is not playing blindly, some sentences are still logical, but they are written too fast, which makes him feel a little incredible.
Although Su Han wrote quickly, Wei Haoguang looked down on him even more.
The layman looks lively.
Insiders look at the doorway.
Su Han hardly adds any annotations when writing code, nor does he debug tests, just to be fast.
How can this work.
Programmers should write programs with a rigorous and serious attitude, and should not blindly pursue speed and pursue speed.
Blindly seeking speed and showing off skills, but lost stability.
What's the use of writing fast and unstable.
I'm afraid that this kid has even forgotten what was written in front of him when he writes about it!
That's funny.
However, in terms of language proficiency, Su Han is indeed a little talented, but his temperament is not stable, and he doesn't seem to be the kind of person who is particularly careful.
Do you want to qualify for a bachelor's, master's and doctor's degree at this level?
This Ph.D. student is too worthless.
Of course, Mai Liangshu couldn't understand it, he only saw that Su Han's speed was very fast, and then he came to Wei Haoguang's side and whispered, "Dean Wei! What about the level? ”
"It's hard to say yet. Just take a look and you'll find out. ”
Su Han quickly finished writing more than a hundred lines of code.
Since he did not annotate.
Wei Haoguang didn't know if what Su Han wrote was right?
Now it's up to the other party to debug it?
Anyway, if you debug it directly, you will definitely go wrong.
At this time, Su Han opened the drawing tool and began to make characters and scenes.
Wei Haoguang suddenly realized!
It turns out that the other party does not intend to design the characters, but intends to design them after writing.
Someone else writes code first and then designs the characters?
It's really a novelty.
Although the function of this drawing tool is very simple, Su Han is extremely skilled in manipulating it, and with his strong drawing skills, a Contra character jumps on the paper.
As for the use of scenes, he also chose the idea of patching together in pieces, only designing a few scene fragments, and finally piecing them together.
It took about ten minutes.
Su Han completed all the preparations.
Finally, Su Han linked the written code and various materials together, and started debugging.
The characters of Contra are perfectly recreated.
Su Han uses the keyboard to control the character to move along the ground, firing bullets and hitting enemies that appear along the way, while testing jumps and side-to-side movement.
Seeing this, a trace of surprise appeared on Mai Liangshu's face and said, "Isn't this the Contra Douluo that my son played!" Can a computer play a game like this? ”
Wei Haoguang didn't know what to say.
As you can see from the test screen of the game, the operation of the game is very silky, and there is no discord at all.
While this will lead to a huge increase in the level of computer games, these games are almost always carefully designed and tuned.
Su Han was only about ten minutes before and after.
You can design a game that looks so beautiful and debugs it without bugs.
I have to say that the other party's programming level is really amazing.
At least in terms of proficiency, Wei Haoguang can't find any faults.
Su Han tested the game and found that there was no problem, and then turned to look at Wei Haoguang and said, "Dean!" You see, my game design is okay! ”
"I'll take a look!"
Su Han got out of the way.
Wei Haoguang sat up, briefly experienced the game, and then began to ask the other party's code intent line by line.
Su Han also began to explain the specific purpose of these codes line by line.
As Su Han explained more and more...... Wei Haoguang's heart was also becoming more and more shocked.
No wonder this game looks so silky perfect.
It turned out that Su Han had already taken into account countless small details.
What's more, the code utilization is very high, and there is also an error correction function, which shows strong programming ability.
If it's your own, let alone whether you can make such beautiful pictures and characters, the language utilization alone can't reach the level of the other party.
What's more, the file occupation after programming is still very small, only a dozen K, in fact, from these details, the other party's level is really not ordinary.
Wei Haoguang finally nodded with satisfaction and said, "Not bad!" Su Han. Your programming level is already very high. You should have played games at home, right? ”
Su Han said: "I have a game console at home. This game is based on the scenario of the popular game Contra. ”
Mai Liangshu smiled: "Su Han, you have done a great job in this game. You should study game design, and if you don't get it, you can design such a good game for our country. ”
Su Han smiled but didn't say anything.
Contra is nothing to him!
If you design all the games in your head, you can almost monopolize the game market in the world.
Wei Haoguang saved the code, closed it and opened another code, and said, "Look at it!" Can you understand this? ”
Su Han leaned over and took a look. It is obvious that it is a piece of software, with a lot of code and very delicate settings. But with the massive data in his head, he quickly had the answer.
Su Han said: "This should be an integrated circuit design software. ”
Wei Haoguang was also very surprised, he didn't expect the other party to see it so quickly. I also had a good impression of Su Han again, and said, "Let's talk about it!" Why do you think this is an integrated circuit design software? ”
Su Han then pointed out some of the code features of the early old design software, which will be known in the future, but will still be innovative. Looking at these codes, you can know that this software should also be researched by many people.
Wei Haoguang became more and more frightened the more he listened.
How could the other party possibly know so much?
It's hard to hide your curiosity!
Wei Haoguang said: "Su Han! How did you find out about these features? ”