name = lisp_string(data);
else if(token == "action")
parse_action(reader);
+ else
+ std::cerr << "Warning: Unknown sprite field: " << token << std::endl;
}
if(name.empty())
if(!lispreader.read_string("name", action->name))
if(!actions.empty())
Termination::abort("Error: If there are more than one action, they need names!", "");
- lispreader.read_int("x-hotspot", action->x_hotspot);
- lispreader.read_int("y-hotspot", action->y_hotspot);
+ lispreader.read_int("x-offset", action->x_hotspot);
+ lispreader.read_int("y-offset", action->y_hotspot);
lispreader.read_float("fps", action->fps);
std::vector<std::string> images;