Ignore:
Timestamp:
Feb 1, 2011, 11:07:19 PM (10 years ago)
Author:
sam
Message:

Add an Interface class that displays the general interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/title.cpp

    r322 r331  
    3131
    3232private:
    33     int screen, title, logo;
     33    int title, logo;
    3434    int anim[6];
    3535    int event[7];
    3636
    37     enum 
     37    enum
    3838    {
    3939        IDLE,
     
    6565    srand(rand() ^ time(NULL));
    6666
    67     data->screen = Tiler::Register(PNG_BACKGROUND, 640, 480, 1.0f);
    6867    data->logo = Tiler::Register(PNG_LOGO, 380, 181, 1.0f);
    6968    data->title = Tiler::Register(PNG_TITLE, 384, 384, 1.0f);
     
    204203    }
    205204
    206     Scene::GetDefault()->AddTile((data->screen << 16) | 0, 0, 0, 0, 0);
    207205    Scene::GetDefault()->AddTile((tiler << 16) | id, 24, 72, 1, 0);
    208206    Scene::GetDefault()->AddTile((data->logo << 16) | 0, 26, 250, 2, 0);
     
    211209Title::~Title()
    212210{
    213     Tiler::Deregister(data->screen);
    214211    Tiler::Deregister(data->logo);
    215212    Tiler::Deregister(data->title);
Note: See TracChangeset for help on using the changeset viewer.