在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:cocos2d-console开源软件地址:https://gitee.com/SunLightJuly/cocos2d-console开源软件介绍:cocos2d-consoleCocos2d-console is a command line tool that lets you create, run, publish, debug, etc… your game. It is the swiss-army knife for cocos2d. ##Installcocos2d-console will be distributed with cocos2d-x 3.0 and up and will be automatically configured with it's install process. ##Example # starts a new project called "MyGame"$ cocos new MyGame -l cpp -p org.cocos2d.mygame$ cd MyGame# Deploy the project to android device$ cocos run -p android Devel InfoInternals
To get a list of all the registered plugins: $ cocos To run the "new" plugin: $ cocos new Adding a new plugin to the consoleYou have to edit # should be a subclass of CCPluginproject_deploy.CCPluginDeploy And now you have to create a file called import cocos# Plugins should be a sublass of CCPluginclass CCPluginDeploy(cocos.CCPlugin): # in default category @staticmethod def plugin_category(): return "" @staticmethod def plugin_name(): return "deploy" @staticmethod def brief_description(): return "Deploy the project to target." def run(self, argv, dependencies): print "plugin called!" print argv Plugins are divided by category, depending on it's function: project, engine, ... The plugins of Comands RequiredPlease see this issue |
请发表评论