本文整理汇总了C++中CGameManager::GetGameBlockX方法的典型用法代码示例。如果您正苦于以下问题:C++ CGameManager::GetGameBlockX方法的具体用法?C++ CGameManager::GetGameBlockX怎么用?C++ CGameManager::GetGameBlockX使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGameManager
的用法示例。
在下文中一共展示了CGameManager::GetGameBlockX方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
if(((screen->w/5*3+frame/2)%screen->w+screen->w/5)>screen->w){RBC_DrawRect(0, 0, ((screen->w/5*3+frame/2)%screen->w+screen->w/5)-screen->w, screen->h, 243,134,48);}
RBC_DrawRect((screen->w/5*4+frame/2)%screen->w, 0, screen->w/5, screen->h, 250,105,0);
if(((screen->w/5*4+frame/2)%screen->w+screen->w/5)>screen->w){RBC_DrawRect(0, 0, ((screen->w/5*4+frame/2)%screen->w+screen->w/5)-screen->w, screen->h, 250,105,0);}
blockS.Draw(-100, 90+sin(a/100)*50);
blockZ.Draw(50, 90+sin(a/100+10)*50);
blockI.Draw(200, 90+sin(a/100+20)*50);
blockT.Draw(350, 90+sin(a/100+30)*50);
start.Draw();
help.Draw();
exit.Draw();
}else
if(gamestatus==1){
switch(manager.ReturnSpeed()){
case 2:RBC_DrawRect(0, 0, screen->w, screen->h, 105,210,231);break;
case 4:RBC_DrawRect(0, 0, screen->w, screen->h, 167,219,216);break;
case 6:RBC_DrawRect(0, 0, screen->w, screen->h, 224,228,204);break;
case 8:RBC_DrawRect(0, 0, screen->w, screen->h, 243,134,48);break;
case 10:RBC_DrawRect(0, 0, screen->w, screen->h, 250,105,0);break;
case 12:RBC_DrawRect(0, 0, screen->w, screen->h, 250,70,0);break;
case 14:RBC_DrawRect(0, 0, screen->w, screen->h, 250,35,0);break;
case 16:RBC_DrawRect(0, 0, screen->w, screen->h, 250,10,0);break;
case 18:RBC_DrawRect(0, 0, screen->w, screen->h, 250,0,0);break;
}
RBC_DrawRect(245, 0, 310, 600, 0,0,0);
RBC_DrawRect(250, 0, 300, 600, 85,98,112);
RBC_DrawRect(570, 70, 210, 210, 0,0,0);
RBC_DrawRect(575, 75, 200, 200, 200, 200, 200);
GameBlock.Draw(manager.GetGameBlockX()*30, manager.GetGameBlockY()*30);
NextBlock.Draw(375, 150);
manager.DrawTable();
RBC_Write(575, 300, "Speed:", screen);
RBC_Write(675, 300, manager.ReturnSpeed(), screen);
RBC_Write(575, 330, "Lines:", screen);
RBC_Write(675, 330, manager.ReturnDone(), screen);
RBC_Write(575, 360, "Score:", screen);
RBC_Write(675, 360, manager.ReturnScore(), screen);
}else
if(gamestatus==2){
switch(manager.ReturnSpeed()){
case 2:RBC_DrawRect(0, 0, screen->w, screen->h, 105,210,231);break;
case 4:RBC_DrawRect(0, 0, screen->w, screen->h, 167,219,216);break;
case 6:RBC_DrawRect(0, 0, screen->w, screen->h, 224,228,204);break;
case 8:RBC_DrawRect(0, 0, screen->w, screen->h, 243,134,48);break;
case 10:RBC_DrawRect(0, 0, screen->w, screen->h, 250,105,0);break;
case 12:RBC_DrawRect(0, 0, screen->w, screen->h, 250,70,0);break;
case 14:RBC_DrawRect(0, 0, screen->w, screen->h, 250,35,0);break;
case 16:RBC_DrawRect(0, 0, screen->w, screen->h, 250,10,0);break;
case 18:RBC_DrawRect(0, 0, screen->w, screen->h, 250,0,0);break;
}
RBC_DrawRect(245, 0, 310, 600, 0,0,0);
RBC_DrawRect(250, 0, 300, 600, 85,98,112);
RBC_Write(360, 250, "Pause", screen);
}else
if(gamestatus==3){
RBC_DrawRect((0+frame/2)%screen->w, 0, screen->w/5, screen->h, 105,210,231);
if(((0+frame/2)%screen->w+screen->w/5)>screen->w){RBC_DrawRect(0, 0, ((0+frame/2)%screen->w+screen->w/5)-screen->w, screen->h, 105,210,231);}
RBC_DrawRect((screen->w/5+frame/2)%screen->w, 0, screen->w/5, screen->h, 167,219,216);