
1.创建lua编译系统cocosLua.sublime-build
{ "cmd": ["python","D:/Lua_simulator/startLuaSimulator.py","$file"],"shell": true,} 2.创建 startLuaSimulator.py
# -*- Coding: utf-8 -*-# 使用utf8字符集import osimport systmppath =sys.argv[1]tmp = tmppath.replace('\','/')srcList=[]index=tmp.find('src')while index!=-1: srcList.append(tmp[:index]) index=tmp.find('src',index+1)rightPath=""for p in srcList: if os.path.exists(p+"src") and os.path.exists(p+"res"): rightPath = p breakif rightPath=="": print "no suitable path" sys.exit(1)#没有合适的路径,找到合适的路径后,就执行代码os.system('D:/Lua_simulator/luaTest.exe -workdir '+rightPath) 3.编译好的模拟器,融合一下就ok 总结 以上是内存溢出为你收集整理的sublime + cocos lua全部内容,希望文章能够帮你解决sublime + cocos lua所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)