Git Product home page Git Product logo

luaspaceshoot's Introduction

##说明 我是久光,接触Lua到现在近一年左右,在刚开始接触ulua时写了一些demo,给大家参考, 但是中间由于毕业和工作的原因一直没时间维护这些小demo,现在顺利毕业,也稍稍有些空余时间, 后面我会逐步维护几个关于uLua和ToLua的Demo

##demo链接 1.https://github.com/lixiang-share/LuaSpaceShoot.git
这是一个仿造Unity官方案例做的一个太空射击demo,是一个非常入门级的demo,没有任何基础的可以看看
2.https://github.com/lixiang-share/LuaTetrisDemo.git
简单粗暴版俄罗斯方块demo,纯lua实现的俄罗斯方块,不涉及复杂的框架,适合稍有基础的同学学习
3.https://github.com/lixiang-share/Match3Game.git
简单的三消demo,但是有一定的编码难度,也初步指出使用ulua的一种方式,建议有一定基础的同学学习
4.https://github.com/lixiang-share/RPG_JG.git
这是一个RPG项目,对于我来说可能是这一年工作的总结作品,主要有两部分Server和Client,Server用java做的服务器
Server设计较为简单,没有处理负载均衡,多线程异步模式,Client使用传统技术,Unity引擎,战斗模块用C#,
UI模块使用Lua完成,整体还是十分简陋,不过已经可以初步运行,如果感兴趣的人多了,后面会考虑把Server放在远端 项目还不完善,后期我会继续维护(项目所有资源和策划案使用泰斗破坏神的资源,所有编码均自己设计完成,感谢SiKi老师的资源

Lua版SpaceShoot__Demo简单说明 您好,我是久光,邮箱[email protected],首先必须说明的一点是本案例参考了Unity官方给的案例做的, 仅仅适用于刚入门的ulua的爱好者,高手请绕道……由于本人是刚刚进入Unity的世界,设计上很不成熟, 希望大家多体谅,如果有问题可以在QQ 群469941220 里提问

一:运行环境:windows7,unity4.6.5,,否则可能会报错,至于4.6.5以上的版本未进行测试如果出错请重新生成Wrap文件,

二:设计思路:这个Demo的总体框架是在俊哥的simpleframework的基础上的,删除了一些较为复杂的逻辑,比如网络、一些封装的管理器组件等,每个lua脚本都对应一个C#类,(这种设计并不合理,下次有机会再修改),我的所有C#脚本都放在了Assets / Scripts / SpaceShoot 目录下,然后在Assets/Scripts / Manager 下的东西也做了自己的修改,当然Demo中也对遵从俊哥的建议使用了pureMVC框架,当然对俊哥原有的逻辑也做了一些删减。对于lua脚本,也有些改变:我的lua脚本都放在了 Assets / Lua / SpaceShoot 中,,logic目录下增加了ObjManager lua脚本,对GameManager做了轻微的修改。Demo所有需要的资源都放在了Assets / Prefabs目录下

三:改变了一些simpleframeworkd的Editor更能,Game / Generate Assets Bundle 功能:首先需要选中(可以多选)需要生成assetsbundle的预设,然后点击该选项,就会自动将选中的预设打包生成assetsbundle到StreamingAssets目录下。 Game / Copy Lua Files : 会将Assets / Lua 下的所有文件拷贝到StreamingAssets目录下。程序在windows下运行的话会把StreamAssets下的文件解压到 c:/sightp目录,,程序中真正执行的lua脚本也在c盘对应目录下

四:运行说明!!!由于githup上删除了一些工程配信息,,所以需要手动做一些配置:使用Game / Generate Assets Bundle工具重新生成.assetbundle文件,,,,如果c盘存在sight文件夹,则先删除,,,然后生成使用ulua工具生成wrap文件,,,一定要按上述步骤,,否则可能无法运行!!!

最后再次声明:本人ulua初学者,代码也十分简陋,请大家所包含,,,,最后感学@俊哥和其他大神的技术支持!!!

luaspaceshoot's People

Stargazers

 avatar

Watchers

dingxiaowei avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.