Changeset 323


Ignore:
Timestamp:
Jan 31, 2011, 11:24:26 PM (8 years ago)
Author:
sam
Message:

Clamp tiles to the board, using a PNG alpha trick.

Location:
trunk/monsterz
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/board.cpp

    r320 r323  
    219219    Entity::TickDraw(deltams);
    220220
    221     Scene::GetDefault()->AddTile((data->screen << 16) | 0, 0, 0, 0, 0);
     221    Scene::GetDefault()->AddTile((data->screen << 16) | 0, 0, 0, 10, 0);
    222222    Scene::GetDefault()->AddTile((data->board << 16) | 0, 24, 72, 1, 0);
    223223
     
    226226    {
    227227        int2 p = int2(444, 380 - 28 * n);
    228         Scene::GetDefault()->AddTile((data->icons << 16) | n, p.x, p.y, 1, 0);
     228        Scene::GetDefault()->AddTile((data->icons << 16) | n, p.x, p.y, 11, 0);
    229229    }
    230230
     
    233233    {
    234234        int2 m = data->mouse + int2(-6, 6 - 48);
    235         Scene::GetDefault()->AddTile((data->tiles << 16) | 22, m.x, m.y, 10, 0);
     235        Scene::GetDefault()->AddTile((data->tiles << 16) | 22, m.x, m.y, 20, 0);
    236236    }
    237237}
  • trunk/monsterz/monsterz.cpp

    r321 r323  
    6363    /* Register an input driver and some debug stuff */
    6464    new SdlInput();
    65     //new Board(int2(8, 8), 9);
    66     new Title();
     65    new Board(int2(8, 8), 9);
     66    //new Title();
    6767    new DebugFps(460, 20);
    6868
Note: See TracChangeset for help on using the changeset viewer.