const protocol_id = "p_volumizer.1";

const SYMBOLS = ["x2", "x3", "x5", "x10", "bust"];

//symbols
const EMPTY = 0;
const X2 = 1;
const X3 = 2;
const X5 = 3;
const X10 = 4;
const BUST = 5;

//suits

const SUITS = ["wild", "club", "diamond", "spade", "heart"];

const WILD = 0;
const CLUB = 1;
const DIAMOND = 2;
const SPADE = 3;
const HEART = 4;

const SUITS_SMALL = ["wildS", "clubS", "diamondS", "spadeS", "heartS"];

const CARD_ANGLES = [0, 5, 10, 13];

const CARDS_LEFT = [[216, 1184], [214, 1054], [208, 926], [196, 802]];
        
const CARDS_RIGHT = [[864, 1184], [866, 1054], [874, 926], [886, 802]];

//reel constants
const REEL_STATE_STOPPED = 0;
const REEL_STATE_SPIN = 1;
const REEL_STATE_PLAY_WIN = 2;
const REEL_STATE_TOTAL_WIN = 3;

//reel manager constants

const RM_STATE_READY = 0;
const RM_STATE_SPIN = 1;
const RM_STATE_PLAY_WIN = 2;

//main scene constants


const GAME_STATE_NOT_INITIALIZED = 1;
const GAME_STATE_READY = 2;
const GAME_STATE_SPIN = 3;
const GAME_STATE_JACKPOT_WIN = 4;
const GAME_STATE_TOTAL_WIN = 5;
const GAME_STATE_PAYTABLE = 6;
const GAME_STATE_SERVER_RESPONSE_PENDING = 7;
const GAME_STATE_ERROR = 8;

//auto collect
const LOCAL_TXT_AUTO_COLLECT_TITLE = 2000;
const LOCAL_TXT_AUTO_COLLECT_TAP1 = 2001;
const LOCAL_TXT_AUTO_COLLECT_TAP2 = 2002;
const LOCAL_TXT_AUTO_COLLECT_SLIDE = 2003;

const LIMIT_MULTIPLIER = 10;

const FX_NONE = -1;
const FX_RUNNING_LIGHTS = 0;
const FX_FLASHING_LIGHTS = 1;
const FX_BUST_LIGHTS = 2;
const FX_LOWER_COLOR_CHANGE = 3;
const FX_UPPER_LEFT_COLOR_CHANGE = 4;
const FX_UPPER_RIGHT_COLOR_CHANGE = 5;
const FX_UPPER_FLASH_LIGHTS = 6;
