now drawing the background and also put assets in global scope
This commit is contained in:
3
game.lua
3
game.lua
@@ -2,7 +2,6 @@
|
||||
-- The main game screen of Chuchu
|
||||
Boipus = require('deps.boipushy')
|
||||
Physics = require('deps.physics')
|
||||
assets = require('deps.cargo').init('data')
|
||||
|
||||
-- my own libs
|
||||
crates = require('crate')
|
||||
@@ -116,6 +115,8 @@ function Chu:update(dt)
|
||||
end
|
||||
|
||||
function Chu:draw()
|
||||
love.graphics.setColor(255, 255, 255, 1)
|
||||
love.graphics.draw(assets.sprites.level.background, self.x, self.y)
|
||||
world:draw()
|
||||
|
||||
if self.debug then
|
||||
|
||||
Reference in New Issue
Block a user