Ignore:
Timestamp:
Feb 11, 2011, 10:45:37 PM (10 years ago)
Author:
sam
Message:

TileSets can now be initialised either using the tile size, or the
known number of tiles in a row and a column. Necessary for ticket #24.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/piece.cpp

    r419 r633  
    7676    case PIECE_HUNT:
    7777        data->size = 48;
    78         data->tiler = Tiler::Register(PNG_TILES,
    79                                       data->size.x, data->size.y, 1.0f);
     78        data->tiler = Tiler::Register(PNG_TILES, data->size, 0, 1.0f);
    8079        data->id = 80 + 20 * id;
    8180        break;
    8281    case PIECE_FUSION:
    8382        data->size = 40;
    84         data->tiler = Tiler::Register(PNG_ELEMENTS,
    85                                       data->size.x, data->size.y, 1.0f);
     83        data->tiler = Tiler::Register(PNG_ELEMENTS, data->size, 0, 1.0f);
    8684        data->id = id - 1;
    8785        break;
Note: See TracChangeset for help on using the changeset viewer.