whoooops
							parent
							
								
									0de27d7817
								
							
						
					
					
						commit
						04d260ff36
					
				|  | @ -13,12 +13,6 @@ The WorldBuilder uses Engines and their Message read/emit information to determi | ||||||
| Here is an example usage: | Here is an example usage: | ||||||
| 
 | 
 | ||||||
| ```ts | ```ts | ||||||
| class Game { |  | ||||||
|     private World world; |  | ||||||
| 
 |  | ||||||
|     ... |  | ||||||
| 
 |  | ||||||
|     public load() { |  | ||||||
| import { WorldBuilder } from "encompass-ecs"; | import { WorldBuilder } from "encompass-ecs"; | ||||||
| import { CanvasComponent } from "./components/canvas"; | import { CanvasComponent } from "./components/canvas"; | ||||||
| import { PositionComponent } from "./components/position"; | import { PositionComponent } from "./components/position"; | ||||||
|  | @ -26,6 +20,12 @@ class Game { | ||||||
| import { MotionEngine } from "./engines/motion"; | import { MotionEngine } from "./engines/motion"; | ||||||
| import { CanvasRenderer } from "./renderers/canvas"; | import { CanvasRenderer } from "./renderers/canvas"; | ||||||
| 
 | 
 | ||||||
|  | class Game { | ||||||
|  |     private World world; | ||||||
|  | 
 | ||||||
|  |     ... | ||||||
|  | 
 | ||||||
|  |     public load() { | ||||||
|         const world_builder = new WorldBuilder(); |         const world_builder = new WorldBuilder(); | ||||||
| 
 | 
 | ||||||
|         world_builder.add_engine(MotionEngine); |         world_builder.add_engine(MotionEngine); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue