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]