04 2013 档案

NSDate 使用
摘要:原文地址取当前时间的秒数NSTimeInterval time = [[NSDate date] timeIntervalSince1970];long long int date = (long long int)time;NSLog(@”date\n%d”, date); //1295322949//把秒数转化成yyyy-MM-dd hh:mm:ss格式NSDate *dd = [NSDate dateWithTimeIntervalSince1970:date];NSLog(@”d:%@”,dd); //2011-01-18 03:55:49 +0000//给一个时间秒数,取出对应的时间 阅读全文

posted @ 2013-04-30 10:40 几百人有爱 阅读(175) 评论(0) 推荐(0) 编辑

批处理生成动画文件(cocos2d,每组动画一个plist)
摘要:@echo offcolor 0adel /s /q /f tmp1.txt:: 角色动画dir /b /a:d 动画\角色动画 >> tmp1.txtrmdir /s /q "..\animations"mkdir ..\animationsmkdir ..\animations\charactersmkdir ..\animations\effectsfor /f %%i in (tmp1.txt) do (@echo 正在生成动画文件:%%i"tp\\TP.exe" --smart-update --format cocos2d --d 阅读全文

posted @ 2013-04-16 09:45 几百人有爱 阅读(407) 评论(0) 推荐(0) 编辑

批处理处理美术资源(cocos2d)
摘要:@echo offcolor 0armdir /s /q /f ..\fonts\atlasrmdir /s /q 2Xmkdir 2Xmkdir 2X\iconsmkdir 2X\icons\itemmkdir 2X\icons\spellmkdir 2X\fontsmkdir 2X\fonts\atlasdel /s /q /f "..\common\*.png"rmdir /s /q /f ..\iconsmkdir ..\iconsmkdir ..\icons\Itemmkdir ..\icons\spellrmdir /s /q /f ..\fonts\atlas 阅读全文

posted @ 2013-04-16 09:43 几百人有爱 阅读(221) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示