summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-04 18:24:40 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-04 18:24:40 +0000
commita8d207e6889cd353dd11736b5690aa54ac6de993 (patch)
tree1979e3fbfcafebc4426ea72ed055e2db072800e8 /src/graphic/graphic.cpp
parentae4e9076051a736e2bbbce91e7fd58cb27448f24 (diff)
downloadmana-a8d207e6889cd353dd11736b5690aa54ac6de993.tar.gz
mana-a8d207e6889cd353dd11736b5690aa54ac6de993.tar.bz2
mana-a8d207e6889cd353dd11736b5690aa54ac6de993.tar.xz
mana-a8d207e6889cd353dd11736b5690aa54ac6de993.zip
Got rid of last 5 Allegro datafiles.
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 4537ee12..dd5df45b 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -195,9 +195,17 @@ GraphicEngine::GraphicEngine() {
// Initialize the gui bitmap to the page that will be drawn first
gui_bitmap = this->buffer;
- emotionset = new Spriteset("./data/graphic/emotionset.dat");
- npcset = new Spriteset("./data/graphic/npcset.dat");
- tileset = new Spriteset("./data/graphic/tileset.dat");
+ BITMAP *npcbmp = load_bitmap("data/graphic/npcset.bmp", NULL);
+ if (!npcbmp) error("Unable to load npcset.bmp");
+ npcset = new Spriteset(npcbmp, 80, 50, 0, 0);
+
+ BITMAP *emotionbmp = load_bitmap("data/graphic/emotionset.bmp", NULL);
+ if (!emotionbmp) error("Unable to load emotionset.bmp");
+ emotionset = new Spriteset(emotionbmp, 19, 19, 0, 0);
+
+ BITMAP *tilesetbmp = load_bitmap("data/graphic/tileset.bmp", NULL);
+ if (!tilesetbmp) error("Unable to load tileset.bmp");
+ tileset = new Spriteset(tilesetbmp, 32, 32, 0, 0);
BITMAP *monsterbitmap = load_bitmap("data/graphic/monsterset.bmp", NULL);
if (!monsterbitmap) error("Unable to load monsterset.bmp");
@@ -213,7 +221,10 @@ GraphicEngine::~GraphicEngine() {
delete npcTextDialog;
delete skillDialog;
- //delete tileset;
+ delete tileset;
+ delete monsterset;
+ delete npcset;
+ delete emotionset;
}
void GraphicEngine::refresh() {