lifeurl.com
域名年龄: 15年5个月11天HTTP/1.1 301 永久重定向 访问时间:2014年03月04日 13:26:17 缓存控制:max-age=600 过期时间:2014年03月04日 13:36:17 服务器:DNSPod URL V2.0 目标网址:http://lifeurl.com 文件大小:0 连接:关闭 HTTP/1.1 200 OK 服务器:nginx/1.2.4 访问时间:2014年03月04日 13:26:17 类型:text/html;charset=utf-8 Transfer-Encoding: chunked 连接:keep-alive 缓存控制:不缓存 其他指令:不缓存 过期时间:2014年03月04日 13:36:17 隐私:CP='CAO PSA OUR' Content-Encoding: gzip 网站编码:utf-8
沉心如水-Game&Life存档私信 我的腾讯微博我的新浪微博小游戏推荐AS3开源大全 wormux http://wormux.en.softonic.com 一块模仿百战天虫的游戏 Warsow Warsow 是一款卡通风格的Doom类射击游戏。地址:http://www.warsow.net/ yofrankie Yo Frankie! 是一块基于blender引擎的开源3d游戏。 地址:http://www.yofrankie.org/ mersenne twister伪随机算法 Mersenne Twister算法译为马特赛特旋转演算法,是伪随机数发生器之一,其主要作用是生成伪随机数。此算法是Makoto Matsumoto (松本)和Takuji Nishimura (西村)于1997年开发的,基于有限二进制字段上的矩阵线性再生。可以快速产生高质量的伪随机数,修正了古老随机数产生算法的很多缺陷。 Mersenne Twister这个名字来自周期长度通常取Mersenne质数这样一个事实。常见的有两个变种Mersenne Twister MT19937和Mersenne Twister MT19937-64。Mersenne Twister算法的原理:Mersenne... ios平台农场经营游戏hayday机制分析 cocos2d-x中的事件机制 哎呦,跟as3的一样。//发送事件 02 CCNotificationCenter::sharedNotificationCenter()->postNotification(CLICK_TEST_MSG, (CCObject*)data); 03 04 //监听事件 05 void GameManager::initListener() 06 { 07 CCNotificationCenter::sharedNotificationCenter()->addObserver(this, callfuncO_selector(GameManager::onClick... cocos2d-x集成lua 1 在cocos2d-x里开启luaCCLuaEngine* pEngine = CCLuaEngine::defaultEngine(); CCScriptEngineManager::sharedManager()->setScriptEngine(pEngine);2 在cocos2d-x里执行luapEngine->addSearchPath(); CCLuaEngine::defaultEngine()->executeScriptFile("hello.lua");3 在lua里调用cocos2d-x框架代码cocos2d-x已经把所有类使用tolua++做了绑定。在lua脚本里都可以直接调用。local visibleSize = CCDirector:sharedDirector():getVisibleSize();4 使用tolua++绑定自定义的c++类。安装环境及工具1) install lua. #: make macosx #:make install 2) install scons #:python setup.py install 3) install tolua++ #:scons all #:scons install 4) before install tolua++, find file config_posix.py, change LIBS = ['lua', 'lualib', 'm'] into LIBS = ['lua', 'dl', 'm']编写pkg文件1. Generating the lua<-->C bindings with tolua++ tolua++.exe -tCocos2d -o LuaCocos2d.cpp Cocos2d.pkg An ant script has been provided to generate the relevant files, to do this after modifying the .pkg files you should use the following command in this directory: ant This will generate the bindings file, patch it to compile successfully and move it to the standard destination. 2. Writing .pkg files 1) enum keeps the same 2) remove CC_DLL for the class defines, pay attention to multi inherites 3) remove inline keyword for declaration and implementation 4) remove public protect and private 5) remove the decalration of class member variable 6) keep static keyword 7) remove memeber functions that declared as private or protected使用tolua++,根据pkg文件生成cpp文件。mac: tolua++ -o XX.cpp XX.pkg新建demoluagame.h文件,并添加tolua_XX_open()声明,命名同XX.cpp里的*_open()方法。#ifndef Demo_LuaGame_h #define Demo_LuaGame_h extern "C" { #include "tolua++.h" #include "tolua_fix.h" } TOLUA_API int tolua_XX_open (lua_State* tolua_S); #endif绑定生成的cpp到cocos2d-x的lua Engine。lua_State * state = pEngine->getLuaState(); tolua_XX_open(state); 查看大图 查看大图 网易开源node.js 游戏服务器端引擎 项目地址:https://github.com/NetEase/pomelo Powered by diandian 下一页 →
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-06-10 22:20, Process in 0.0111 second.