+#include "world.h"
+#include "tile.h"
+#include "resources.h"
+#include "sprite_manager.h"
+#include "gameloop.h"
+
+Sprite* img_mriceblock_flat_left;
+Sprite* img_mriceblock_flat_right;
+Sprite* img_mriceblock_falling_left;
+Sprite* img_mriceblock_falling_right;
+Sprite* img_mriceblock_left;
+Sprite* img_mriceblock_right;
+Sprite* img_jumpy_left_up;
+Sprite* img_jumpy_left_down;
+Sprite* img_jumpy_left_middle;
+Sprite* img_jumpy_left_iced;
+Sprite* img_mrbomb_left;
+Sprite* img_mrbomb_right;
+Sprite* img_mrbomb_iced_left;
+Sprite* img_mrbomb_iced_right;
+Sprite* img_mrbomb_ticking_left;
+Sprite* img_mrbomb_ticking_right;
+Sprite* img_mrbomb_explosion;
+Sprite* img_stalactite;
+Sprite* img_stalactite_broken;
+Sprite* img_flame;
+Sprite* img_fish;
+Sprite* img_fish_down;
+Sprite* img_fish_iced;
+Sprite* img_fish_iced_down;
+Sprite* img_bouncingsnowball_left;
+Sprite* img_bouncingsnowball_right;
+Sprite* img_bouncingsnowball_squished;
+Sprite* img_flyingsnowball;
+Sprite* img_flyingsnowball_squished;
+Sprite* img_spiky_left;
+Sprite* img_spiky_right;
+Sprite* img_spiky_iced_left;
+Sprite* img_spiky_iced_right;
+Sprite* img_snowball_left;
+Sprite* img_snowball_right;
+Sprite* img_snowball_squished_left;
+Sprite* img_snowball_squished_right;
+
+#define BADGUY_WALK_SPEED .8f
+
+BadGuyKind badguykind_from_string(const std::string& str)
+{
+ if (str == "money" || str == "jumpy") // was money in old maps
+ return BAD_JUMPY;
+ else if (str == "laptop" || str == "mriceblock") // was laptop in old maps
+ return BAD_MRICEBLOCK;
+ else if (str == "mrbomb")
+ return BAD_MRBOMB;
+ else if (str == "stalactite")
+ return BAD_STALACTITE;
+ else if (str == "flame")
+ return BAD_FLAME;
+ else if (str == "fish")
+ return BAD_FISH;
+ else if (str == "bouncingsnowball")
+ return BAD_BOUNCINGSNOWBALL;
+ else if (str == "flyingsnowball")
+ return BAD_FLYINGSNOWBALL;
+ else if (str == "spiky")
+ return BAD_SPIKY;
+ else if (str == "snowball" || str == "bsod") // was bsod in old maps
+ return BAD_SNOWBALL;
+ else
+ {
+ printf("Couldn't convert badguy: '%s'\n", str.c_str());
+ return BAD_SNOWBALL;
+ }
+}