Re: Organizing your project
Posted: Tue Jun 10, 2014 11:25 am
Yeah, for similar reasons I have a table named 'common' that has 'screen' which is a vector.
But it would be much easier to call:
Code: Select all
local common = require("common")
love.graphics.draw(sprite, common.screen.x - sprite:getWidth(), common.screen.y - sprite:getHeight())
Code: Select all
love.graphics.draw(sprite, SCREENX - sprite:getWidth(), SCREENY - sprite:getHeight())