js api: are units in pixels or tiles?
js api: are units in pixels or tiles?
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?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
Re: js api: are units in pixels or tiles?
They are all in tiles.
Re: js api: are units in pixels or tiles?
Including droid/structure/feature objects?
If so, that's good as it keeps things nice and simple
If so, that's good as it keeps things nice and simple
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
Re: js api: are units in pixels or tiles?
Everything should be in tile coordinates. (If we need more precision, we will be using floating point tile coordinates.)
- milo christiansen
- Regular
- Posts: 749
- Joined: 02 Jun 2009, 21:23
- Location: Perrinton Michigan
Re: js api: are units in pixels or tiles?
Yay! No more ToWorld()!
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
- Demigod Game Ganual