Add zooming
This commit is contained in:
parent
56a09f98c5
commit
b02675f4fb
12 changed files with 156 additions and 29 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue