Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个项目,我需要兑现 .json 文件。它的性能将依赖它。
有没有办法在 cocos2d 2.0 中缓存 .json 文件?
是的,将其保存在内存中(以适当的数据结构)或将其保存到文件中并按需加载。