aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-04-09 20:58:35 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-04-09 20:58:35 +0200
commit3bbf081c366fb30e8d6c7a806ecb0a4f380327ca (patch)
tree485cc1ef5e4ac4c7faba33cf1a89fe2a51b46a7a
parent74e45d9c93d0a841b485a557d35dc740657a8285 (diff)
NMS2 prototype: Add orig-explanation
-rw-r--r--web/nms.gathering.org/nms2/prototype/test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/nms.gathering.org/nms2/prototype/test.js b/web/nms.gathering.org/nms2/prototype/test.js
index 4fd3dbc..f7a2453 100644
--- a/web/nms.gathering.org/nms2/prototype/test.js
+++ b/web/nms.gathering.org/nms2/prototype/test.js
@@ -4,6 +4,14 @@ var fontSize = 20;
var fontFace = "Arial Black";
var nightMode = false;
var nightBlur = {};
+
+/* "Orig" refers to the oriinal coordinate system.
+ *
+ * The short version is: This is the extents of the map, regardless of
+ * resolution. So if you place something at 1920x1032, it'll be at the very
+ * corner. If you change "orig", you also have to re-calculate all switch
+ * placements etc.
+ */
var orig = {
width:1920,
height:1032