Add pause and precision controls
This commit is contained in:
parent
2959c39da7
commit
f91febfd3c
3 changed files with 22 additions and 11 deletions
|
@ -58,11 +58,12 @@ export function changeView(view) {
|
|||
function tick() {
|
||||
events.tick();
|
||||
|
||||
if (state.view == 'game') {
|
||||
if (state.view == 'game' && !state.paused) {
|
||||
world.tick();
|
||||
control.tick();
|
||||
}
|
||||
|
||||
control.tick();
|
||||
|
||||
gui.tick();
|
||||
graphics.render();
|
||||
input.tick();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue