refactor to src folder
This commit is contained in:
parent
bebc10a81f
commit
ddbf7a026c
16 changed files with 2 additions and 1 deletions
2
frontend/www/bootstrap.js
vendored
2
frontend/www/bootstrap.js
vendored
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
|
@ -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++) {
|
Loading…
Reference in a new issue