NewAnimation creates and returns a pointer to a new Animation object.
()
| 27 | |
| 28 | // NewAnimation creates and returns a pointer to a new Animation object. |
| 29 | func NewAnimation() *Animation { |
| 30 | |
| 31 | anim := new(Animation) |
| 32 | anim.speed = 1 |
| 33 | return anim |
| 34 | } |
| 35 | |
| 36 | // SetName sets the animation name. |
| 37 | func (anim *Animation) SetName(name string) { |