Releases: Chadowo/aniruby
Releases · Chadowo/aniruby
v0.2.2
v0.2.1
Fixed
- Important: in v0.2.0 one of the notable changes is that the instance variable
current_frame
was changed toposition
, 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 theAnimation#draw
andAnimation#draw_rot
methods, effectively rendering them useless. - Important: There was a error in
Animation#done?
too, where it'll returnfalse
always
independently of if the animation was finished, this was because I forgot to add areturn
in
the condition check for thetrue
. - Internally,
Animation#update
now resets the animation, instead ofAnimation#draw
orAnimation#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
This release brings mostly improvements and fixes, however there's not that much
new features yet.
Added
- aliased
Animation#width
andAnimation#height
tow
andh
respectively, the same was done
forFrame
.
Changed
Animation#get_current_frame
is nowAnimation#current_frame
as to not be redundant. Following that nowAnimation#current_frame
(The accessor for the instance variable) is renamed toAnimation#position
.
Fixed
- Previously methods like
Animation#done?
orAnimation#resume
didn't returnself
, so it wasn't possible to chaint them like thisnow they do so you can do that.# Example my_animation.pause.resume.duration(200)
v0.1.3
Fixed
- Undefined method error in animation, when using
size
onAniRuby::Frames
, now
useEnumerable#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).