: BadGuy(reader, "images/creatures/poison_ivy/poison_ivy.sprite")
{
set_direction = false;
+ reader.get("direction", direction);
+ if( direction != "auto" && direction != ""){
+ set_direction = true;
+ initial_direction = str2dir( direction );
+ }
}
PoisonIvy::PoisonIvy(const Vector& pos, Direction d)
{
writer.start_list("poisonivy");
+ writer.write_string("direction", direction);
writer.write_float("x", start_position.x);
writer.write_float("y", start_position.y);