Archived

This topic is now archived and is closed to further replies.

NeHe Zelda

This topic is 5801 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I edit the graphics in NeHe Zelda. I know I need to edit the world.dat file but how do i do that? Also, can someone give me a tutorial that explains how to make a tilemap?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Hi, just open the world.dat in notepad and you should be
able to edit it.

Share this post


Link to post
Share on other sites
I think that world.dat is a .tga file, you should be able to rename it (something like world.tga) and load it into something like Paintshop Pro.

The Zelda code for drawing a tilemap is pretty straight-forward, the functions you are looking for are ZeldaMap::Draw() and ZeldaMap::DrawTile(), both in ZeldaMap.cpp

you''re looking at something like:
you have a 2d array of values indexing "tiles" on your texture map.

for(every row of tiles visible on the screen)
{
for(every column of tiles visible on the screen)
{
draw tile specified by array[current column, current row]
}
}

Share this post


Link to post
Share on other sites