Skip to content
Snippets Groups Projects
map.h 443 B
/*
// Created by Tiny on 2/16/2021.
*/

#ifndef INSAGAME_MAP_H
#define INSAGAME_MAP_H

typedef struct {
	char *path; //path of image bmp of map
	int width;
	int height;
	int **functional; //2D functional matrix
} MAP;

int initmap(MAP *map,char *path); //allocate the map's name and call the maptomatrix
int **maptomatrix(MAP *map); //get matrix'length and width => create a functional matrix from the bmp matrix




#endif /*INSAGAME_MAP_H*/