Add zooming

This commit is contained in:
asraelite 2018-03-03 13:29:14 +00:00
parent 56a09f98c5
commit b02675f4fb
12 changed files with 156 additions and 29 deletions

View file

@ -1,5 +1,8 @@
import * as game from './index.mjs';
import * as graphics from '../graphics/index.mjs';
import * as world from '../world/index.mjs';
export function startGame() {
game.changeView('game');
graphics.perspective.focusPlayer();
}

View file

@ -18,7 +18,9 @@ export async function init() {
gui.init();
input.init();
//events.startGame();
events.startGame();
//tick(); return;
// Recursive `requestAnimationFrame` can cause problems with Parcel.
while(true) {