Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Writing a Map Editor  (Read 3152 times)

0 Members and 1 Guest are viewing this topic.

acerookie1

  • Newbie
  • *
  • Posts: 3
    • Yahoo Instant Messenger - argamestudio@yahoo.com
    • View Profile
    • Email
Writing a Map Editor
« on: February 18, 2010, 09:52:47 pm »
:o i dont want to sound like a complete noob but. im writing a map editor to see my limitations and i've seen my limitations. how do i display my map format on the screen. i use this to load the map:



Code: [Select]
{
ifstream infile;
infile.open(filename.c_str());
for (int k=0; k<LAYER_AMT; k++)
{
for (int j=0; j<MAP_H; j++)
{
for (int i=0; i<MAP_W; i++)
{
int temp;
infile>>temp;
grid[k][i][j].fx = temp*32;
}
}
}
infile.close();
cout<<"Map loaded successfully";
}


displaying it becomes dificult for me and editing in the program.

im going by the format on http://www.moosader.com/tutfiles/Writing_2D_MapEditor.pdf

[/url]
MGS- man gundam is sick