refactor to src folder

This commit is contained in:
ajuvercr 2020-04-18 11:41:07 +02:00
parent bebc10a81f
commit ddbf7a026c
16 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ if (typeof mergeInto !== 'undefined') mergeInto(LibraryManager.library, {
} }
}); });
import ("./index.js") import ("./src/index.js")
.then(e => { .then(e => {
h = e.handle; h = e.handle;
}) })

View file

@ -141,6 +141,7 @@ class GameInstance {
// Setup key handling // Setup key handling
document.addEventListener('keydown', this.handleKey.bind(this)); document.addEventListener('keydown', this.handleKey.bind(this));
// List of [(x, y, r)] for all planets
const planets = f32v(game.get_planets(), this.planet_count * 3); const planets = f32v(game.get_planets(), this.planet_count * 3);
for (let i = 0; i < this.planet_count; i++) { for (let i = 0; i < this.planet_count; i++) {