社区
Cocos2d-x
帖子详情
cocos2d-x lua之table
coco2dx_xiaozheng
2017-09-04 01:07:03
使用lua来写逻辑脚本语言,做游戏麻将类型开发,其中最重要的就是table(表),创建表达 方式就是构造表达式,形式就是:{},元素与元素之间使用逗号来隔开,并且可以在表当真去嵌套多个表的形式,这是个人入手lua学的table基本创建形式
...全文
596
3
打赏
收藏
cocos2d-x lua之table
使用lua来写逻辑脚本语言,做游戏麻将类型开发,其中最重要的就是table(表),创建表达 方式就是构造表达式,形式就是:{},元素与元素之间使用逗号来隔开,并且可以在表当真去嵌套多个表的形式,这是个人入手lua学的table基本创建形式
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
生命练习生123
2018-02-05
打赏
举报
回复
lua中数据结构只有表,但是在用时还是要注意,特别是循环时,for in pairs 和 ipairs区别和排空处理
coco2dx_xiaozheng
2017-12-03
打赏
举报
回复
是呀,各种调用
球场上的哈登
2017-11-29
打赏
举报
回复
lua基本上就是各种table的使用了,甚至回调也可以放到表里面。很方便
龙灵修-讲
Lua
的
cocos2d-x
进阶视频.rar
cocos2d-x
进阶教程1_1搭建和配置
Lua
开发环境.mp4
cocos2d-x
进阶教程1_2编写自己的
Lua
版本的HelloWorld.mp4
cocos2d-x
进阶教程1_3
Lua
语言的注释、变量、语句块.mp4
cocos2d-x
进阶教程1_4
Lua
中函数、条件判断语句.mp4
cocos2d-x
进阶教程1_5
Lua
中循环语句和逻辑运算关键字.mp4
cocos2d-x
进阶教程1_6
Lua
Table
使用1.mp4
cocos2d-x
进阶教程1_7
Lua
Table
使用2.mp4
cocos2d-x
进阶教程1_8
Lua
Table
使用3.mp4
cocos2d-x
进阶教程1_9
Lua
Table
读写数据文件.mp4
cocos2d-x
进阶教程1_10在
Lua
中实现串行化.mp4
Cocos2d-x
Lua
中如何创建一个”类“
Cocos2d-x
Lua
脚本 模拟面向对象语言 利用
table
结构创建一个类,并通过对象访问类中成员
Cocos2d-x
.by.Example.Beginners.Guide.2nd.Edition.1785288857
Title:
Cocos2d-x
by Example: Beginner’s Guide, 2nd Edition Author: Roger Engelbert Length: 250 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2015-04-30 ISBN-10: 1785288857 ISBN-13: 9781785288852 Unleash your inner creativity and learn how to build great cross-platform 2D games with the popular
Cocos2d-x
framework About This Book Build multi-device games, letting the framework do all the heavy lifting! Spruce up your games with easy-to-apply animations, particle effects, and physics simulation Quickly implement and test your own game play ideas, with an eye for optimization and portability Who This Book Is For If you are a game enthusiast who would like to develop and publish your own game ideas onto different app stores, this is the book for you. Some knowledge of C++ or Java is helpful but not necessary. In Detail Upgraded and updated, the powerful and popular open source framework
Cocos2d-x
is better than ever. Through step-by-step tutorials, you'll learn how to take complete advantage of the framework. You'll learn how to add animations and special effects, implement a physics engine, optimize your games, prepare a project for multiple devices, and develop game ideas from the test version to a finished project. Most importantly, this book provides you with the accumulated knowledge of thousands of game developers, all packed into one easy-to-use and proven framework that will save time and strenuous thinking!
Table
of Contents Chapter 1. Installing
Cocos2d-x
Chapter 2. You Plus C++ Plus
Cocos2d-x
Chapter 3. Your First Game – Air Hockey Chapter 4. Fun with Sprites – Sky Defense Chapter 5. On the Line – Rocket Through Chapter 6. Quick and Easy Sprite – Victorian Rush Hour Chapter 7. Adding the Looks – Victorian Rush Hour Chapter 8. Getting Physical – Box2D Chapter 9. On the Level – Eskimo Chapter 10. Introducing
Lua
!
Cocos2d-x
C++访问复杂
table
类型
C++访问复杂
table
类型,并将
table
中数据存放到CCDictionary中。
lua
文件为
lua
Table
={age = 3,name="Reventon",sex="男",skill={"
Lua
","c++","oc"},type={type1="master",type2="monster"},state={"happy","angry"}}
Lua
ToolKit:
Cocos2d-x
Lua
绑定用
Lua
编写的工具
##
lua
2xml.
lua
这个工具用来将xml文件导出成
table
表以储存在
lua
文件内,这样可以给数据的读取变得更快更方便。 使用这个工具时,xml文件内需要规定主键,写在primeKey字段内。主键可以有多个,彼此之间用"_"进行分隔。 目前不支持多层嵌套的xml。 ##h2pkg.
lua
这个工具用来进行
lua
binding的准备工作,即将头文件.h转成.pkg,以供to
lua
++进行binding。 在面对大量需要处理的.h文件时,手工转是件杀死眼睛累死手的差事。所以写了这个工具以提供自动化处理,当然由于判断条件不是非常完备,可能存在一些bug。 ##主页
Cocos2d-x
721
社区成员
674
社区内容
发帖
与我相关
我的任务
Cocos2d-x
Cocos2d-x相关内容讨论专区
复制链接
扫一扫
分享
社区描述
Cocos2d-x相关内容讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章