Android Go game development first week summary

Source: Internet
Author: User

Development has been one weeks, every day tired of not, tomorrow is the weekend, you can have a good rest, do something to do.

To be a mobile gaming company, just arrived to take over an Android phone go project, is a network of Go game, the client a friend spent half a year, has been done, the effect is very good, the server also wrote some, to start to let me write the server, and is a trial 6 days, OK, try again one months, just in time to catch the new year.

The first day is still more depressing, 6 months of project from the beginning of a clue is still relatively tight, but then much better, because after all, is the socket to write the server, before there have been some experience, so from the next day began to handwriting, to the 5th day, the Japanese boss suddenly said that the Japanese headquarters of the server is Linux, To be deployed with Tomcat, it is inconceivable that the boss even what is Tomcat do not know, so let the turn, that can only use the servlet to write the server, the result is written written on the discovery is not down, the workload multiplied, because all know servle will not actively send data to the client , only when the client requests to respond, send information to the client, the game has 27 rooms, each room has 100 tables, but also chat, request table information, room information, etc., even chess both sides of a person to go is what chess to inform each other, With the socket, the server can be all the customer information to save, but the servlet, you can only put the data into the database, and then let the client constantly to request, written for two days, two test mobile phone playing chess are slow to die, often panic, I really hope that the servlet can have the initiative to send data to the client function, the Internet search for a while, said this is a server-side "push" technology, in the TOMCAT6, SERVLET3 specifications to achieve, debugging a bit, it does not work, I still in the relatively depressed, But I kind of admire the cooperation of that Buddy, that Buddy is just a light smile, said this can not, I think he is not worried about the boss, the boss said that the end of the month, he is still very optimistic, it seems to have to learn this mentality.

Later today to work, I still worry, that dude and I said, do not have to do the servlet, and do not use a socket that TCP, with UDP, so that two chess each other to save each other's information, and let the server and client with UDP, in order to reduce the pressure on the server. So the project changed to UDP, originally thought that changes will add a lot of work, it is found that it is not so, abstract thought is very important, because the client and server side is simply passing data, to receive information to determine their own behavior, so the change is to send the information function can be, the function is also encapsulated , change one can, so write write, oneself feel a little "out of control", feel change up a kind of good feeling, abstraction and encapsulation bar.

Finally, today is Friday, two hours after the afternoon is not very focused, found that the debugging when the inexplicable strange problems, more depressed, the specific details do not say, just want to say, sometimes upset you, to their own suspicion, there may be a "-" a small symbol, This is in the resolution of the message processing a specification, the original should be "_", when the code a lot, a baffling time on the examination of your nerves, so the firm belief or do what things need.

Road long its repair far XI, I will go up and down and seek it, hehe, we exchange more.

Related Article

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.