Actualizado a la última versión de ltexture
This commit is contained in:
@@ -47,24 +47,24 @@ Game::Game(int numPlayers, SDL_Renderer *renderer, Screen *screen, std::string *
|
||||
mSmartSprite[i] = new SmartSprite();
|
||||
}
|
||||
|
||||
mTextureBalloon = new LTexture();
|
||||
mTextureBullet = new LTexture();
|
||||
mTextureGameBG = new LTexture();
|
||||
mTextureGameText = new LTexture();
|
||||
mTextureItems = new LTexture();
|
||||
mTexturePlayer1Head = new LTexture();
|
||||
mTexturePlayer1Body = new LTexture();
|
||||
mTexturePlayer1Death = new LTexture();
|
||||
mTexturePlayer1Legs = new LTexture();
|
||||
mTexturePlayer2Head = new LTexture();
|
||||
mTexturePlayer2Body = new LTexture();
|
||||
mTexturePlayer2Death = new LTexture();
|
||||
mTexturePlayer2Legs = new LTexture();
|
||||
mTextureText = new LTexture();
|
||||
mTextureTextScoreBoard = new LTexture();
|
||||
mTextureTextBig = new LTexture();
|
||||
mTextureTextNokia2 = new LTexture();
|
||||
mTextureTextNokiaBig2 = new LTexture();
|
||||
mTextureBalloon = new LTexture(mRenderer);
|
||||
mTextureBullet = new LTexture(mRenderer);
|
||||
mTextureGameBG = new LTexture(mRenderer);
|
||||
mTextureGameText = new LTexture(mRenderer);
|
||||
mTextureItems = new LTexture(mRenderer);
|
||||
mTexturePlayer1Head = new LTexture(mRenderer);
|
||||
mTexturePlayer1Body = new LTexture(mRenderer);
|
||||
mTexturePlayer1Death = new LTexture(mRenderer);
|
||||
mTexturePlayer1Legs = new LTexture(mRenderer);
|
||||
mTexturePlayer2Head = new LTexture(mRenderer);
|
||||
mTexturePlayer2Body = new LTexture(mRenderer);
|
||||
mTexturePlayer2Death = new LTexture(mRenderer);
|
||||
mTexturePlayer2Legs = new LTexture(mRenderer);
|
||||
mTextureText = new LTexture(mRenderer);
|
||||
mTextureTextScoreBoard = new LTexture(mRenderer);
|
||||
mTextureTextBig = new LTexture(mRenderer);
|
||||
mTextureTextNokia2 = new LTexture(mRenderer);
|
||||
mTextureTextNokiaBig2 = new LTexture(mRenderer);
|
||||
|
||||
mText = new Text(mFileList[48], mTextureText, mRenderer);
|
||||
mTextScoreBoard = new Text(mFileList[46], mTextureTextScoreBoard, mRenderer);
|
||||
@@ -449,8 +449,11 @@ void Game::init()
|
||||
|
||||
// Vector de jugadores
|
||||
if (mNumPlayers == 1)
|
||||
{
|
||||
mPlayer[0]->init(PLAY_AREA_CENTER_X - 11, PLAY_AREA_BOTTOM - 24, mTexturePlayer1Legs, mTexturePlayer1Body, mTexturePlayer1Head, mTexturePlayer1Death, mRenderer);
|
||||
if (mNumPlayers == 2)
|
||||
}
|
||||
|
||||
else if (mNumPlayers == 2)
|
||||
{
|
||||
mPlayer[0]->init((PLAY_AREA_CENTER_FIRST_QUARTER_X * ((0 * 2) + 1)) - 11, PLAY_AREA_BOTTOM - 24, mTexturePlayer1Legs, mTexturePlayer1Body, mTexturePlayer1Head, mTexturePlayer1Death, mRenderer);
|
||||
mPlayer[1]->init((PLAY_AREA_CENTER_FIRST_QUARTER_X * ((1 * 2) + 1)) - 11, PLAY_AREA_BOTTOM - 24, mTexturePlayer2Legs, mTexturePlayer2Body, mTexturePlayer2Head, mTexturePlayer2Death, mRenderer);
|
||||
@@ -3531,10 +3534,12 @@ void Game::initPaths()
|
||||
{
|
||||
mStageBitmapPath[i] = (mSin[(int)((i * 1.8f) + 90)] * (distance) + centerPoint);
|
||||
}
|
||||
|
||||
else if (i < secondPart)
|
||||
{
|
||||
mStageBitmapPath[i] = (int)centerPoint;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
mStageBitmapPath[i] = (mSin[(int)(((i - 149) * 1.8f) + 90)] * (centerPoint + 17) - 17);
|
||||
|
||||
Reference in New Issue
Block a user