Coordinates: Origin on top left of ally playmat

This commit is contained in:
Jörn-Michael Miehe 2018-10-01 18:31:58 +02:00
parent 3bad9b9902
commit 268791521c
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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'
)