Changeset 222 for trunk/src/map.cpp


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

Add support for rotated views and stretched tiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/map.cpp

    r221 r222  
    1616#include <cstring>
    1717#include <cstdlib>
     18#include <cmath>
    1819#include <ctype.h>
    1920
     
    127128        {
    128129            /* This is a tileset image file. Associate it with firstgid. */
    129             data->tilers[data->ntilers] = Tiler::Register(str, 32, 32);
     130            data->tilers[data->ntilers] = Tiler::Register(str, 32, 32,
     131                                                          sqrtf(2));
    130132            data->ntilers++;
    131133            //fprintf(stderr, "new tiler %s\n", str);
Note: See TracChangeset for help on using the changeset viewer.