Skip to content

Commit

Permalink
Fix rgb issue
Browse files Browse the repository at this point in the history
  • Loading branch information
29cmb committed Jul 29, 2024
1 parent 89abfa6 commit ed71f52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
.vscode
.vscode

# Compiled game builds
*.love
*.exe
*.zip
2 changes: 1 addition & 1 deletion modules/level.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed71f52

Please sign in to comment.