|
@ -8,7 +8,7 @@ import { AppString } from "@/constants/app"; |
|
|
import { createCamera } from "./components/camera.js"; |
|
|
import { createCamera } from "./components/camera.js"; |
|
|
import { createLights } from "./components/lights.js"; |
|
|
import { createLights } from "./components/lights.js"; |
|
|
import { createScene } from "./components/scene.js"; |
|
|
import { createScene } from "./components/scene.js"; |
|
|
import { createCube, createTerrain } from "./components/objects/terrain.js"; |
|
|
import { createTerrain } from "./components/objects/terrain.js"; |
|
|
import { Loop } from "./systems/Loop.js"; |
|
|
import { Loop } from "./systems/Loop.js"; |
|
|
import { Resizer } from "./systems/Resizer.js"; |
|
|
import { Resizer } from "./systems/Resizer.js"; |
|
|
import { createControls } from "./systems/controls.js"; |
|
|
import { createControls } from "./systems/controls.js"; |
|
@ -65,11 +65,6 @@ class World { |
|
|
|
|
|
|
|
|
this.scene.add(light, terrain); |
|
|
this.scene.add(light, terrain); |
|
|
|
|
|
|
|
|
const cube = createCube(-10, 5, 0, 1, 1, 1); |
|
|
|
|
|
this.loop.updatables.push(cube); |
|
|
|
|
|
this.scene.add(cube); |
|
|
|
|
|
|
|
|
|
|
|
new TWEEN.Tween(cube.position).to({ x: 10 }, 5000).start(); |
|
|
|
|
|
this.loadClaims(); |
|
|
this.loadClaims(); |
|
|
|
|
|
|
|
|
requestAnimationFrame(this.update); |
|
|
requestAnimationFrame(this.update); |
|
|