Blob Blame History Raw
#ifndef TILE_H
#define TILE_H


#include "common.h"


#define TM_SIZE 1024


typedef struct {
  Vec tp;
  double ts, s;
  Framebuffer fb;
  Animation tex;
} Tile;

typedef struct TileMap {
  Framebuffer fb;
  Animation tex;
  int x, y0, y1, err;
  struct TileMap *next;
} TileMap;


Tile tileAdd(TileMap *tm, int ts, double s);
void tileClear(TileMap *tm);
void tileFree(TileMap *tm);


#endif