uh, a lot happened, i murdered physics code, redesigned tiles & levels, now i need to make another level editor. I'm sorry game. I'm sorry git.

This commit is contained in:
lustlion
2021-11-28 03:38:30 +01:00
parent 8607399d16
commit dd2debc0bd
30 changed files with 701 additions and 693 deletions

View File

@@ -34,6 +34,7 @@ function love.load()
table.insert(LoadedEntities,main_Player)
table.insert(LoadedEntities,Kupo:New(700,150))
table.insert(LoadedEntities,Kupo:New(800,150))
CreateLight(200,64,80,nil,5,{1,0,0})
main_Player.sprite = love.graphics.newImage("assets/characters/nancy/idle1.png")
end
@@ -85,7 +86,7 @@ function love.keypressed(key)
end
if key == "f2" then
main_Player.pos.x, main_Player.pos.y = 0,-0.1
main_Player.pos.x, main_Player.pos.y = -16,-0.1
end
if key == "f3" then
@@ -129,7 +130,7 @@ function love.draw()
local pcr, pcg, pcb, pca = love.graphics.getColor()
love.graphics.setCanvas(Canvas.Darkness)
DoDarkness()
SetDarkness()
DoLights()
DoBorder()
@@ -137,19 +138,24 @@ function love.draw()
love.graphics.setColor(1,1,1,1)
love.graphics.setCanvas()
love.graphics.scale(1,1)
--DrawDarkness()
DrawDarkness()
-- HUD
-- Scale control
textScale = 0.5
--debug
if debug then DebugUI() end
if debug_collision then DebugColisions() end
if debug_collision then
love.graphics.setCanvas(Canvas.Darkness)
SetDarkness()
love.graphics.setCanvas()
--DrawDarkness()
DebugColisions()
DebugEntities()
end
-- reset color
love.graphics.setColor(pcr,pcg,pcb,pca)
local pcr, pcg, pcb, pca = love.graphics.getColor()
if do_pause then PauseUI() end
love.graphics.setColor(pcr,pcg,pcb,pca)