Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

アニメーション設計変更 #21

Closed
wants to merge 1 commit into from
Closed

Conversation

iwag
Copy link
Contributor

@iwag iwag commented Dec 31, 2013

Entityがアニメーションするようにするためいろいろ変更。

  • Animationってクラス新設
    • スプライトを読んでアニメーションを作る
  • アニメーション作ったりセットしたりするのをEntityに
  • Entityは <actionName, animation> なマップを持つ
  • 将来的にはスプライトはjsonから読む
    • こういうjson
{
plist: "b.plist",
img: "b.png",
idle_top: ["b0_0.png", "b0_1.png", ... ],  # キーフレームを指定
...

@iwag
Copy link
Contributor Author

iwag commented Dec 31, 2013

まだ動かないのでマージしないでね。
イメージだけ

/**
* Jsonからアニメーションのマップを返す
*/
bq.Animation.createAnimations = function (filename) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

masterをマージしてbq.entity.Animationかな

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

はたしてentityなのだろうか

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに

@iwag iwag closed this Jan 1, 2014
@iwag
Copy link
Contributor Author

iwag commented Jan 1, 2014

goto #24

@karihei karihei deleted the feature/other-animation2 branch January 2, 2014 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants