sublime + cocos lua
发布时间:2020-12-14 17:20:20 所属栏目:百科 来源:网络整理
导读: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 = tmpp
1.创建lua编译系统cocosLua.sublime-build { "cmd": ["python","D:/Lua_simulator/startLuaSimulator.py","$file"],"shell": true,} 2.创建 startLuaSimulator.py # -*- coding: utf-8 -*- # 使用utf8字符集 import os import sys tmppath =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 break if rightPath=="": print "no suitable path" sys.exit(1) #没有合适的路径,找到合适的路径后,就执行代码 os.system('D:/Lua_simulator/luaTest.exe -workdir '+rightPath)3.编译好的模拟器,融合一下就ok (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Ionic框架支持Vagrant镜像方式建立虚拟开发环境了
- c# – String.Intern有值吗?
- MT n91 Request for Payment of Charges, Interest and Oth
- ruby-on-rails – Rails 3.2.11编码问题,因为它现在将单引号
- ruby-on-rails – 列出目录中具有不同扩展名的文件
- ruby – 为什么在生产中使用Net :: HTTP的set_debug_output
- cocos2d-js 的project.json
- 正则表达式 \w \s \d \b
- Create-react-app+Antd+Less配置
- 未能加载文件或程序集“System.Data.SQLite, Version=1.0.6