Palette image (incomplete)

This commit is contained in:
2025-08-27 22:55:47 -05:00
parent 31fa4948d5
commit 30232d1275
8 changed files with 46 additions and 6 deletions

View File

@@ -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();