Files
engine/include/maps.hpp
T

21 lines
487 B
C++

#ifndef MAPS_HPP
#define MAPS_HPP
#include "elements.hpp"
#include "globals.hpp"
#include <SFML/Graphics/RenderWindow.hpp>
#include <array>
struct Level {
char data[MAX_ROWS][MAX_COLS];
std::string name;
};
extern Level levels[];
extern const char map[MAX_ROWS][MAX_COLS];
void clear_map(std::array<std::array<Entity*, MAX_COLS>, MAX_ROWS>& wall_list);
void load_map(std::array<std::array<Entity*, MAX_COLS>, MAX_ROWS>& wall_list, const char map_data[MAX_ROWS][MAX_COLS]);
#endif