summaryrefslogtreecommitdiff
path: root/frontend/2d/_collisions/rectangle_line
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-04-26 20:51:09 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-04-26 20:51:09 -0400
commita32157049d860c4c9c6ffb0df6c3cdbf53e4ef1d (patch)
treefcdf2a06b07ef143f6615f71a6e26f3a1587b80d /frontend/2d/_collisions/rectangle_line
parentcdf770d6950befd25779a18ea3972deeb9f143bb (diff)
Getting started on rectangle collisions
Diffstat (limited to 'frontend/2d/_collisions/rectangle_line')
-rwxr-xr-xfrontend/2d/_collisions/rectangle_line/dist/output.wasmbin50544 -> 50694 bytes
-rw-r--r--frontend/2d/_collisions/rectangle_line/main.cpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/frontend/2d/_collisions/rectangle_line/dist/output.wasm b/frontend/2d/_collisions/rectangle_line/dist/output.wasm
index 41e549e..dd44607 100755
--- a/frontend/2d/_collisions/rectangle_line/dist/output.wasm
+++ b/frontend/2d/_collisions/rectangle_line/dist/output.wasm
Binary files differ
diff --git a/frontend/2d/_collisions/rectangle_line/main.cpp b/frontend/2d/_collisions/rectangle_line/main.cpp
index 39cb079..9ccbc7e 100644
--- a/frontend/2d/_collisions/rectangle_line/main.cpp
+++ b/frontend/2d/_collisions/rectangle_line/main.cpp
@@ -67,7 +67,7 @@ struct Rectangle {
float32 height = 0.f;
void load(OrthographicRenderer* renderer, Vector4 inColor, float32 inWidth, float32 inHeight) {
- color = inColor;
+ color = inColor.toNormalizedColor();
width = inWidth;;
height = inHeight;