|
@@ -10,6 +10,9 @@
|
|
|
-- TODO: Implementar reset dos padrões de draw
|
|
|
-- TODO: Implementar sprites básicos do personagem
|
|
|
-- TODO: Implementar sprites de inimigos
|
|
|
+-- TODO: Implementar nova origem de tiros para receber como parâmetro a posição de um objeto (jogador no caso)
|
|
|
+-- TODO: Refatorar o update do background para mudar a posição das "estrelas" quando elas atingirem o limite da tela
|
|
|
+
|
|
|
|
|
|
-- table piles that will be used on iteratons
|
|
|
local objectPile = {}
|
|
@@ -35,7 +38,6 @@ local points = 0
|
|
|
local enemy = require("enemy")
|
|
|
local enemyPile = {}
|
|
|
|
|
|
local downKeys = dofile("keys.lua")
|
|
|
|
|
|
-- background object
|
|
@@ -79,13 +81,14 @@ function love.load(args)
|
|
|
table.insert(enemyPile, enemy2)
|
|
|
|
|
|
-- background creaiton
|
|
|
- bg = background.new(800, 600, 32)
|
|
|
- bg2 = background.new(800, 600, 24, 4)
|
|
|
- bg3 = background.new(800, 600, 16, 2)
|
|
|
+ bg = background.new(32)
|
|
|
+ bg2 = background.new(24, 4)
|
|
|
+ bg3 = background.new(16, 2)
|
|
|
table.insert(bgPile, bg)
|
|
|
table.insert(bgPile, bg2)
|
|
|
table.insert(bgPile, bg3)
|
|
|
table.insert(objectPile, bgPile)
|
|
|
+
|
|
|
end
|
|
|
|
|
|
function love.update(dt)
|