Problem with importing lua file
Posted: Thu Dec 03, 2015 6:18 am
My code in main.lua is:
The error is too large to show here, so I will make a .love of this.
Code: Select all
levelprocessor = require "levelprocessor.lua"
function love.load()
healthbar = love.graphics.newImage("ui/Untitled.png")
good_health = love.graphics.newQuad(0, 0, 100, 36, healthbar:getDimensions())
caution_health = love.graphics.newQuad(100,36,102, 36, healthbar:getDimensions())
warning_health = love.graphics.newQuad(102,36,204,36,healthbar:getDimensions())
grass_top_singular = love.graphics.newImage("blocks/grassdirt/grass.png")
end
function love.draw()
love.graphics.draw(grass_top_singular, 0,568,0,2,2);
levelprocessor.processFile("level1.lua")
end