会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AaronBlog
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
22
下一页
2017年10月19日
ShareSDK演示
摘要: http://www.xuanyusong.com/archives/2620 http://blog.csdn.net/qq_15267341/article/details/51794045
阅读全文
posted @ 2017-10-19 15:20 AaronBlogs
阅读(216)
评论(0)
推荐(0)
2017年9月30日
黑客帝国数字矩阵特效做法
摘要: Shader源码: 原文链接:http://tieba.baidu.com/p/3610440892
阅读全文
posted @ 2017-09-30 18:37 AaronBlogs
阅读(3614)
评论(0)
推荐(0)
lua中实现倒计时
摘要: 今天在开发的时候,涉及到了使用倒计时来显示。 首先自己的思路是: 1、设计显示的Lable。 2、对传入的时间进行处理,转成字符串00:00:00。通过调用回调函数来控制一秒刷新一次。 转换算法: 3、设置回调函数,通过延时一秒和调用Label显示函数。 代码如下:
阅读全文
posted @ 2017-09-30 18:34 AaronBlogs
阅读(2748)
评论(0)
推荐(0)
Lua中用Split函数分割字符串
摘要: 用法: local list = Split("abc,123,345", ",") 然后list里面就是 abc123345 第二个参数可以是多个字符,但是不能是Lua正则表达式。例如. ,或者 %w 之类的。
阅读全文
posted @ 2017-09-30 18:30 AaronBlogs
阅读(37069)
评论(0)
推荐(0)
2017年9月13日
lua封装的位运算
摘要: 1.移位运算基础 [LUA-print] aaaaaaa: [LUA-print] 1 [LUA-print] 1 [LUA-print] 7855 [LUA-print] 15535 [LUA-print] 2 [LUA-print] 3 [LUA-print] 97 2.红点 因此都是先左移然后
阅读全文
posted @ 2017-09-13 17:49 AaronBlogs
阅读(4608)
评论(2)
推荐(0)
Unity3D热更新LuaFramework入门实战
摘要: http://blog.sina.com.cn/s/blog_6788cd880102w8qy.html http://www.manew.com/thread-91845-1-1.html http://blog.sina.com.cn/s/blog_6788cd880102wagh.html h
阅读全文
posted @ 2017-09-13 17:10 AaronBlogs
阅读(605)
评论(0)
推荐(0)
在lua环境中使用protobuf
摘要: 最近在cocos2dx的项目中,需要在LUA脚本层使用protobuf协议。官方已经推出了很多种语言的版本。但唯独LUA版本不全。于是开始研究protobuf在LUA下的实现,将完整的过程记录了下来,希望对其它人能有所帮助。 1、下载protoc-gen-lua 可以通过HG从服务器(hg clon
阅读全文
posted @ 2017-09-13 10:43 AaronBlogs
阅读(11819)
评论(0)
推荐(0)
2017年9月1日
lua 时间戳和时间互相转换
摘要: 1、时间戳转换成时间 local t = 1412753621000 function getTimeStamp(t) return os.date("%Y%m%d%H",t/1000) end print(getTimeStamp(t)) 2、得时间戳 os.time() -- 当前时间戳 os.
阅读全文
posted @ 2017-09-01 18:40 AaronBlogs
阅读(1181)
评论(0)
推荐(0)
Lua常用时间函数
摘要: 常用时间函数 table完整版本: {year=2005, month=11, day=6, hour=22,min=18,sec=30,isdst=false} 分别是:年 月 日 小时 分钟 秒 是否夏令时 字符串转时间值 输出结果: 201602021454371200 思路: 字符串转换成t
阅读全文
posted @ 2017-09-01 18:39 AaronBlogs
阅读(529)
评论(0)
推荐(0)
Lua获取系统时间和时间格式化方法及格式化参数
摘要: 一、系统当前时间对应的时间戳 复制代码代码如下: local ntime = os.timeprint(ntime) 二、格式化时间显示,参考下表常用于设置header等 复制代码代码如下: ngx.header["Last-Modified:"] = os.date("%a, %d %b %Y %
阅读全文
posted @ 2017-09-01 18:38 AaronBlogs
阅读(3549)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
22
下一页
公告