首页 > Cocos2D-X > cocos2d-x 根据png序列图创建animation
2012
04-10

cocos2d-x 根据png序列图创建animation

猴子原创,欢迎转载。转载请注明: 转载自Cocos2D开发网–Cocos2Dev.com,谢谢!

原文地址: http://www.cocos2dev.com/?p=84

之前都是使用TP格式化swf来创建动画,今天遇到了个问题,我拿到的动画序列图是合成好的一张png。没有plist文件。悲催…

现在只好自己画区域创建动画。

先看看png序列图。我就随便拿一个来用用。(先说明哈,该图是我从一个android游戏里面抽出来的。无侵权之意。)

cocos2d-x 根据png序列图创建animation - 第1张  | Cocos2D开发网

代码很简单,循环里面只用到了序列图1到8,后面三张是另外一个动作的。

OK,就这样咯,看看咱的效果:

cocos2d-x 根据png序列图创建animation - 第2张  | Cocos2D开发网cocos2d-x 根据png序列图创建animation - 第3张  | Cocos2D开发网

最后编辑:
作者:Houzi
Write the code. Change the world.
捐 赠如果您觉得这篇文章有用处,请支持作者!鼓励作者写出更好更多的文章!

cocos2d-x 根据png序列图创建animation》有 46 条评论

  1. Pingback 引用通告: themidsummer.co.uk

  2. Pingback 引用通告: my company

  3. Pingback 引用通告: اسهم سعودية

  4. Pingback 引用通告: توصية اسهم

  5. Pingback 引用通告: Windows 7 Password Reset

  6. Pingback 引用通告: electrician melbourne

  7. Pingback 引用通告: people search

  8. Pingback 引用通告: view it now

  9. Pingback 引用通告: vedonlyönti

  10. Pingback 引用通告: yoga nidra youtube

  11. Pingback 引用通告: payday loans cleveland ohio

  12. Pingback 引用通告: home-meubelen

  13. Pingback 引用通告: premier league football

  14. Pingback 引用通告: fitness and health blog

  15. Pingback 引用通告: AMC LLC LinkedIn

  16. Pingback 引用通告: ACLS Online

  17. Pingback 引用通告: Visit

  18. Pingback 引用通告: jeux gratuit en ligne

  19. Pingback 引用通告: crowdfunding

  20. Pingback 引用通告: horse racing systems

  21. Pingback 引用通告: Loan for People With Poor Credit

  22. Pingback 引用通告: Loans For People With Poor Credit

  23. Pingback 引用通告: Poor Credit Loans

  24. Pingback 引用通告: bad credit loans

  25. Pingback 引用通告: guadagnare online

  26. Pingback 引用通告: Luxury Landscape Gardeners Guildford

  27. Pingback 引用通告: bad credit loan

  28. Pingback 引用通告: loan for bad credit

  29. Pingback 引用通告: how to make money fast

  30. Pingback 引用通告: bad credit loan

  31. Pingback 引用通告: I need Katy Tx air conditioner repair heating Call for air conditioning repair Sugar Land

  32. Pingback 引用通告: buy ambien legally online

  33. Pingback 引用通告: I need air conditioner repair Cypress Tx heater youtube.com/watch?v=Z0rQAm4ZL8E&feature=youtu.be

  34. Pingback 引用通告: Molly McGinness

  35. Pingback 引用通告: Top 10 Christmas toys 2013

  36. Pingback 引用通告: http://www.youtube.com/watch?v=xH_82uylO2w

  37. Pingback 引用通告: Molly McGinness Interior Design

  38. Pingback 引用通告: geschenkideen freundin forum

  39. Pingback 引用通告: SEO Company

  40. Pingback 引用通告: AIRPORT TRANSFERS AYLESBURY

  41. Pingback 引用通告: vegetarian society

  42. Pingback 引用通告: rifle cases

  43. Pingback 引用通告: cell phone jammers for sale

  44. 9494,我等不急了!!!!!!

    • Denver 说:

      Klinkt heel interessant en wij zouden graag meer weten want deze week ligt ons focus op business case. Zou je meer kunnen vertellen wat jullie business model is? Bijvoorbeeld hoe jullie jezelf nu financieren, wie zijn jullie klanten? Wat zijn jullie lange termijn dogetslllineen? Met welke andere partijen werken jullie?

  45. Jaclyn 说:

    If my problem was a Death Star, this article is a photon topeodr.

留下一个回复

你的email不会被公开。