animation_timer.init(true);
}
+Door::Door(int x, int y)
+{
+area.x = x;
+area.y = y;
+area.width = 32;
+area.height = 64;
+
+animation_timer.init(true);
+door_activated = false;
+
+animation_timer.init(true);
+}
+
void
Door::write(LispWriter& writer)
{
{
public:
Door(LispReader& reader);
+ Door(int x, int y);
virtual ~Door();
virtual void write(LispWriter& writer);
}
if(background == NULL)
- context.draw_gradient(Color(200, 100, 200), Color(100, 200, 100), LAYER_BACKGROUND0);
+ context.draw_gradient(Color(200,240,220), Color(200,200,220), LAYER_BACKGROUND0);
else
context.draw_surface(background, Vector(0,0), LAYER_BACKGROUND0);
char str[1024];
if(input_flickering)
- sprintf(str,"%s_",input);
- else
sprintf(str,"%s ",input);
+ else
+ sprintf(str,"%s_",input);
std::string string = str;
throw std::runtime_error("wrong number of tiles in tilemap.");
}
+TileMap::TileMap(int layer_, bool solid_, size_t width_, size_t height_)
+ : solid(solid_), speed(1), width(width_), height(height_), layer(layer_)
+{
+}
+
TileMap::~TileMap()
{
}
public:
TileMap();
TileMap(LispReader& reader);
+ TileMap(int layer_, bool solid_, size_t width_, size_t height_);
virtual ~TileMap();
virtual void write(LispWriter& writer);