Changeset 250


Ignore:
Timestamp:
Jan 21, 2011, 1:04:27 AM (10 years ago)
Author:
sam
Message:

Minor tuning to piece behaviour and Z-index.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/piece.cpp

    r248 r250  
    162162        if (data->timer > moving_time + 200.0f)
    163163            data->state = PieceData::IDLE;
     164        t = t * t * 3 - t * t * t * 2;
     165        t = t * t * 3 - t * t * t * 2;
    164166        data->pos = data->src + (t * trip + 0.5f);
    165167        break;
     
    202204
    203205    if (data->state == PieceData::GRAB)
    204         data->game->GetScene()->AddTile((data->tiler << 16) | 0, x, y, z, 0);
     206        data->game->GetScene()->AddTile((data->tiler << 16) | 0, x, y, 5, 0);
    205207}
    206208
Note: See TracChangeset for help on using the changeset viewer.