#include <sstream>
#include <unistd.h>
-#include "app/globals.h"
-#include "app/gettext.h"
-#include "app/setup.h"
+#include "gettext.h"
#include "video/surface.h"
#include "video/screen.h"
#include "video/drawing_context.h"
-#include "special/frame_rate.h"
#include "sprite/sprite_manager.h"
#include "audio/sound_manager.h"
#include "lisp/parser.h"
#include "player_status.h"
#include "textscroller.h"
#include "main.h"
+#include "file_system.h"
+#include "gui/menu.h"
+#include "gui/mousecursor.h"
#include "control/joystickkeyboardcontroller.h"
Menu* worldmap_menu = 0;
WorldMap::WorldMap()
{
- tile_manager = new TileManager("images/worldmap/antarctica.stwt");
+ tile_manager = new TileManager("images/worldmap.strf");
width = 20;
height = 15;
tux = new Tux(this);
- leveldot_green = new Surface(datadir + "/images/worldmap/leveldot_green.png", true);
- leveldot_red = new Surface(datadir + "/images/worldmap/leveldot_red.png", true);
- messagedot = new Surface(datadir + "/images/worldmap/messagedot.png", true);
- teleporterdot = new Surface(datadir + "/images/worldmap/teleporterdot.png", true);
+ leveldot_green = new Surface(datadir + "/images/tiles/worldmap/leveldot_green.png", true);
+ leveldot_red = new Surface(datadir + "/images/tiles/worldmap/leveldot_red.png", true);
+ messagedot = new Surface(datadir + "/images/tiles/worldmap/messagedot.png", true);
+ teleporterdot = new Surface(datadir + "/images/tiles/worldmap/teleporterdot.png", true);
name = "<no title>";
music = "salcon.mod";
{
PlayerStatus old_player_status = player_status;
- std::cout << "Enter the current level: " << level->name << std::endl;
// do a shriking fade to the level
shrink_fade(Vector((level->pos.x*32 + 16 + offset.x),
(level->pos.y*32 + 16 + offset.y)), 500);
tux->set_direction(dir);
//tux->update(delta);
}
-
- std::cout << "Walk to dir: " << dir << std::endl;
}
}
context.do_drawing();
- SDL_Event event;
- wait_for_event(event,2000,6000,true);
+ wait_for_event(2.0, 6.0);
quit = true;
player_status.reset();
Vector(SCREEN_WIDTH - gold_text->get_text_width(str) - tux_life->w, 0),
LEFT_ALLIGN, LAYER_FOREGROUND1);
context.draw_surface(tux_life, Vector(SCREEN_WIDTH -
- gold_text->get_text_width("9"), 0), LEFT_ALLIGN, LAYER_FOREGROUND1);
+ gold_text->get_text_width("9"), 0), LAYER_FOREGROUND1);
}
else
{