now drawing the background and also put assets in global scope
This commit is contained in:
16
main.lua
16
main.lua
@@ -3,6 +3,18 @@ DEBUG_MODE = true
|
||||
-- my own libs
|
||||
Chu = require 'game'
|
||||
|
||||
assets = require('deps.cargo').init({
|
||||
dir = 'data',
|
||||
loaders = {
|
||||
png = love.graphics.newImage
|
||||
}--[[,
|
||||
processors = {
|
||||
['images/'] = function(image, filename)
|
||||
image:setFilter('nearest', 'nearest')
|
||||
end
|
||||
}]]--
|
||||
})
|
||||
|
||||
local game = nil
|
||||
|
||||
function love.load()
|
||||
@@ -21,3 +33,7 @@ function love.draw()
|
||||
|
||||
if DEBUG_MODE then love.graphics.print('DEBUG MODE IS ENABLED', 850, 10) end
|
||||
end
|
||||
|
||||
setmetatable(_G, {
|
||||
__index = require('deps.cargo').init('/')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user