From ed71f523bd44cfe8ee663635592074ce600c7ab7 Mon Sep 17 00:00:00 2001 From: Cmb <71194682+29cmb@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:48:21 -0400 Subject: [PATCH] Fix rgb issue --- .gitignore | 7 ++++++- modules/level.lua | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 600d2d3..241f14b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ -.vscode \ No newline at end of file +.vscode + +# Compiled game builds +*.love +*.exe +*.zip \ No newline at end of file diff --git a/modules/level.lua b/modules/level.lua index c464587..01ff04e 100644 --- a/modules/level.lua +++ b/modules/level.lua @@ -99,7 +99,7 @@ function level:draw() if type(platform) == "table" then if platform.type then if platform.type == "Platform" then - love.graphics.setColor(platform.color.R, platform.color.B, platform.color.G) + love.graphics.setColor(platform.color.R, platform.color.G, platform.color.B) love.graphics.rectangle("fill", platform.transform[1] - player.CameraData.CameraX, platform.transform[2] - player.CameraData.CameraY, platform.transform[3], platform.transform[4]) love.graphics.setColor(1, 1, 1) elseif platform.type == "Spike" then