Okay. I'm currently designing a small little "maze" game. Heading towards an ascii dungeon game, but keeping it simple for now. Simply, the program so far is meant to read in a text file containing the maze, copy to a terrain class which draws it to the screen class. The screen class then outputs the map. It reads it all in okay, but every time I output, the first line is all messed up. For example, a text file that contained:
Outputs:Quote:
Here is some text.
Here is some more.
And here's a line.
I'm using notepad2 to edit the text and Cygwin to compile. I have tried both windows and unix format. I have tried all the different encodings. Has anyone else come across this? There's quite a bit of code so I won't post it until you ask for it. (Just in case it's not a programming issue.)Quote:
O?¶a♦ is some more.
And here's a line.
Thanks.