arkeus / Axel

An open source, hardware accelerated 2D flash game library
http://axgl.org
MIT License
77 stars 25 forks source link

fix value name bug. #27

Open fanflash opened 11 years ago

fanflash commented 11 years ago

fix value name bug.

arkeus commented 11 years ago

I've been working on the font/text stuff in beta, so I'll see if these changes make sense, and if so, make them there.

The reason it's not in all caps is because it's technically not a constant. You could change the internal font pointer if you wanted to. I think ideally it'd be a constant though.

Leaving this open so I don't forget to look into it.

fanflash commented 11 years ago

In AxSprite added function addAnimationByFristFrame.

So sorry. I'm english is very bad.

fanflash commented 11 years ago

before: this.addAnimation("move",[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14, 15],9,true);

after: this.addAnimationByFristFrame("move", 0, 16, 9,true);