From ed304ec3db325f6e500fd8454f383f0d6f2ab167 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 30 Sep 2019 19:56:07 -0400 Subject: Added tile heightmap stuff. --- README | 3 ++- clld.c | 66 +++++++++++++++++++++++++++++++++++++++++++------------ test | 3 ++- test-bitmask | 71 ++++++++++++++++++++++++++++++------------------------------ test-fp | 3 ++- test-tile | 6 +++++ 6 files changed, 99 insertions(+), 53 deletions(-) create mode 100644 test-tile diff --git a/README b/README index 7b4d5ab..4de8175 100644 --- a/README +++ b/README @@ -19,7 +19,7 @@ clld is a simple collision checker, that takes two 2D, or 3D points, tests the collision of the points, and outputs the results to stdout. It can do many different types of collision checks, including -tile heightmask, AABB, per pixel, and more. +tile heightmap, AABB, per pixel, and more. @@ -70,6 +70,7 @@ cursor position, and the floor position. The input format looks like this: + , [, ] , [, = tmp.w) ? tmp.w : newidth; - for (int i = 0; i = tmp.h) ? tmp.h : newheight; + for (unsigned int i = 0; i