X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=0fd129b98618401a1acc34f5f419ba448ba2d5cc;hb=187a0f2c37bd4c1e80c5c4351aaf80695508817f;hp=e5391a1659f50a19184c0cc36cff72c6020ab9e4;hpb=62db8dd0b428e68cf5626607297589c2bafe0d3e;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index e5391a1..0fd129b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -221,6 +221,37 @@ int main(int argc, char **argv) { Font largeFont(&largeFontSprite, 0, -2); battleRes.titleFont = &largeFont; + battleRes.numberAnimationPrototype = ComplexAnimation(0, 30); + battleRes.numberAnimationPrototype.AddFrame(0, 0); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -26)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -42)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -48)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -42)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -26)); + battleRes.numberAnimationPrototype.AddFrame(0, 0); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -12)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -20)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -24)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -20)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -12)); + battleRes.numberAnimationPrototype.AddFrame(0, 0); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -6)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -10)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -12)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -10)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -6)); + battleRes.numberAnimationPrototype.AddFrames(0, 0, Vector(), 14); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -36)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -32)); + battleRes.numberAnimationPrototype.AddFrame(0, 0, Vector(0, -18)); + + SDL_Surface *bigNumbersImg(IMG_Load("test-data/big-numbers.png")); + Sprite bigNumbersSprite(bigNumbersImg, 16, 32); + battleRes.bigNumberSprite = &bigNumbersSprite; + SDL_Surface *bigGreenNumbersImg(IMG_Load("test-data/big-green-numbers.png")); + Sprite bigGreenNumbersSprite(bigGreenNumbersImg, 16, 32); + battleRes.greenNumberSprite = &bigGreenNumbersSprite; + SDL_Surface *heroTagImg(IMG_Load("test-data/hero-tag-sprites.png")); Sprite heroTagSprite(heroTagImg, 32, 16); battleRes.heroTagLabels = &heroTagSprite;