[in progress] a 2d storytelling-oriented game engine, built on allegro 5
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gafu/src/set.h

23 lines
392 B

#ifndef GAFU_SET_H
#define GAFU_SET_H
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
struct set_tile {
bool walkable;
ALLEGRO_BITMAP *b;
};
struct set {
ALLEGRO_BITMAP *body;
unsigned tile_count;
struct set_tile *tiles;
};
struct set* set_load(const char *fname, unsigned tw, unsigned th, unsigned bw);
struct set_tile* set_at(struct set *s, unsigned n);
#endif