Changeset 284


Ignore:
Timestamp:
Jan 25, 2011, 11:26:29 AM (10 years ago)
Author:
sam
Message:

New exploding sprites by Luc. Added to the data but not yet to the code.

Location:
trunk/monsterz
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/board.cpp

    r279 r284  
    7575        for (int i = 0; i < 8; i++)
    7676        {
    77             int id = 25 + 5 * (rand() % 7);
     77            int id = 100 + 20 * (rand() % 7);
    7878            data->pieces[i][j] = new Piece(game, Int2(i, j), id);
    7979            if (j)
     
    215215        int x = data->mouse.x - 2;
    216216        int y = data->mouse.y + 59;
    217         data->game->GetScene()->AddTile((data->tiles << 16) | 7, x, y, 10, 0);
     217        data->game->GetScene()->AddTile((data->tiles << 16) | 22, x, y, 10, 0);
    218218    }
    219219}
     
    305305             * the board. */
    306306            Int2 newpos = Int2(i * 48, below->GetPos().y + 48);
    307             int id = 25 + 5 * (rand() % 7);
     307            int id = 100 + 20 * (rand() % 7);
    308308            data->pieces[i][7] = new Piece(data->game, Int2(i, 7), id);
    309309            data->pieces[i][7]->SetBelow(below);
  • trunk/monsterz/piece.cpp

    r276 r284  
    307307    case PieceData::UNGRAB:
    308308        if ((data->cell * 48 - data->src).sqlen() > 24 * 24)
    309             id = data->id + 2;
     309            id = data->id + 5;
    310310        z = 4;
    311311        break;
     
    314314        break;
    315315    case PieceData::POP:
    316         id = data->id + 4;
     316        id = data->id + 7;
    317317        break;
    318318    case PieceData::DEAD:
Note: See TracChangeset for help on using the changeset viewer.