Giter Site home page Giter Site logo

fordream / spritebuilder-lua Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiangyuan/spritebuilder-lua

0.0 1.0 0.0 88.58 MB

spritebuilder runtime for cocos2dx-lua(v3quick)

License: MIT License

Makefile 0.04% C++ 0.13% Batchfile 0.02% Shell 0.05% Java 0.06% Objective-C 36.41% Objective-C++ 0.11% Metal 0.04% HTML 60.91% CSS 0.24% C 1.60% Lua 0.39%

spritebuilder-lua's Introduction

SpriteBuilder-lua

SpriteBuilder runtime for cocos2dx-lua(v3quick)

Why this project.

  • There's no SpriteBuilde runtime for cocos2dx-lua(v3quick).
  • Lua is fast enough to handle UI and simple animations.
  • Quick-UI(the Lua implemention of UI frameworks in v3quick) is as good as the C++ implemention in cocos2dx(c++).

About this implemention.

  • Expande the Quick-UI or add SpriteBuilder plugin if needed.
  • Convert *.ccb file to json, for json is easier to read than xml in Lua. In this project, I'll just use a cmdline tool called plutil.
  • Not All feature will be implemented in the first version.

How to Use.


 local loader = require("app.spritebuilder-lua.CCBLoader")
 local node, children = loader.loadCCB("ccb/battle_ui.json")  -- create the node, and the children reference
 self:addChild(node)  -- add to anywhere you want.
 self.children = children  -- control your vars to match your needs.

About the example.

  • The example is based on v3quick-3.3 version.

spritebuilder-lua's People

Contributors

tangyiyang avatar

Watchers

xiaosunabc 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.