Ignore:
Timestamp:
Jan 26, 2011, 1:33:36 AM (10 years ago)
Author:
sam
Message:

Change the way the Scene object works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/deushax/game.cpp

    r259 r289  
    2626    int mousex, mousey;
    2727    int done;
    28 
    29     Scene *scene;
    3028};
    3129
     
    4038    data->x = data->y = 0;
    4139    data->done = 0;
    42     data->scene = NULL;
    4340}
    4441
     
    5855    Entity::TickDraw(deltams);
    5956
    60     GetScene();
    61 
    62     data->map->Render(data->scene, -data->mousex, -data->mousey, 0);
    63     data->scene->Render();
    64 
    65     delete data->scene;
    66     data->scene = NULL;
     57    data->map->Render(-data->mousex, -data->mousey, 0);
    6758}
    6859
     60#if 0
    6961Scene *Game::GetScene()
    7062{
     
    7365    return data->scene;
    7466}
     67#endif
    7568
    7669void Game::SetMouse(int x, int y)
Note: See TracChangeset for help on using the changeset viewer.