/* Write header: */
- fprintf(fi,";SuperTux-Level\n");
+ fprintf(fi,";SuperTux level made using the built-in leveleditor\n");
fprintf(fi,"(supertux-level\n");
fprintf(fi," (version %d)\n", 1);
{
for(int i = 0; i < width; ++i)
fprintf(fi," %d ", bg_tiles[y][i]);
+ fprintf(fi,"\n");
}
fprintf( fi,")\n");
{
for(int i = 0; i < width; ++i)
fprintf(fi," %d ", ia_tiles[y][i]);
+ fprintf(fi,"\n");
}
fprintf( fi,")\n");
{
for(int i = 0; i < width; ++i)
fprintf(fi," %d ", fg_tiles[y][i]);
+ fprintf(fi,"\n");
}
fprintf( fi,")\n");
for(std::vector<BadGuyData>::iterator it = badguy_data.begin();
it != badguy_data.end();
++it)
- fprintf( fi,"(%s (x %d) (y %d) (stay-on-platform %s))\n",
+ fprintf( fi," (%s (x %d) (y %d) (stay-on-platform %s))\n",
badguykind_to_string((*it).kind).c_str(),(*it).x,(*it).y,
it->stay_on_platform ? "#t" : "#f");