Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

how do i use the love errors module lua assist

function love.load()
  enums.gamestates.main = false
end

function love.update(dt)
  if enums.gamestates.main == true then
  --Some sort of code
  else
    error(errors.invalidGamestate..type(enums.gamestates.main))
  end

end
 
PREVIOUS NEXT
Tagged: #love #errors #module #lua #assist
ADD COMMENT
Topic
Name
9+1 =