initial commit
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ie3b66d17f6f660c9b9a719210bd86f9f6a6a6964
This commit is contained in:
commit
b381e2efbd
29 changed files with 1633 additions and 0 deletions
10
src/utils.h
Normal file
10
src/utils.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
// Clamp value between min and max
|
||||
int clamp(int value, int min, int max);
|
||||
|
||||
// Check if coordinates are within map bounds
|
||||
int in_bounds(int x, int y, int width, int height);
|
||||
|
||||
#endif // UTILS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue