Why can i only work with the main.lua
Posted: Sun Aug 30, 2015 10:50 am
No matter I try , it doesn't work .
I create a main.lua file .
and then I create another lua file for example player.lua , and it crashes saying that file i put is not found !!
please help me this issue got over my patient
this is main.lua file .
this is the player.ua file
Please tell me if it's a bug or it's your fault !
I create a main.lua file .
and then I create another lua file for example player.lua , and it crashes saying that file i put is not found !!
please help me this issue got over my patient
this is main.lua file .
Code: Select all
require "player.lua"
function love.load()
end
function love.update(dt)
end
function love.draw()
end
Code: Select all
player.lua = {}
player.x = 500
player.y = 300
function player.draw()
end
function player.update(dt)
end