rogged/libs/map/utils.h
NotAShelf 26aa295f82
build: move map & rng logic to their own libraries
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1802469f3baff4576f61accfb5a197d86a6a6964
2026-04-10 20:07:04 +03:00

10 lines
227 B
C

#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