Skip to content

Releases: Chadowo/aniruby

v0.2.2

27 Dec 22:19
fef13ba
Compare
Choose a tag to compare

Added

  • Aliased Animation#reset to Animation#reset!.

Changed

  • Arguments retro and loop from Animation#new are now keyword arguments.
  • Renamed "position" attribute from Animation to "cursor".
  • Passing a negative value as duration to Animation#new will default to 0.1.

v0.2.1

07 Sep 21:50
67bd9c4
Compare
Choose a tag to compare

Fixed

  • Important: in v0.2.0 one of the notable changes is that the instance variable current_frame was changed to position, following that there was
    the need to change every use of @current_frame to @position, however
    since I wasn't thorough enough I forgot to do that in the Animation#draw and Animation#draw_rot
    methods, effectively rendering them useless.
  • Important: There was a error in Animation#done? too, where it'll return false always
    independently of if the animation was finished, this was because I forgot to add a return in
    the condition check for the true.
  • Internally, Animation#update now resets the animation, instead of Animation#draw
    or Animation#draw_rot (I know, that sounds counterintuitive). This (I think) fixes a precision problem when drawing the last frame
    of an animation, in the which it was drawn for less time than required.

v0.2.0

02 Sep 21:02
84d8de3
Compare
Choose a tag to compare

This release brings mostly improvements and fixes, however there's not that much
new features yet.

Added

  • aliased Animation#width and Animation#height to w and h respectively, the same was done
    for Frame.

Changed

  • Animation#get_current_frame is now Animation#current_frame as to not be redundant. Following that now Animation#current_frame(The accessor for the instance variable) is renamed to Animation#position.

Fixed

  • Previously methods like Animation#done? or Animation#resume didn't return self, so it wasn't possible to chaint them like this
    # Example
    my_animation.pause.resume.duration(200)
    now they do so you can do that.

v0.1.3

22 Aug 20:36
cc5d589
Compare
Choose a tag to compare

Fixed

  • Undefined method error in animation, when using size on AniRuby::Frames, now
    use Enumerable#count instead.

Changed

  • The way milliseconds are used as duration, before you'll have to use whole numbers
    (1000 is a second, 500 half a second and so on), now we can just use floats for that (1.0 as a second, 0.5 half a second and so on).

v0.1.2

21 Aug 01:05
677be8f
Compare
Choose a tag to compare

Due to some dumb oversights of mine, I published the gem as "AniRuby" and not "aniruby", rubygems is case-sensitive. Had to yank my two previous versions

Changed

  • Downcased the gem name in the gemspec

v0.1.1

21 Aug 00:44
3c51ea4
Compare
Choose a tag to compare

Added

  • Add .yardopts to included files

Fixed

  • Required ruby not being used correctly in gemspec

v0.1.0

21 Aug 00:29
1dfd125
Compare
Choose a tag to compare

Initial release