博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cocos2d-x lua
阅读量:4287 次
发布时间:2019-05-27

本文共 651 字,大约阅读时间需要 2 分钟。

在windows 7下
1、在Classes目录下自定义c++类
2、在cocos2d-x-2.2\tools\tolua++文件夹中添加自定义类的.pkg文件
自定义类的.pkg文件的书写规则
    1) enum keeps the same
    2) remove CC_DLL for the class defines, pay attention to multi inherites
    3) remove inline keyword for declaration and implementation
    4) remove public protect and private
    5) remove the decalration of class member variable
    6) keep static keyword
    7) remove memeber functions that declared as private or protected
3、在cocos2d-x-2.2\tools\tolua++文件夹中解压tolua++.rar将tolua++.exe取出放在cocos2d-x-2.2\tools\tolua++目录下
4、将我们自定义类的.pkg文件注册到 cocos2d-x-2.2\tools\tolua++文件夹下的Cocos2d.pkg(打开该文件依葫芦画瓢)
5.cmd cd到cocos2d-x-2.2\tools\tolua++目录,执行build.bat

转载地址:http://vttgi.baihongyu.com/

你可能感兴趣的文章
Spring Boot实现分布式微服务开发实战系列 -- AOP切面实现及防SQL注入
查看>>
基于Zookeeper的Curator分布式锁实现
查看>>
来谈谈 Java 反射机制,动态代理是基于什么原理?
查看>>
JVM 内存模型
查看>>
SpringBoot Bean
查看>>
一起探索ThreadLock吧
查看>>
Redis 原理(一):线程IO模型
查看>>
iOS之---cocoaPods的使用详解------
查看>>
iOS之CALayer的使用和position和anchorPoint
查看>>
iOS 网络通信原理和socke通信原理/OSI七层模型
查看>>
iOS即时通信之XMPP框架的使用及原理简介
查看>>
PHP之Apache服务器搭建
查看>>
iOS webDav服务器的搭建
查看>>
iOS openfire服务器的使用
查看>>
iOS ------自动布局之Masonry的使用
查看>>
iOS. UICollectionViewController的使用详解,相册滚动偏移放大
查看>>
iOS之UITableViewController使用详解(一)tableview上移
查看>>
iOS之UIScrollView的使用详解
查看>>
MAC常用终端命令汇总
查看>>
iOS之tableView(五)的编辑删除插入操作和UIAlertController的使用
查看>>