|
@ -16,7 +16,7 @@ import { Resizer } from "./systems/Resizer.js"; |
|
|
import { createControls } from "./systems/controls.js"; |
|
|
import { createControls } from "./systems/controls.js"; |
|
|
import { createRenderer } from "./systems/renderer.js"; |
|
|
import { createRenderer } from "./systems/renderer.js"; |
|
|
|
|
|
|
|
|
const ANIMATION_DURATION_SECS = 20; |
|
|
const ANIMATION_DURATION_SECS = 10; |
|
|
const BASE32 = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; |
|
|
const BASE32 = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; |
|
|
const COLOR1 = "#dddddd"; |
|
|
const COLOR1 = "#dddddd"; |
|
|
const COLOR2 = "#0055aa"; |
|
|
const COLOR2 = "#0055aa"; |
|
@ -61,8 +61,9 @@ class World { |
|
|
// Terrain Instance
|
|
|
// Terrain Instance
|
|
|
const terrain = createTerrain({ |
|
|
const terrain = createTerrain({ |
|
|
color: COLOR1, |
|
|
color: COLOR1, |
|
|
height: PLATFORM_SIZE + PLATFORM_BORDER, |
|
|
height: PLATFORM_SIZE + PLATFORM_BORDER * 2, |
|
|
width: PLATFORM_SIZE + PLATFORM_BORDER + PLATFORM_EDGE_FOR_UNKNOWNS, |
|
|
width: |
|
|
|
|
|
PLATFORM_SIZE + PLATFORM_BORDER * 2 + PLATFORM_EDGE_FOR_UNKNOWNS * 2, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.loop.updatables.push(controls); |
|
|
this.loop.updatables.push(controls); |
|
|