LEL can now do hit detection on squares.

This commit is contained in:
Zed A. Shaw 2025-02-15 13:43:41 -05:00
parent aa149b6574
commit 7f9e200abe
4 changed files with 22 additions and 1 deletions

View file

@ -2,6 +2,7 @@
#include <string>
#include <unordered_map>
#include <functional>
#include <optional>
namespace lel {
struct Cell {
@ -39,6 +40,7 @@ namespace lel {
void reset();
bool parse(std::string input);
void finalize();
std::optional<std::string> hit(int x, int y);
};
Cell center(int width, int height, Cell &parent);