const int width = 800;
const int height = 480;
- const int framerate = 33;
-
// std::srand(std::time(0));
try {
battleRes.itemMenuHeadline = intp.GetString("itemMenuHeadline");
battleRes.itemMenuPrototype = Menu<const common::Item *>(intp.GetFont("normalFont"), intp.GetFont("disabledFont"), intp.GetSprite("handCursor"), 15, 6, 8, 16, 1, 32, 2, ':');
- SDL_Surface *swordAttackImg(IMG_Load("test-data/attack-sword.png"));
- Sprite swordAttackSprite(swordAttackImg, 96, 96);
- SimpleAnimation swordAttackAnimation(&swordAttackSprite, 2 * framerate, 4);
-
maxim.SetWeapon(intp.GetItem("zircoSwordItem"));
maxim.SetArmor(intp.GetItem("zirconArmorItem"));
maxim.SetShield(intp.GetItem("holyShieldItem"));
dekar.SetRing(intp.GetItem("rocketRingItem"));
dekar.SetJewel(intp.GetItem("krakenRockItem"));
- battleRes.ikariMenuHeadline = "Please choose equipment.";
- battleRes.noEquipmentText = "No equip";
+ battleRes.ikariMenuHeadline = intp.GetString("ikariMenuHeadline");
+ battleRes.noEquipmentText = intp.GetString("noEquipmentText");
battleRes.ikariMenuPrototype = Menu<const Item *>(intp.GetFont("normalFont"), intp.GetFont("disabledFont"), intp.GetSprite("handCursor"), 12, 6, intp.GetFont("normalFont")->CharHeight() / 2, intp.GetFont("normalFont")->CharWidth(), 1, intp.GetFont("normalFont")->CharWidth() * 2, 0, ':', 12, intp.GetFont("normalFont")->CharWidth());
-
- battleRes.escapeText = "Escapes.";
+ battleRes.escapeText = intp.GetString("escapeText");
BattleState *battleState(new BattleState(bg, monstersLayout, heroesLayout, &battleRes));
battleState->AddMonster(monster);
+include "ikaris.l2s"
+include "items.l2s"
+include "spells.l2s"
+
Number frameTime 33
Number twoFramesTime 66
Number fourFramesTime 132
offset: <0,64>
}
-include "spells.l2s"
-
export String spellMenuHeadline "Please choose a spell."
-
-include "ikaris.l2s"
-include "items.l2s"
-
export String itemMenuHeadline "Please choose an item."
+export String ikariMenuHeadline "Please choose equipment."
+export String noEquipmentText "No equip"
+export String escapeText "Escapes."