C # server WeChat games - multiplayer online role-playing (a)
Software development focusing on the idea, the other can see the document ......
- Uncle Mao
Foreword
A person, starting from 0, the development of a leveling Daguai online. Without any gaming engine, frame, material. Completely from zero, to develop a simple but not simple Daguai leveling online. In this process, to learn basic knowledge and concepts of game development, thus creating more cattle self.
In the development process, it will be used including, but not limited to C #, WCF, WebApi, WebSocket , JavaScript, IIS, SSL, simple graphic design, character font of knowledge, audio editing and even read music-based knowledge ......
use the software includes Visual Studio 2019, micro-letter web developer tools, Photoshop, MuseScore 2, WavePad Sound Editor ......
It looks very complicated is not it, is actually very simple, a journey of a thousand miles begins with a single step, step by step, to discover more cattle self, a person's potential for how much, how can you know not tried it?
Platform Choice
The main idea of this series of articles to share software design, rather than specific language and platform skills, screened in accordance with the easiest, most standardized principles on the platform of choice. Of course, if you Zhongyi any other platform, as long as the understanding of the design ideas, to achieve the same functionality on other platforms should not be difficult. After all, the favored platform for you, you are a master, is not it.
front end
Tencent micro-channel front-end platform game for the simple reason, versatility, without having to install, easy to share propagation. Individual applications threshold micro-channel games is also low, do not spend money.
Taking into account the design of complex 3D scene is too high, our game uses a 2D image. 3D technology you are good, then you regressed, into your own 3D, anyway, we do this in 2D.
Style game screen using very ancient wind ...... pixel is a pixel style game .
rear end
Tencent server uses a cloud server.
Tencent cloud domain name is registered, remember to do the record, and then apply for a free SSL
certificate
server windows
operating system, installation .Net
frame, no database.
Why is Tencent?
Because three is better to take a left out of the wrong issues are Mr. Ma.
In so doing, if just for fun, to spend a year of not more than 1000, do not spend money to play what it is not.
Of course, if you just practice it in local debugging debugging, I do not spend a penny ...... do a pull to the extreme program ape.
Development language
Using front-end development Node.js
, which is designated micro-channel game, I have no idea.
Use the back-end development C#
, the reason is very simple, because simple, standard, free ......
Ready to work
Well, to begin our work, now you need to do the following:
- A
Windows 10
system development with the machine. This is not nonsense, because it was really accustomed to using Mac, so, for convenience, this series of articles mentioned all the work, arewindows 10
run on the machine system, blame I did not tell you oh ...... - Give your machine to lay all the patches to install
.Net Framework 4.7
. Official Download - Download and install the latest version
Visual Studio Community 2019
, free of charge. Official Download - Micro-channel public platform to register a game, download the latest version
微信web开发者工具
, you rememberAppID
. Official Download - Download the
Photoshop
trial version, do not worry installation, since expired would not be able to use, and this is very shameless thing. - Download
MuseScore 2
, this is free of charge. Official Download - Download
WavePad Sound Editor
, this is free for non-commercial users, although some functional limitations, however, have any effect on our development process will not. Official Download
Completed yet? There may be a handful of people will not use part of the software, it does not matter, I could not care How about you ...... Well, there will be described in detail later in the article of.
Development objectives
Everything is ready, then we take a look at the final effect is what. Biexian ugly, I am not art, I was program ape.
Finally, we can see the effect to be achieved with a micro-channel scanning following applet code.
The next article, we will discuss design ideas. If you feel boring, it indicates that your IQ is high ......
but emotional intelligence is too low ......
Next: C # server WeChat games - multiplayer online role-playing (II)