File indexing completed on 2024-03-24 04:06:36
0001 /* 0002 SPDX-FileCopyrightText: 2013 Denis Kuplyakov <dener.kup@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 /* TODO: make this two constant below accessible through c++ to use them 0008 everywhere instead of hardcoded 8 x 8 */ 0009 0010 /** 0011 * Number of columns on board 0012 */ 0013 var COLUMN_COUNT = 8; 0014 0015 /** 0016 * Number of rows on board 0017 */ 0018 var ROW_COUNT = 8; 0019 0020 /* 0021 TODO: this is theme specific constants below. It will be good to connect 0022 them with theme 0023 */ 0024 0025 /** 0026 * X-coordinate offset in percents of playable area from beginning of board's image 0027 */ 0028 var GRID_OFFSET_X_PERCENT = 0.1; 0029 /** 0030 * Y-coordinate offset in percents of playable area from beginning of board's image 0031 */ 0032 var GRID_OFFSET_Y_PERCENT = 0.1; 0033 /** 0034 * Playable area's width part of board's image's width 0035 */ 0036 var GRID_WIDTH_PERCENT = 0.8; 0037 /** 0038 * Playable area's height part of board's image's height 0039 */ 0040 var GRID_HEIGHT_PERCENT = 0.8; 0041 /** 0042 * Number of chip's animation framesCount 0043 */ 0044 var CHIP_ANIMATION_FRAMES_COUNT = 12