now drawing the background and also put assets in global scope

This commit is contained in:
2021-05-09 17:23:09 +02:00
parent a15211e7c5
commit fdae384269
2 changed files with 18 additions and 1 deletions

View File

@@ -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('/')
})