local config = require("mj.luaScript.Common.2d.CommonMahjongConfig") local designSize = cc.size(1280,720) config.HANDCARD_VIEW = "mj_linshui.luaScript.Views.2d.HandCard_2d" config.MAHJONG_CARD = "mj_linshui.luaScript.Views.2d.Card_2d" config.GROUP_BAGANG = "mj_linshui.luaScript.Views.2d.GroupBaGang_2d" config.OUTCARD_VIEW = "mj_linshui.luaScript.Views.2d.OutCardView_2d" -- 花麻将多杠显示位置,对桌面组合牌有效 config.OpDuoGangFlagPos = { [1] = {x = 47, y = 25, scale = 1.0, }, [2] = {x = 9, y = 22, scale = 0.8, }, [3] = {x = 11, y = 40, scale = 1.0, }, [4] = {x = 11, y = 30, scale = 1.0, }, }; -- 只针对组合牌第四个麻将牌 config.OpDuoGangFlagRotationConfig = { [1] = {x = 0, y = 0, z = 90}, [2] = {x = 0, y = 0, z = 0}, [3] = {x = 0, y = 0, z = -90}, [4] = {x = 0, y = 0, z = 0}, } -- 手牌每个麻将子偏移量 -- HandCardOffset[viewId].x config.HandCardOffsetPos = { [1] = {x = 0, y = -32}, [2] = {x = -2, y = 0}, [3] = {x = 0, y = -32}, [4] = {x = -1, y = 0}, } -- 出牌区起始位置,每个玩家视角左上角第一颗麻将子的位置 w45,h66 config.OutCardStartPos = { [1] = {x = (designSize.width / 2 + 273+40*3)*g_radio_x, y = (designSize.height / 2 - 145)*g_radio_y}, [2] = {x = (designSize.width / 2 + 220)*g_radio_x, y = (designSize.height / 2 + 114+40*3)*g_radio_y}, [3] = {x = (designSize.width / 2 - 272-40*3)*g_radio_x, y = (designSize.height / 2 + 225)*g_radio_y}, [4] = {x = (designSize.width / 2 - 220)*g_radio_x, y = (designSize.height / 2 - 50-40*3)*g_radio_y}, } config.OutCardStartPos2 = { [2] = {x = (designSize.width / 2 + 460)*g_radio_x, y = (designSize.height / 2 + 104+40*3)*g_radio_y}, [4] = {x = (designSize.width / 2 - 464)*g_radio_x, y = (designSize.height / 2 - 38-40*3)*g_radio_y}, } return config