Changeset 222 for trunk/deushax


Ignore:
Timestamp:
Jan 18, 2011, 2:04:03 AM (10 years ago)
Author:
sam
Message:

Add support for rotated views and stretched tiles.

Location:
trunk/deushax
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/deushax/debugsprite.cpp

    r221 r222  
    3737    data->game = game;
    3838    Ticker::Ref(game);
    39     data->tiler = Tiler::Register("art/test/character-dress.png", 32, 32);
     39    data->tiler = Tiler::Register("art/test/character-dress.png",
     40                                  32, 32, sqrtf(2));
    4041    data->x = 320;
    4142    data->y = 206;
  • trunk/deushax/game.cpp

    r221 r222  
    7070{
    7171    if (!data->scene)
    72         data->scene = new Scene();
     72        data->scene = new Scene(45.0f);
    7373    return data->scene;
    7474}
  • trunk/deushax/mapviewer.cpp

    r220 r222  
    7070{
    7171    if (!data->scene)
    72         data->scene = new Scene();
     72        data->scene = new Scene(45.0f);
    7373    return data->scene;
    7474}
Note: See TracChangeset for help on using the changeset viewer.