J2ME Development Tips - Note Value Change Interval

xiaoxiao2021-03-06  39

In J2ME development, especially in game development, we often need to draw some values ​​on the screen, such as the level, etc., you must confirm the change range of these values, that is, the maximum and minimum value of these values, Make sure that these values ​​can be displayed in your interface in this section without having a value displayed between incomplete or numerical values ​​and other content. When numerical judgment, especially when the multiplication is encountered, it is possible to pay attention to the possibility of overflow. For example, the calculation result is an INT type, and the numerical overflow is overflow after multiplying operation. If it is still an int type, a logic error will occur when using the value. In fact, these problems are some common problems, but in many games, there are all existence of different levels. Now these contents are written, and they pay attention to everyone.

转载请注明原文地址:https://www.9cbs.com/read-54386.html

New Post(0)