Learning C # Starting from Tetris (1) Overview

Source: Internet
Author: User

Chatting with an undergraduate student a few days ago, he has been complaining that he has learned too much theoretical knowledge and has too few practical opportunities. I am worried that it may be difficult to find a job after graduation. I think if a person wants to invest in development, he can always find a project. Instead of wasting your time on complaints and accusations, why don't you start development now? His answer is that he does not know what to develop, no one guides himself, and he does not know where to start. Let's start with Tetris.

"Starting from Tetris, that game is too simple. Even if I can develop a Tetris, what company will ask me? In the future, I will write on my establishment that I have played the Tetris game. So no one will ask me for it !"

"A Tetris is indeed too simple in terms of algorithm or other aspects. However, many people can only see the simplicity of Tetris, but few can do the ultimate in simplicity. A successful programmer is not simply trying to keep simple things in depth and do simple things to the extreme. Let me show you how to develop a tetris ."

In this case, we would also like to invite our audience to go deep into the Russian square and make this simple little thing an extreme. This series of discussions is suitable for a certain degree of C # syntax. But I have not done any big projects to study with my shoes. If any hero sees something from the monks, you are welcome to make a picture.

 

First, let's talk about the rough planning of our learning:

Step 1: first, let's briefly understand the general algorithms and required knowledge of Russian game development, and then combine these knowledge Sets

Develop a small Russian game Demo. Basically, the control and operation of tetris games are achieved.
Step 2: Based on our Demo, we try our best to optimize our algorithms. Interface

Beautify and Expand functions. From a simple Demo to a very playable standalone version in Russia

Square games.

Step 3: Let's try to make the single-host version of Tetris into an online game for two people, and use SOCKET communication to let us

Their Tetris can be played by two people. We mainly use the point-to-point method. A

A server serves as a client.

Step 4: Make our simple online version of Tetris into a server with a game hall connected to multiple clients

Connect to the Tetris game. Let more people join us.

Step 5: make profits. We study the possible profit models of Russian games in depth, and we will

As the game realizes our profit model, we will add other items in our game, while

These items may need to slightly change the rules of the game. So far, we can rely on a point by point

Gradually expand into one plane to complete a Tetris game business model.

So far, our game can become a profitable business model. Of course, whether or not we can rely on this simple game to gain money depends on the quality of our games. We also need to see our opportunities and publicity. Explain from the very bad situation. The possibility of making money is basically zero. Of course, this is also the most likely situation for this development. But for a computer programmer. Such a development process can be called a work experience, and with such a model of thinking and learning, I believe that complaints and accusations should be far away from your life.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.