Coordinates: Origin on top left of ally playmat
This commit is contained in:
parent
3bad9b9902
commit
268791521c
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
)
|
||||
|
||||
|
|
Reference in a new issue