NOTE : From tag v5, this repo remove all templates, just provide a runable lua app and a tool for rename the app.
It bases on cocos2d-x v3 branch, but remove 3D and other features. It works on iOS, Android, macOSand Windows.
The major change:
- Only support iOS,OS X,Android and Windows.
Remove 3D features- Remove support for JS script
Remove deprecated classes and functionsRemove CameraRemove Physics integrationRemove C++ implementations of ComponentRemove C++ implementations of CocoStudio parser- Remove C++ implementations of CocosBuilder parser
Remove AssetsManager, AssetsManagerEXRemove support for WebP,S3TC,ATITCRemove FastTileMap, TileMapRemove Menu- ~~Improve module compile
cocos/base/ccConfigUser.h
~~ Improve curl library, only supportsocket
andhttp
protocolAdd CC_MINI_2D / CC_USE_FREETYPE / CC_ONLY_PNGAdd CC_USE_SPINEAdd CC_USE_AUDIO_ENGINEAdd CC_USE_NETWORK- Restore ui module (NOT depend CocoStudio)
- Restore
Focus
event (need byui
) - Restore
CocoStudio
module - Keep working with
CocosStudio
after 3.14.1 (cocos2d/cocos2d-x#17349 (comment))
-
pbc, maybe switch to google/upb, pure C99, also support Lua.
-
Node "destroy" event
display.newNode()
:onNodeEvent('destroy', function ( )
print('node destroy event.')
end)
-- or
cc.Node:create()
:registerScriptHandler(function ( state )
print('> Node event', state)
end)
-
setup env
$ # clone repo $ git clone https://github.com/c0i/cocos2dx-lite.git $ cd cocos2dx-lite $ ./setup.py $ source ~/.bash_profile
-
try with game project
$ open frameworks/runtime-src/proj.ios_mac/game.xcodeproj/ $ or $ cocos run -p mac # ios, android $ cocos run -p android --build-type ndk-build
Cocos2dx-lite is licensed under the MIT License. We welcome participation!
There are lots of better cocos2d-x forks: