From bfd068410c75cdc732b8197fc44071731fcc69f7 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Sun, 29 Mar 2020 06:50:42 +0200 Subject: [PATCH] space planets better --- backend/static/script/mapbuilder.js | 4 ++-- backend/templates/map_partial.html.tera | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/static/script/mapbuilder.js b/backend/static/script/mapbuilder.js index 07c99d3..ab56860 100644 --- a/backend/static/script/mapbuilder.js +++ b/backend/static/script/mapbuilder.js @@ -37,8 +37,8 @@ const planet = { "name": parameters[i][j]["name"], "ship_count": parseInt(parameters[i][j]["shipCount"]), - "x": r_j, - "y": r_i + "x": r_j * 2.5, + "y": r_i * 2.5 }; if (parameters[i][j]["colour"] !== 0) { diff --git a/backend/templates/map_partial.html.tera b/backend/templates/map_partial.html.tera index 595f2c5..138c60a 100644 --- a/backend/templates/map_partial.html.tera +++ b/backend/templates/map_partial.html.tera @@ -1,7 +1,7 @@ {% for planet in planets -%} - + {# {{planet.name}} #} {% endfor -%}