Newer
Older
PixelPaintWar / apps / client / src / scenes / game / input / joystick / common / joystick.constants.ts
/**
 * joystick.constants
 * ジョイスティック入力に関する定数をまとめる
 * 共有する半径の既定値などを定義する
 */

/** UI側と共有する最大半径の既定値 */
export const MAX_DIST = 60;

/** ジョイスティックベースの背景色 */
export const JOYSTICK_BASE_BG_COLOR = 'rgba(255, 255, 255, 0.1)';

/** ジョイスティックベースの枠線色 */
export const JOYSTICK_BASE_BORDER_COLOR = 'rgba(255, 255, 255, 0.3)';

/** ジョイスティックベースの枠線太さ */
export const JOYSTICK_BASE_BORDER_WIDTH = 2;

/** ジョイスティックノブのサイズ */
export const JOYSTICK_KNOB_SIZE = 40;

/** ジョイスティックノブの背景色 */
export const JOYSTICK_KNOB_BG_COLOR = 'rgba(255, 255, 255, 0.8)';

/** ジョイスティックノブの影 */
export const JOYSTICK_KNOB_SHADOW = '0 0 10px rgba(0,0,0,0.5)';