zh_cn:tutorial:custom_model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
zh_cn:tutorial:custom_model [2022/12/16 02:25] – [BakedModel 方法] solidblock | zh_cn:tutorial:custom_model [2024/01/02 10:31] – [Sprites] solidblock | ||
---|---|---|---|
Line 21: | Line 21: | ||
}; | }; | ||
private Sprite[] SPRITES = new Sprite[2]; | private Sprite[] SPRITES = new Sprite[2]; | ||
+ | |||
+ | // Some constants to avoid magic numbers, these need to match the SPRITE_IDS | ||
+ | private static final int SPRITE_SIDE = 0; | ||
+ | private static final int SPRITE_TOP = 1; | ||
</ | </ | ||
zh_cn/tutorial/custom_model.txt · Last modified: 2024/01/02 10:31 by solidblock