Coder Social home page Coder Social logo

loyalwind / cocos2dx-lite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from namkazt/cocos2dx-lite

0.0 0.0 0.0 390.81 MB

Cocos2d-x with 2D, just 2D, productivity boost for games

CMake 1.00% Shell 0.01% Python 1.36% C++ 78.18% Objective-C 2.48% C 7.70% Makefile 0.18% Objective-C++ 2.54% Java 2.06% GLSL 0.23% Lua 4.20% Csound Document 0.06% PureBasic 0.01%

cocos2dx-lite's Introduction

cocos2dx-lite

δΈ­ζ–‡

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 functions
  • Remove Camera
  • Remove Physics integration
  • Remove C++ implementations of Component
  • Remove C++ implementations of CocoStudio parser
  • Remove C++ implementations of CocosBuilder parser
  • Remove AssetsManager, AssetsManagerEX
  • Remove support for WebP,S3TC,ATITC
  • Remove FastTileMap, TileMap
  • Remove Menu
  • Improve module compile cocos/base/ccConfigUser.h
  • Improve curl library, only support socket and http protocol
  • Add CC_MINI_2D / CC_USE_FREETYPE / CC_ONLY_PNG
  • Add CC_USE_SPINE
  • Add CC_USE_AUDIO_ENGINE
  • Add CC_USE_NETWORK
  • Restore ui module (NOT depend CocoStudio)
  • Restore Focus event (need by ui)
  • Restore CocoStudio module
  • Keep working with CocosStudio after 3.14.1 (cocos2d/cocos2d-x#17349 (comment))

Lua

  1. lua 5.1.x as default, not LuaJIT

  2. lua-cjson

  3. luafilesystem Version 1.7.0 [15/Sep/2017]

  4. lpeg

  5. lpack

  6. sproto

  7. luasocket

  8. lsocket 1.4.1

  9. pbc, maybe switch to google/upb, pure C99, also support Lua.

  10. LuaBitOp 1.0.2

  11. 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)

How to start

  1. setup env

    $ # clone repo
    $ git clone https://github.com/c0i/cocos2dx-lite.git
    $ cd cocos2dx-lite
    $ ./setup.py
    $ source ~/.bash_profile
    
  2. try with player project

    $ open player/proj.ios_mac/player.xcodeproj/
    $ or
    $ cocos run -p mac # ios, android
    $ cocos run -p android --build-type ndk-build
    

Bugs

  1. ANR with Android 7.x

Contributing to the Project

Cocos2dx-lite is licensed under the MIT License. We welcome participation!

Others

There are lots of better cocos2d-x forks:

cocos2dx-lite's People

Contributors

1scar1 avatar 9b9387 avatar cezheng avatar charlesstlaurent avatar chgowolf avatar filipe-lemos avatar halx99 avatar joshbodily avatar minggo avatar mogemimi avatar mrcapone avatar mtak- avatar newnon avatar njh0602 avatar pandamicro avatar perminovvs avatar ricardoquesada avatar rubonnek avatar sai628 avatar saxondruce avatar shulepov avatar stevekchiu avatar stevetranby avatar tallen11 avatar tankorsmash avatar thecodez avatar timothyzhang avatar wenhailin avatar xpol avatar zilongshanren avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.