Ignore:
Timestamp:
Apr 4, 2011, 2:05:49 AM (10 years ago)
Author:
sam
Message:

monsterz: do not display the interface in the title screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/interface.cpp

    r750 r752  
    3737    Title *title;
    3838    Board *board;
    39     int screen, tiles;
     39    int tiles;
    4040
    4141    enum
     
    5757    data->title = NULL;
    5858    data->board = NULL;
    59     data->screen = Tiler::Register(PNG_BACKGROUND, vec2i(640, 480), 0, 1.0f);
    6059    data->tiles = Tiler::Register(PNG_TILES, 48, 0, 1.0f);
    6160    data->state = InterfaceData::INIT;
     
    101100    vec2i mouse = Input::GetMousePos();
    102101
    103     Scene::GetDefault()->AddTile((data->screen << 16) | 0, 0, 0, 10, 0);
    104 
    105102    if (Platform::GetMouseCount() && mouse.x >= 0 && mouse.y >= 0)
    106103    {
     
    117114        Ticker::Unref(data->board);
    118115    Tiler::Deregister(data->tiles);
    119     Tiler::Deregister(data->screen);
    120116    delete data;
    121117}
Note: See TracChangeset for help on using the changeset viewer.