Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow moving around when game is paused

  • Loading branch information...
commit f29e621fb19256d46318ff878d852cc89c87ecb1 1 parent beebc02
@TomK32 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 main.lua
View
8 main.lua
@@ -19,9 +19,6 @@ function love.load()
end
function love.update(dt)
- if game_state.running == false then
- return
- end
gui_main:update(dt)
if game_state.focus == 'inspector' or game_state.focus == 'main' then
if love.keyboard.isDown('up', 'down','left', 'right', 'kp1', 'kp2', 'kp3', 'kp4', 'kp6', 'kp7', 'kp8', 'kp9') then
@@ -59,7 +56,10 @@ function love.update(dt)
dt_since_last_move = dt_since_last_move + dt
end
end
- end
+ end
+ if game_state.running == false then
+ return
+ end
game_controller:update()
end

0 comments on commit f29e621

Please sign in to comment.
Something went wrong with that request. Please try again.