From e824d238db0eff40d1eb52e216944643c2043d4f Mon Sep 17 00:00:00 2001 From: Robert Bendun Date: Mon, 26 Apr 2021 22:40:31 +0200 Subject: [PATCH] Initial cost map with visualisation --- src/index.html | 4 +++- src/main.js | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 952dfb9..7276565 100644 --- a/src/index.html +++ b/src/index.html @@ -26,6 +26,7 @@ + @@ -53,8 +54,9 @@
- + +
diff --git a/src/main.js b/src/main.js index 2e33481..bb3d10e 100644 --- a/src/main.js +++ b/src/main.js @@ -3,11 +3,15 @@ window.addEventListener('DOMContentLoaded', () => document.fonts.ready.then(() = const gridCanvas = document.getElementById('canvas-grid'); const agentCanvas = document.getElementById('canvas-agent'); const productsCanvas = document.getElementById('canvas-products'); + const costCanvas = document.getElementById('canvas-costmap'); const floor = new Floor(floorCanvas); const grid = new Grid(gridCanvas); const agent = new Agent(agentCanvas); const products = new Products(productsCanvas); + const costMap = new CostMap(); + const costMapVisualisation = new CostMapVisualisation(costCanvas); + const fpsElement = document.getElementById('fps'); if (window.location.hash == '#debug') {