From fda41ea8d771fc41a5f05c9a3d68d1f5635fa377 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Wed, 12 May 2004 14:54:04 +0000 Subject: [PATCH] Break lines on tiles as requested by Ryan. Also added a few spaces for enemies and added a comment saying that the level was made using the built-in level editor. SVN-Revision: 1130 --- src/level.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/level.cpp b/src/level.cpp index 727e6bd60..c8ef15d05 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -555,7 +555,7 @@ Level::save(const std::string& subset, int level) /* 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); @@ -586,6 +586,7 @@ Level::save(const std::string& subset, int level) { for(int i = 0; i < width; ++i) fprintf(fi," %d ", bg_tiles[y][i]); + fprintf(fi,"\n"); } fprintf( fi,")\n"); @@ -595,6 +596,7 @@ Level::save(const std::string& subset, int level) { for(int i = 0; i < width; ++i) fprintf(fi," %d ", ia_tiles[y][i]); + fprintf(fi,"\n"); } fprintf( fi,")\n"); @@ -604,6 +606,7 @@ Level::save(const std::string& subset, int level) { for(int i = 0; i < width; ++i) fprintf(fi," %d ", fg_tiles[y][i]); + fprintf(fi,"\n"); } fprintf( fi,")\n"); @@ -619,7 +622,7 @@ Level::save(const std::string& subset, int level) for(std::vector::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"); -- 2.11.0