Files
HexTrails/src/sprites.js
T

11 lines
461 B
JavaScript

// Source rectangles in untouched 1293x1216 PNG; shared by browser and Cocos.
export const TILE_FRAMES = [
{x:98, y:99, w:540, h:465, anchorX:.5, anchorY:.5},
{x:680, y:99, w:540, h:465, anchorX:.5, anchorY:.5},
{x:98, y:653, w:540, h:465, anchorX:.5, anchorY:.5},
{x:680, y:653, w:540, h:465, anchorX:.5, anchorY:.5},
];
export const TILE_ATLAS='assets/tiles-matte-clean-v8.png';
export const TILE_RADIUS=.985;
export const TILE_ASPECT=Math.sqrt(3)/2;