summaryrefslogtreecommitdiff
path: root/src/graphic
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-17 18:43:29 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-17 18:43:29 +0000
commit44a347ccc40bb4a42f03743f5e2401769da41289 (patch)
tree5d84c5e4ca0855af199c3e099c573e3d6037c0ce /src/graphic
parent86afed79898af85cdf53060f0062f95cf27113a7 (diff)
downloadmana-44a347ccc40bb4a42f03743f5e2401769da41289.tar.gz
mana-44a347ccc40bb4a42f03743f5e2401769da41289.tar.bz2
mana-44a347ccc40bb4a42f03743f5e2401769da41289.tar.xz
mana-44a347ccc40bb4a42f03743f5e2401769da41289.zip
Converted some images to PNG and put them in new dir structure.
Diffstat (limited to 'src/graphic')
-rw-r--r--src/graphic/graphic.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index e444ba7a..c5fd63eb 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -268,15 +268,19 @@ Engine::Engine()
// Load the sprite sets
ResourceManager *resman = ResourceManager::getInstance();
- Image *npcbmp = resman->getImage("graphic/npcset.bmp");
- Image *emotionbmp = resman->getImage("graphic/emotionset.bmp");
- Image *tilesetbmp = resman->getImage("graphic/tileset.bmp");
- Image *monsterbitmap = resman->getImage("graphic/monsterset.bmp");
-
- if (!npcbmp) error("Unable to load npcset.bmp");
- if (!emotionbmp) error("Unable to load emotionset.bmp");
- if (!tilesetbmp) error("Unable to load tileset.bmp");
- if (!monsterbitmap) error("Unable to load monsterset.bmp");
+ Image *npcbmp = resman->getImage(
+ "core/graphics/sprites/npcs.png");
+ Image *emotionbmp = resman->getImage(
+ "core/graphics/sprites/emotions.png");
+ Image *tilesetbmp = resman->getImage(
+ "core/graphics/tiles/desert.png");
+ Image *monsterbitmap = resman->getImage(
+ "core/graphics/sprites/monsters.png");
+
+ if (!npcbmp) error("Unable to load npcs.png");
+ if (!emotionbmp) error("Unable to load emotions.png");
+ if (!tilesetbmp) error("Unable to load desert.png");
+ if (!monsterbitmap) error("Unable to load monsters.png");
npcset = new Spriteset(npcbmp, 50, 80);
emotionset = new Spriteset(emotionbmp, 19, 19);