Font largeFont(&largeFontSprite, 0, -2);
battleRes.titleFont = &largeFont;
- battleRes.numberAnimationPrototype = ComplexAnimation(0, framerate);
- battleRes.numberAnimationPrototype.AddFrame(0, 0);
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -26));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -42));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -48));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -42));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -26));
- battleRes.numberAnimationPrototype.AddFrame(0, 0);
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -12));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -20));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -24));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -20));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -12));
- battleRes.numberAnimationPrototype.AddFrame(0, 0);
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -6));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -10));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -12));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -10));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -6));
- battleRes.numberAnimationPrototype.AddFrames(0, 0, Vector<int>(), 14);
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -36));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -32));
- battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -18));
+ ComplexAnimation numberAnimationPrototype(0, framerate);
+ numberAnimationPrototype.AddFrame(0, 0);
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -26));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -42));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -48));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -42));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -26));
+ numberAnimationPrototype.AddFrame(0, 0);
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -12));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -20));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -24));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -20));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -12));
+ numberAnimationPrototype.AddFrame(0, 0);
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -6));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -10));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -12));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -10));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -6));
+ numberAnimationPrototype.AddFrames(0, 0, Vector<int>(), 14);
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -36));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -32));
+ numberAnimationPrototype.AddFrame(0, 0, Vector<int>(0, -18));
+ battleRes.numberAnimationPrototype = &numberAnimationPrototype;
SDL_Surface *bigNumbersImg(IMG_Load("test-data/big-numbers.png"));
Sprite bigNumbersSprite(bigNumbersImg, 16, 32);