title: How to save map data in a tilebased game
body: <p>I have a bit of a rookie question regarding storage of map data i a java game. I'm making a 2d tile-based game, where each tile has an id (1, 2, 3, 4 and so on...). I currently store the game data in a .txt file, where each number is seperated by a tab. Therefrom i read it via scanners .nextInt. </p>
  
  <p>This method works fine, but it seems to give me a problem: </p>
  
  <ul>
  <li>Since the level file is just a normal .txt file it is easily edited by anyone. This means that the user could just change a few numbers in the file with any kind of text editor and thereby easily cheat.</li>
  </ul>
  
  <p>How would this be avoided? Should i store the map data differently or should i use some form of encryption?</p>