Page 1 of 1

js api: are units in pixels or tiles?

Posted: 03 Mar 2012, 01:35
by aubergine
There's a bunch of objects and functions in the JS API that have x,y or x1,y1,x2,y2 properties/parameters. Are they all in tiles, or are some in pixels?

Re: js api: are units in pixels or tiles?

Posted: 03 Mar 2012, 21:29
by Per
They are all in tiles.

Re: js api: are units in pixels or tiles?

Posted: 03 Mar 2012, 22:40
by aubergine
Including droid/structure/feature objects?

If so, that's good as it keeps things nice and simple :)

Re: js api: are units in pixels or tiles?

Posted: 03 Mar 2012, 23:52
by Per
Everything should be in tile coordinates. (If we need more precision, we will be using floating point tile coordinates.)

Re: js api: are units in pixels or tiles?

Posted: 06 Mar 2012, 00:47
by milo christiansen
Yay! No more ToWorld()!