use of org.asassecreations.voxelgame.asset.AtlasResult in project Voxel_Game by ASasseCreations.
the class VoxelGame method init.
public final void init() {
try {
AssetLoader.loadOriginalTextures();
AssetLoader.loadModifiedTextures();
ChunkModel.getTexture(AssetLoader.getTextureAtlasSize());
final AtlasResult result = AssetLoader.createAtlas();
TEXTURE_ATLAS = result.image;
AssetLoader.loadItems();
Block.BLOCKS = AssetLoader.loadBlocks(result.textures);
result.textures.clear();
} catch (final IOException | URISyntaxException e) {
e.printStackTrace();
}
manager.push(new MenuState());
}
Aggregations