You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.8 KiB

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