Not related to your problem, but...
Code: Select all
local playerColors = {blue = 91, 192, 235; yellow = 253, 231, 76; green = 155, 197, 61; red = 195, 66, 63}
I don't think this does what you think it does. It is equivalent to this:
Code: Select all
local playerColors = {blue=91, [1]=192, [2]=235, yellow=253, [3]=231, [4]=76, green=155, [5]=197, [6]=61; red=195, [7]=66, [8]=63}
i.e. 'blue' gets the number 91, 'yellow' the number 253, 'green' the number 155, 'red' the number 195, and the elements with numeric indices 1, 2, 3, 4, 5, 6, 7 and 8 get the values 192, 235, 231, 76, 197, 61, 66, and 63 respectively.
You probably meant something like this:
Code: Select all
local playerColors = {blue = {91, 192, 235}; yellow = {253, 231, 76}; green = {155, 197, 61}; red = {195, 66, 63}}
because then you can do this:
Code: Select all
love.graphics.setColor(playerColors.blue)