Palette image (incomplete)
This commit is contained in:
@@ -20,8 +20,8 @@ engine_t ENGINE;
|
||||
|
||||
void assetLoadCallback(void *data) {
|
||||
consolePrint("Asset load callback called!");
|
||||
test = ASSET.loaded.palette;
|
||||
consolePrint("Loaded palette with %d colors", ASSET.data.palette.colorCount);
|
||||
// test = ASSET.loaded.palette;
|
||||
// consolePrint("Loaded palette with %d colors", ASSET.data.palette.colorCount);
|
||||
}
|
||||
|
||||
errorret_t engineInit(void) {
|
||||
@@ -35,7 +35,7 @@ errorret_t engineInit(void) {
|
||||
errorChain(assetInit());
|
||||
errorChain(displayInit());
|
||||
|
||||
assetLoad("first.palette.dpf", assetLoadCallback, NULL);
|
||||
assetLoad("entities.dpi", assetLoadCallback, NULL);
|
||||
if(ASSET.state == ASSET_STATE_ERROR) errorChain(ASSET.error);
|
||||
|
||||
sceneTestAdd();
|
||||
|
Reference in New Issue
Block a user