diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-12-11 17:54:22 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-12-11 17:54:22 +0000 |
commit | 82ec93208d55e5f4531034c49b74179c9810cc8f (patch) | |
tree | 4768eed3b901ccb6786a0cd34ff704493d96bc4f /src | |
parent | 2793dad678b15ecd6f5999eabed1b1449ccae1c9 (diff) | |
download | mana-client-82ec93208d55e5f4531034c49b74179c9810cc8f.tar.gz mana-client-82ec93208d55e5f4531034c49b74179c9810cc8f.tar.bz2 mana-client-82ec93208d55e5f4531034c49b74179c9810cc8f.tar.xz mana-client-82ec93208d55e5f4531034c49b74179c9810cc8f.zip |
Core sprite classes of the new graphic engine
Diffstat (limited to 'src')
-rw-r--r-- | src/graphic/graphic.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index d7babb44..401e9bc9 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -252,10 +252,7 @@ void init_graphic() { #ifdef WIN32 } #endif - vtileset = load_graphic_file("./data/graphic/tileset.bmp"); - vnpcset = load_graphic_file("./data/graphic/npcset.bmp"); - vplayerset = load_graphic_file("./data/graphic/playerset.bmp"); - vmonsterset = load_graphic_file("./data/graphic/monsterset.bmp"); + gui_bitmap = vpage[page_num]; @@ -344,9 +341,9 @@ new_tileset->spriteset[0]->draw(vbuffer, 0, 0); int r_y = node->text_y-get_y_offset(node); if(node->action==MONSTER_DEAD) - new_monsterset->spriteset[(get_direction(node->coordinates)/2)+4*(node->job-1002)+16*MONSTER_DEAD]->draw(vbuffer, node->text_x, node->text_y); + new_monsterset->spriteset[(get_direction(node->coordinates)/2)+4*(node->job-1002)+8*MONSTER_DEAD]->draw(vbuffer, node->text_x, node->text_y); else - new_monsterset->spriteset[(get_direction(node->coordinates)/2)+4*(node->job-1002)+16*(node->frame+node->action)]->draw(vbuffer, node->text_x, node->text_y); + new_monsterset->spriteset[(get_direction(node->coordinates)/2)+4*(node->job-1002)+8*(node->frame+node->action)]->draw(vbuffer, node->text_x, node->text_y); if(node->action!=STAND) { node->frame = (get_elapsed_time(node->tick_time)*4)/(node->speed); |