implemented the button thing (badly(im sorry)

This commit is contained in:
bizcochito
2022-01-20 15:18:40 +01:00
parent ed9873d633
commit 9e43b02620
4 changed files with 161 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ function love.load()
fps_draw = 0
fps_total = 0
UIElement = {}
love.graphics.setColor(1,1,1)
love.keyboard.setKeyRepeat(true)
love.graphics.setDefaultFilter("nearest") -- good pixel
@@ -64,13 +66,15 @@ function love.update(dt)
fps_count = fps_count + 1
current_dt = dt
--MenuStep
MenuStep(menuPage)
--keypressed
if Keybind:HasPressed(Keybind.menu.pause) then
if do_pause then
do_pause = false
else
pausepage = 1
menuPage = "pauseMenu"
MenuInit(menuPage)
do_pause = true
end
end