Game front-end development essay [2]

Source: Internet
Author: User

1,

Game Development often encounters problems with backend debugging, that is, when there is a protocol problem,

The backend should have a breakpoint at the Protocol sending,

The front end is at the codec breakpoint,

Make sure that the data is not modified by the front-end.

 

 

2,

Reuse components whenever possible.

After a game is developed for a period of time, there will be various components. For example, countdown.

As a latecomer, the cost of using a component is quite high, because learning is required because it will be coupled.

However, to facilitate colleagues' review, we should try our best to use public components and avoid making wheels on our own, even if their wheels are easier to use.

 

3,

Public Function, try to judge null, ensure that no error is reported.

The self-written functions are roughly divided into public/private/protected.

※Public functions do not trust input parameters, nor require certain operations before calling them. (It can be written in parameters)

 

4,

Ensure that the incoming data does not report an error: the imported data is saved and extracted when the UI is opened.

If the UI is opened for initialization and resource loading, it must be divided into the data part and the resource part.

 

5,

Resources correspond to the as files one by one to facilitate modification and viewing.

Game front-end development essay [2]

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.