<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[touchatoms的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/touchatoms</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; touchatoms]]></copyright><item><title><![CDATA[Unity Android平台发布及原理（IL2CPP)]]></title><link>https://blog.youkuaiyun.com/touchatoms/article/details/156691200</link><guid>https://blog.youkuaiyun.com/touchatoms/article/details/156691200</guid><author>touchatoms</author><pubDate>Tue, 13 Jan 2026 20:41:55 +0800</pubDate><description><![CDATA[/ Unity Android 应用的启动入口和 JNI 桥梁，负责连接 Android Java 层与 Unity C++ 运行时的初始化和通信。unityLibrary/src/main/Il2CppOutputProject/Source/il2cppOutput cpp文件变化如下。Unity 使用 IL2CPP 脚本后端时，将 C# 游戏代码转换为 C++ 并编译成的原生库，负责执行所有游戏逻辑的运行时环境。//包含从托管程序集转换的所生成的 C++ 代码，里面包含启动程序的C# 代码等等。]]></description><category></category></item><item><title><![CDATA[Unity C# 跨平台技术一览]]></title><link>https://blog.youkuaiyun.com/touchatoms/article/details/147036506</link><guid>https://blog.youkuaiyun.com/touchatoms/article/details/147036506</guid><author>touchatoms</author><pubDate>Mon, 07 Apr 2025 18:35:15 +0800</pubDate><description><![CDATA[从 ILRuntime 官网上的定义可知，ILRuntime 实现了 IL 解释执行虚拟机和自己的 IL 托管栈来模拟代码的执行，在 ILRuntime 解释执行期间，所有的对象都是用 StackObject 表示的，没有新类型的生成，所以不存在运行时编译的情况，由此可以实现热更新的动态加载。它能够访问更多的类库和函数，同时提供了更好的兼容性，尤其是在跨平台项目中。参考文档：https://ourpalm.github.io/ILRuntime/public/v1/guide/tutorial.html。]]></description><category></category></item><item><title><![CDATA[Cocos2d-x资源加密解密]]></title><link>https://blog.youkuaiyun.com/touchatoms/article/details/146369858</link><guid>https://blog.youkuaiyun.com/touchatoms/article/details/146369858</guid><author>touchatoms</author><pubDate>Wed, 19 Mar 2025 14:17:49 +0800</pubDate><description><![CDATA[目前市面的Cocos2d-X游戏，一般分为C++、Lua、JavaScript三种编程语言，目前我们使用的是Cocos2d-x-3.16 + lua 语言，把游戏发布到市场上，就需要准备好被破解的可能，所以在发布到市场之前要对自己的游戏包内的脚本文件和非脚本文件做加密操作。通过这篇文章你能了解到。]]></description><category></category></item><item><title><![CDATA[lua number & protobuf int32 int64 repeated issue: Value out of range]]></title><link>https://blog.youkuaiyun.com/touchatoms/article/details/130326567</link><guid>https://blog.youkuaiyun.com/touchatoms/article/details/130326567</guid><author>touchatoms</author><pubDate>Sun, 23 Apr 2023 17:29:06 +0800</pubDate><description><![CDATA[大家知道 LUA里面只有number 类型，那么number类型的范围是多少呢：[-math.pow(2, 1023) , math.pow(2, 1023)]


那么精确的整型表达又是多少呢：math.pow(2, 53)答案在这：http://lua-users.org/wiki/NumbersTutorial


Protobuf int 的类型有int32、int64

protobuf int32的取值范围是math.pow(2, 31) = 2147483648
protobuf int64的]]></description><category></category></item><item><title><![CDATA[COCOS2D-X LUA 热更新、资源加密及资源文件名混淆]]></title><link>https://blog.youkuaiyun.com/touchatoms/article/details/128543322</link><guid>https://blog.youkuaiyun.com/touchatoms/article/details/128543322</guid><author>touchatoms</author><pubDate>Fri, 13 Jan 2023 19:13:55 +0800</pubDate><description><![CDATA[COCOS2D-X LUA 热更新、资源加密及资源文件名混淆]]></description><category></category></item></channel></rss>