added create_map and attempt to work

This commit is contained in:
DarthMooMancer
2025-11-01 01:36:40 -04:00
parent 72961ebf6d
commit 55f604710e
3 changed files with 105 additions and 87 deletions
+9 -1
View File
@@ -1,6 +1,7 @@
#ifndef MAPS_HPP
#define MAPS_HPP
#include <SFML/Graphics/RenderWindow.hpp>
#include "globals.hpp"
#include "elements.hpp"
@@ -10,6 +11,13 @@ extern char test_level_2[MAX_ROWS][MAX_COLS];
void clear_map(Entity* wall_list[MAX_ROWS][MAX_COLS]);
void load_map(Entity* wall_list[MAX_ROWS][MAX_COLS], const char map_data[MAX_ROWS][MAX_COLS]);
void merged_walls(Entity* wall_list[MAX_ROWS][MAX_COLS]);
// void create_map(sf::RenderWindow &window, sf::Vector2i &local_position, sf::Vector2i &start_mouse_pos, sf::Vector2i &end_mouse_pos, bool &dragging, bool &prev_dragging, Entity *wall_list[MAX_ROWS][MAX_COLS]);
std::array<std::array<char, MAX_COLS>, MAX_ROWS> create_map(sf::RenderWindow &window,
sf::Vector2i &local_position,
sf::Vector2i &start_mouse_pos,
sf::Vector2i &end_mouse_pos,
bool &dragging,
bool &prev_dragging,
Entity *wall_list[MAX_ROWS][MAX_COLS]);
#endif