J2ME GAME development notes - transplantation

xiaoxiao2021-03-06  55

Recently, some games are observed (after the anti-compilation), it is found that there is a way to facilitate the transplantation of the game. Define an interface (such as StringTable) defines the static strings used in the game as the constant of the interface. Then, let the classes that use these strings implement the StringTable interface. This will only need to modify the string inside the interface. Of course, for the positioning of coordinates in the game, it is best to use getWidth (), and getHeight () also has a font class method StringWidth, do not die. In this case, the graft work is relatively easy.

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

New Post(0)