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