摘要
利用单例类的方法对数据进行存取,改变了原来会出现脏数据的状况,可以实现任何场景下读写的数据实时正确,用继承引擎固有的类产生的新类创建动作而后进行碰撞检测,改变了原来精灵不受控制的飞出界面的状况,用这种方法可以解决很多难解的问题。同时给出了内存优化原则。
It can realize to make the data read and write correctly at real-time by using singleton class to access the data and change the original situation that can appear dirty data. It creates an action and then carry on collision detection by using a class that inherits the engine and changes the situation that the sprite flies freely out of interface. It can also solve many difficult problems. At the same time, the principle of memory optimization is given out.
出处
《三明学院学报》
2015年第6期26-31,共6页
Journal of Sanming University
基金
福建省教育通科技项目(JA13295)
三明市科技项目(2013-5-2)
关键词
单例类
脏数据
碰撞检测
内存优化
singleton class
dirty data
collision detection
memory optimization