Changeset 1395 for GTP/trunk/App/Games/Jungle_Rumble
- Timestamp:
- 09/17/06 20:32:17 (18 years ago)
- Location:
- GTP/trunk/App/Games/Jungle_Rumble
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Games/Jungle_Rumble/bin/config.xml
r1386 r1395 1 1 <?xml version="1.0"?> 2 2 <config> 3 <width> 800</width>4 <height> 600</height>3 <width>512</width> 4 <height>480</height> 5 5 <fullscreen>0</fullscreen> <!-- 1 = TRUE, 0 = FALSE --> 6 6 <cubemapsize>512</cubemapsize> <!-- 512, 1024, 2048, ... - current ATI cards have problems with size above 512 --> -
GTP/trunk/App/Games/Jungle_Rumble/src/MenueScene.cpp
r1378 r1395 51 51 Textures[0]->GetLevelDesc(0, &desc); //get texture size 52 52 //calculate transfomation: 53 D3DXVECTOR2 scaling((float) this->manager->screenWidth/desc.Width,(float)this->manager->screenHeight/desc.Height);53 D3DXVECTOR2 scaling((float)((float)this->manager->screenWidth/(float)desc.Width),(float)((float)this->manager->screenHeight/(float)desc.Height)); 54 54 //set matrix: 55 55 D3DXMatrixTransformation2D(&spriteMatrix,NULL,0.0,&scaling,NULL,0,NULL); … … 63 63 this->LoadingTextures[index]->GetLevelDesc(0, &desc); //get texture size 64 64 //calculate transfomation: 65 D3DXVECTOR2 scaling((float) this->manager->screenWidth/desc.Width,(float)this->manager->screenHeight/desc.Height);65 D3DXVECTOR2 scaling((float)((float)this->manager->screenWidth/(float)desc.Width),(float)((float)this->manager->screenHeight/(float)desc.Height)); 66 66 //set matrix: 67 67 D3DXMatrixTransformation2D(&spriteMatrix,NULL,0.0,&scaling,NULL,0,NULL); … … 188 188 void MenueScene::initGUI() { 189 189 190 //FONTs 191 this->GUI->SetFont( 1, L"Comic Sans MS", 18, FW_BOLD ); 190 this->setBackgroundSound("./media/music/soundpark/menu.mp3"); 191 this->playBackgroundSound(); 192 193 this->GUI->SetVisible(true); 194 } 195 196 void MenueScene::setupGUI() { 197 //diese funktion ist leider naotwendig da ich die größe noch nicht in initGUI festlegen kann da der manager da noch NULL ist... 198 199 int fontsize = 0; 200 switch(this->manager->screenWidth) { 201 case 640: 202 fontsize = 14; 203 break; 204 case 800: 205 fontsize = 18; 206 break; 207 case 1024: 208 fontsize = 24; 209 break; 210 case 1200: 211 fontsize = 30; 212 break; 213 case 1600: 214 fontsize = 36; 215 break; 216 case 1900: 217 fontsize = 42; 218 break; 219 default: 220 fontsize = 24; 221 break; 222 } 223 this->GUI->SetFont( 1, L"Arial", fontsize, FW_BOLD ); 192 224 193 225 // Buttons … … 203 235 } 204 236 205 this->setBackgroundSound("./media/music/soundpark/menu.mp3"); 206 this->playBackgroundSound(); 207 208 this->GUI->SetVisible(true); 209 } 210 211 void MenueScene::setupGUI() { 212 //diese funktion ist leider naotwendig da ich die größe noch nicht in initGUI festlegen kann da der manager da noch NULL ist... 213 float factorX = (float)this->manager->screenWidth/100; 214 float factorY = (float)this->manager->screenHeight/100; 237 float factorX = ((float)this->manager->screenWidth)/((float)100); 238 float factorY = ((float)this->manager->screenHeight)/((float)100); 215 239 216 240 this->GUI->GetListBox(IDC_CHALLENGELIST)->SetLocation((int)(81*factorX), (int)(5*factorY)); -
GTP/trunk/App/Games/Jungle_Rumble/src/WuermerDX9_2003.vcproj
r1391 r1395 5 5 Name="WuermerDX9" 6 6 ProjectGUID="{9C04CC2D-C188-4443-A185-CB0BCA6ED98D}" 7 RootNamespace="WuermerDX9" 7 8 SccProjectName="" 8 9 SccAuxPath="" … … 221 222 AdditionalDependencies="dxerr9.lib dxguid.lib d3dx9d.lib d3d9.lib winmm.lib comctl32.lib dsound.lib dinput8.lib " 222 223 OutputFile="..\bin\JungleRumble.exe" 224 Version="1.0" 223 225 LinkIncremental="1" 224 226 GenerateDebugInformation="FALSE"
Note: See TracChangeset
for help on using the changeset viewer.