From 268791521c47e51ac47310147defdb65171d5f98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 1 Oct 2018 18:31:58 +0200 Subject: [PATCH] Coordinates: Origin on top left of ally playmat --- client/scripts/20-comp-Playmat.coffee | 2 +- client/scripts/30-scene-Battle.coffee | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/scripts/20-comp-Playmat.coffee b/client/scripts/20-comp-Playmat.coffee index fd6d0b1..6034d36 100644 --- a/client/scripts/20-comp-Playmat.coffee +++ b/client/scripts/20-comp-Playmat.coffee @@ -9,7 +9,7 @@ Crafty.c 'Playmat', init: -> @attr { x: 0 - y: CONF.playmat.h + y: 0 z: CONF.layer.playmats w: CONF.playmat.w h: CONF.playmat.h diff --git a/client/scripts/30-scene-Battle.coffee b/client/scripts/30-scene-Battle.coffee index 3641bae..c52c576 100644 --- a/client/scripts/30-scene-Battle.coffee +++ b/client/scripts/30-scene-Battle.coffee @@ -10,6 +10,11 @@ Crafty.defineScene "Battle", -> w: 1 * CONF.playmat.w h: 2 * CONF.playmat.h } + .origin 'middle left' + .attr { + ox: 0 + oy: 0 + } .origin 'center' )