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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user