Develop #4
@@ -9,7 +9,7 @@ function game.load()
|
||||
game.window = { width = width , height = height }
|
||||
game.canvas = { x = width / 2, y= 0, width = canvas_width, height = canvas_height }
|
||||
game.level = 1
|
||||
game.end_level = 2
|
||||
game.end_level = 3
|
||||
|
||||
love.window.setMode(game.window.width, game.window.height)
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ local stage1 = {}
|
||||
local image
|
||||
|
||||
function stage1.load(game, camera)
|
||||
stage1.world = { w = 2560, h= 720}
|
||||
image = love.graphics.newImage('assets/sprites/background/fondo_fotomadre.jpg')
|
||||
stage1.world = { w = image:getWidth(), h= 720}
|
||||
game:setNewSizeWorld(stage1.world.w, stage1.world.h)
|
||||
image = love.graphics.newImage('assets/sprites/background/bg.jpg')
|
||||
arrows.load(game, stage1, camera)
|
||||
game.canvas.x = game.window.width
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ local stage2 = {}
|
||||
local image
|
||||
|
||||
function stage2.load(game, camera)
|
||||
image = love.graphics.newImage('assets/sprites/background/santabiblia.jpg')
|
||||
image = love.graphics.newImage('assets/sprites/background/fondo_tocadiscos.jpg')
|
||||
stage2.world = { w = image:getWidth(), h= 720}
|
||||
game:setNewSizeWorld(stage2.world.w, stage2.world.h)
|
||||
arrows.load(game, stage2, camera)
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
local anim8 = require 'assets/scripts/vendor/anim8'
|
||||
local tools = require 'assets/scripts/tools'
|
||||
local arrows = require 'assets/scripts/arrows'
|
||||
|
||||
local stage2 = {}
|
||||
local image
|
||||
|
||||
function stage2.load(game, camera)
|
||||
image = love.graphics.newImage('assets/sprites/background/fondo_tocadiscos.jpg')
|
||||
stage2.world = { w = image:getWidth(), h= 720}
|
||||
game:setNewSizeWorld(stage2.world.w, stage2.world.h)
|
||||
arrows.load(game, stage2, camera)
|
||||
game.canvas.x = game.window.width / 2
|
||||
end
|
||||
|
||||
function stage2.update(dt, game)
|
||||
arrows.update(dt)
|
||||
end
|
||||
|
||||
function stage2.draw()
|
||||
love.graphics.draw(image)
|
||||
arrows.draw()
|
||||
end
|
||||
|
||||
return stage2
|
||||
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 200 KiB |
|
After Width: | Height: | Size: 195 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 93 KiB |
@@ -11,7 +11,7 @@ function love.load()
|
||||
camera.load(game)
|
||||
stages.load(game, camera)
|
||||
stress.load(game, camera)
|
||||
--bells.load(game, camera)
|
||||
bells.load(game, camera)
|
||||
controls.load(game)
|
||||
end
|
||||
|
||||
@@ -22,7 +22,7 @@ function love.update(dt)
|
||||
camera.update(game)
|
||||
stages.update(dt, game, camera)
|
||||
stress.update(dt, game, camera)
|
||||
-- bells.update(dt, game, camera)
|
||||
bells.update(dt, game, camera)
|
||||
controls.update(dt, game, camera)
|
||||
end
|
||||
|
||||
@@ -32,7 +32,7 @@ function love.draw()
|
||||
function(l,t,w,h)
|
||||
stages.draw()
|
||||
stress.draw()
|
||||
-- bells.draw(game)
|
||||
bells.draw(game)
|
||||
end
|
||||
)
|
||||
controls.draw()
|
||||
|
||||