Skip to content

Commit

Permalink
1.0.1 Hotfix
Browse files Browse the repository at this point in the history
- Enabled V-Sync to limit CPU usage
- Fixed a bug, where if the player started a new game when the game was in progress, the game would softlock
  • Loading branch information
GreffMASTER committed Nov 9, 2022
1 parent 3143c21 commit a816fd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function love.conf(t)
t.identity = "gmsweeper"
t.version = "11.3"
t.window.vsync = 0
t.window.vsync = true
t.window.title = "GMSweeper"
t.window.width = 280
t.window.height = 320
Expand Down
6 changes: 3 additions & 3 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ local sweepstyle = gmui.Style:new({ -- custom style for the grid buttons
bt_color = {0.6,0.6,0.6}
})

local perf_win = nil
-- Global variables
_Version = "1.0"
_Version = "1.0.1"
_GridW = 10
_GridH = 10
_Mines = 10
Expand Down Expand Up @@ -313,10 +312,11 @@ local function resetGame()
dangers = {}
gameover = false
youwin = false
started = false
paused = false
resetb.icon = faces[1]
tilegrid = love.graphics.newQuad(0, 0, 24*_GridW, 24*_GridH, 24, 24)
minesleft = _Mines
started = false
timer = 0
end

Expand Down

0 comments on commit a816fd5

Please sign in to comment.