Giter VIP home page Giter VIP logo

Comments (3)

stubma avatar stubma commented on July 24, 2024

当你需要做一些动态效果的时候, 比如你想在richlabel里嵌入个动画进去, 用现在的tag去描述是比较麻烦的, 新加一个tag去描述也麻烦, 所以这个时候, 你可以在label里面放一个空的image, 先留出来位置. 然后创建一个sprite去播放这个动画, 把这个sprite放到image的位置上去, 看上去就好像label能支持内嵌动画一样. demo已经做了修改, grossini有个上下浮动的效果, 这种情况能知道image bound就非常有用了.

from cocos2dx-better.

zcgit avatar zcgit commented on July 24, 2024

好主意。
最近发现了一个ext,https://github.com/happykevins/cocos2dx-ext 他这个用的freetype实现的,不过貌似有点复杂,而且很久没维护,我看是renren做的?

from cocos2dx-better.

stubma avatar stubma commented on July 24, 2024

我看过这个, 优点是有跨更多平台的可能, 缺点是引入了freetype库, 不好维护. 这些古老的开源库的代码风格我都不喜欢, 有什么问题想改就太累了.

from cocos2dx-better.

Related Issues (20)

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.