Coder Social home page Coder Social logo

poker-client's Introduction

poker-client

It has been tested on Windows 7, Mac OS X with Unity3D 5.4.1f1

Please buy NGUI 3.10.0 and import NGUI3.10.0.unitypackage

http://linkcloud.github.io/

Run

Assets/Runtime/main.unity

Config

Assets/game_zzmj/Lua/game_cfg.lua

DEV_HOST = "127.0.0.1", --服务器地址
DEV_PORT = 9878, --服务器端口

商业版-安卓手机包测试

http://cdn.u3d.biucloud.com/com.biucloud.game.preview.apk

image

开发规范

1、下载客户端和服务器工程:

https://github.com/yongkangchen/poker-client

https://github.com/yongkangchen/poker-server

2、PC打包

勾选Development Build不会打包lua脚本,需要放到和Assets目录同级下运行,共享编辑器里的脚本

不勾选会打包lua脚本,可以发给测试

3、Unity里的main场景配置Main Folder

4、放置路径:

脚本:Assets/game_${GAME_NAME}/Lua/${GAME_NAME}

UI预设:Assets/game_${GAME_NAME}/Resources/prefabs/${GAME_NAME}

声音:Assets/game_${GAME_NAME}/Resources/sound/${GAME_NAME}

图集:Assets/game_${GAME_NAME}/Resources/altas/${GAME_NAME}

5、第一次启动untiy工程:提示是否要生成slua,选择不生成

6、不能写C#代码,因为不能热更新

7、lua禁止写全局变量

8、客户端的Assets/Runtime和Assets/Simple尽量不修改

9、UILable不要使用Unity默认的字体,要用NGUI的字体,否则会导致打包失败

10、请确保Assets/Runtime/Lua/data/msg.luaAssets/game_zzmj/Lua/game_msg.lua两个消息文件内的键值对不要重复,否则会报错:!!! duplicate val in game_msg 或者!!! duplicate key in game_msg

11、截屏微信分享函数:

ShareScreenShot(type, tbl)
type为nil或者0表示分享给好友,1表示分享到朋友圈

tbl是数组,每个元素是一个gameObject,会在截屏前将tbl里的所有gameObject隐藏掉,截屏后会将tbl所有的gameObject显示出来。

12、大厅内的授权开房功能配置: game_cfg.lua里添加:ACCREDIT = true, -- 授权开房

13、分享app标题设置:game_cfg.lua里添加:PRODUCT_NAME = "xx棋牌",

14、开房模式预设规范: 看例子:select.prefab预设里有zz的子物体,且UIToggle的group为100。那么《土豪房》UISavedOption的值为zz_opentype1, 《AA开房》zz_opentype2

15、房间内规则显示,通用是自动读取创建界面create.prefab的UISavedOption的值,然后把这个值恢复到房间里的规则界面里的。

16、创建界面拆分:

image

poker-client's People

Contributors

lpwb avatar oyclin avatar yongkangchen avatar yuan195820 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.