Fixed primitives, improved background images management, now it's possbile to add a different background for opponent deck choosing (menupanel2.jpg) and added a new sub-folder "background" for custom themes where it will be possbile to store up to six new background images for battlefield (from "backdrop1.jpg" to "backdrop6.jpg") that will be randomly choosen when match starts.

This commit is contained in:
Vittorio Alfieri
2021-09-20 15:36:42 +02:00
parent e2a1705b3f
commit 832d033488
8 changed files with 46 additions and 16 deletions

View File

@@ -235,6 +235,13 @@ void GameApp::Create()
#if !defined (PSP)
WResourceManager::Instance()->RetrieveTexture("backdrop.jpg", RETRIEVE_MANAGE);
WResourceManager::Instance()->RetrieveTexture("backdropframe.png", RETRIEVE_MANAGE);
for(int i = 1 ; i < 7; i++){
char temp[4096];
string fileName = "";
sprintf(temp, "background/backdrop%i.jpg", i); //Now it's possibile to randomly use up to other 6 background images for match.
fileName.assign(temp);
WResourceManager::Instance()->RetrieveTexture(fileName, RETRIEVE_MANAGE);
}
#else
WResourceManager::Instance()->RetrieveTexture("pspbackdrop.jpg", RETRIEVE_MANAGE);
WResourceManager::Instance()->RetrieveTexture("pspbackdropframe.png", RETRIEVE_MANAGE);