git repos / blockattack-game

commit c1bd83fb

sago007 · 2015-12-23 19:41
c1bd83fb67da243264205555b9de635bfd8d5ece patch · browse files
parent 22c9836e8a7386f3b9591c0367a243b2fd4298df

Readded the frame boarder for the chain counter

Changed files

M source/code/main.cpp before
M source/code/mainVars.hpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index 39240f4..ceff1c8 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -166,7 +166,7 @@ static int InitImages(sago::SagoSpriteHolder& holder) {
iWinner = holder.GetSprite("i_winner");
iDraw = holder.GetSprite("i_draw");
iLoser = holder.GetSprite("i_loser");
- //iChainFrame = holder.GetSprite("chain_frame");
+ iChainFrame = holder.GetSprite("chain_frame");
dialogBox = holder.GetSprite("dialogbox");
iLevelCheck = holder.GetSprite("i_level_check");
iLevelCheckBox = holder.GetSprite("i_level_check_box");
@@ -1332,7 +1332,7 @@ static void DrawBalls() {
//cout << "Printing text: " << theTextManeger.textArray[i].getText() << endl;
int x = theTextManeger.textArray[i].getX()-12;
int y = theTextManeger.textArray[i].getY()-12;
- //DrawIMG(iChainBack,screen,x,y);
+ DrawIMG(iChainFrame,screen,x,y);
nf_standard_small_font.draw(screen, x+12,y+7, NFont::CENTER, "%s",theTextManeger.textArray[i].getText());
}
diff --git a/source/code/mainVars.hpp b/source/code/mainVars.hpp index f8bacb8..9e28c16 100644 --- a/source/code/mainVars.hpp +++ b/source/code/mainVars.hpp
@@ -60,6 +60,7 @@ static sago::SagoSprite iGameOver; //The gameOver image
static sago::SagoSprite iWinner; //the "winner" image
static sago::SagoSprite iDraw; //the "draw" image
static sago::SagoSprite iLoser; //the "loser" image
+static sago::SagoSprite iChainFrame;
//Animations:
static sago::SagoSprite cursor; //The animated cursor
static sago::SagoSprite bomb;