Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A radical fork of Cocos2d-x-4.0)
Go to file
YuLei Liao 44b5e55876 * add lua_socket module 2011-11-23 12:24:14 +08:00
Box2D issue #223: merge bada branch and fix some error 2011-11-18 18:45:05 +08:00
CocosDenshion issue #223: merge bada branch and fix some error 2011-11-18 18:45:05 +08:00
HelloLua Merge pull request #571 from jbyu/master 2011-11-17 18:53:14 -08:00
HelloWorld synchrolize to master 2011-11-18 18:53:53 +08:00
chipmunk issue #223: merge bada branch and fix some error 2011-11-18 18:45:05 +08:00
cocos2dx * ccConfig: add LUA_ENGINE macro, turn on Lua support when LUA_ENGINE defined 2011-11-23 00:58:31 +08:00
doxygen add CC_PROPERTY_READONLY_PASS_BY_REF & CC_PROPERTY_PASS_BY_REF marco into preprocessor of doxygen configs. 2011-10-28 23:25:17 +08:00
licenses Create a license folder, add license file of CocosDenshion, FontLabel, iconv, libjpeg, libxml2, and zlib. I apologize to authors of these libraries for my laziness. 2011-08-21 21:05:25 +08:00
lua * add lua_socket module 2011-11-23 12:24:14 +08:00
template * merge cocos2d-1.0.1-x-0.9.2-luafix to master 2011-11-21 16:38:00 +08:00
tests synchrolize to master 2011-11-18 18:53:53 +08:00
tools * merge cocos2d-1.0.1-x-0.9.2-luafix to master 2011-11-21 16:38:00 +08:00
.gitignore Merge branch 'master' into bada 2011-10-21 09:28:29 +08:00
AUTHORS Update AUTHORS 2011-11-01 13:43:52 +02:00
CHANGELOG update ChangeLog & Authors for v0.9.2 2011-10-20 17:49:43 +08:00
README.mdown * update README 2011-11-21 21:45:14 +08:00
build-linux.sh * format some files 2011-11-18 20:35:35 +08:00
build-win32.bat parallel build 2011-07-28 21:03:30 +03:00
build-wophone.sh [wophone]fixed #386,Resolve the compile conflict on wophone sdk.Modify the makefiles for wophone. 2011-03-10 14:24:13 +08:00
cocos2d-win32.vc2008.sln Merge branch 'master' of https://github.com/jbyu/cocos2d-x 2011-11-15 14:00:52 +08:00
cocos2d-win32.vc2010.sln Merge branch 'master' of https://github.com/jbyu/cocos2d-x 2011-11-15 14:00:52 +08:00
cocos2d-wophone.sln [wophone]fixed #377,Replace the word "uphone" with "wophone". 2011-03-09 17:28:35 +08:00
create-android-project.bat remove setResourcePath method 2011-11-07 14:19:46 +08:00
create-android-project.sh * format some files 2011-11-18 20:35:35 +08:00
create-bada-project.bat modify project configure 2011-10-25 14:12:42 +08:00
create-linux-android-project.sh * format some files 2011-11-18 20:35:35 +08:00
install-templates-msvc.bat Seprate wizard install script from build-win32.bat to install-templates-msvc.bat 2011-03-15 15:59:22 +08:00
install-templates-xcode.sh * format some files 2011-11-18 20:35:35 +08:00

README.mdown

cocos2d-x multiplatform

cocos2d-x is a multi-platform 2D game engine in C++, based on cocos2d-iphone and licensed under MIT. Now this engine has been ported to WOPhone, iOS 4.1, Android 2.1 and higher, WindowsXP & Windows7.

Multi Platform

  • cocos2d-iphone-cpp: tested on iPhone 3.2, 4.1 & 4.2 SDK
  • cocos2d-android-ndk: based on ndk-r4(crystax.net version) & ndk-r5, tested on Android 2.1, 2.2, 2.3 emulator, HTC G2, G3, G6, G7 device
  • cocos2d-wophone: well tested on WOPhone of ChinaUnicom, both emulator & device.
  • cocos2d-win32: well tested on WindowsXP & Windows7. It depends on PowerVR OpenGL ES 1.1 libraries for win32 system

Document

Contact us

Lua Support FIX Readme

  • CCScheduler support local function
  • Support autorelease C++ object
  • When C++ object deletd set Lua object userdata to nil
  • Add CCNode:setPosition(x, y), CCNode::getPosition(), huge performance boost
  • Remove needless class and functions from tolua++ .pkg files, improved performance

How to use:

local scheduler = CCScheduler:sharedScheduler()

local handle    -- save script callback handle

local frameCount = 0
local function onEnterFrame(dt)
    print("onEnterFrame:", frameCount)
    frameCount = frameCount + 1
    if frameCount >= 60 then
        -- remove script callback
        scheduler:unscheduleScriptFunc(handle)
    end
end

handle = scheduler:scheduleScriptFunc(onEnterFrame, 1.0 / 60, false)

TODO:

  • When C++ object deleted, remove Lua object userdata
  • CCMenuItem support script function