Ignore:
Timestamp:
Apr 7, 2012, 11:55:29 PM (8 years ago)
Author:
sam
Message:

core: allow each blitted tile to be stretched differently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/piece.cpp

    r1184 r1198  
    22// Monsterz
    33//
    4 // Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
     4// Copyright: (c) 2005-2012 Sam Hocevar <sam@hocevar.net>
    55//   This program is free software; you can redistribute it and/or
    66//   modify it under the terms of the Do What The Fuck You Want To
     
    9494    case PIECE_HUNT:
    9595        data->size = ivec2(48);
    96         data->tileset = Tiler::Register(PNG_TILES, data->size, ivec2(0), vec2(1.0f));
     96        data->tileset = Tiler::Register(PNG_TILES, data->size, ivec2(0));
    9797        data->pieceid = 80 + 20 * pieceid;
    9898        break;
     
    383383
    384384    if (data->state != PieceData::DEAD)
    385         Scene::GetDefault()->AddTile(data->tileset, pieceid, ivec3(x, y, z), 0);
     385        Scene::GetDefault()->AddTile(data->tileset, pieceid, ivec3(x, y, z), 0, vec2(1.0f));
    386386
    387387    if (data->state == PieceData::GRAB && Platform::GetMouseCount())
    388         Scene::GetDefault()->AddTile(data->tileset, 0, ivec3(x, y, 9), 0);
     388        Scene::GetDefault()->AddTile(data->tileset, 0, ivec3(x, y, 9), 0, vec2(1.0f));
    389389}
    390390
Note: See TracChangeset for help on using the changeset viewer.