From 04d260ff363d83cde57056ab62e41a9882009343 Mon Sep 17 00:00:00 2001 From: Evan Hemsley <2342303+ehemsley@users.noreply.github.com> Date: Wed, 22 May 2019 14:46:09 -0700 Subject: [PATCH] whoooops --- content/concepts/world_builder.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/concepts/world_builder.md b/content/concepts/world_builder.md index dccfb45..851c30c 100644 --- a/content/concepts/world_builder.md +++ b/content/concepts/world_builder.md @@ -13,19 +13,19 @@ The WorldBuilder uses Engines and their Message read/emit information to determi Here is an example usage: ```ts +import { WorldBuilder } from "encompass-ecs"; +import { CanvasComponent } from "./components/canvas"; +import { PositionComponent } from "./components/position"; +import { VelocityComponent } from "./components/velocity"; +import { MotionEngine } from "./engines/motion"; +import { CanvasRenderer } from "./renderers/canvas"; + class Game { private World world; ... public load() { - import { WorldBuilder } from "encompass-ecs"; - import { CanvasComponent } from "./components/canvas"; - import { PositionComponent } from "./components/position"; - import { VelocityComponent } from "./components/velocity"; - import { MotionEngine } from "./engines/motion"; - import { CanvasRenderer } from "./renderers/canvas"; - const world_builder = new WorldBuilder(); world_builder.add_engine(MotionEngine);