Sign in to follow this  
altunozara

c++ maps help

Recommended Posts

hey i want to make a game like nethack witha large map but you can ojnly see a bit of it and when you walk more is revealed i dont know how to do this and need help to know how could someone please help me?

Share this post


Link to post
Share on other sites
That's... a very open question. And you've not given much detail other than NetHack (which is open-source! You can see how they did it!). In all seriousness, sit down with pen and paper and have a think about what you'd need to do in code to make that happen. Once you've come up with a rough algorithm, try implementing it. If you run into difficulties, post back by all means, but have a stab at solving the problem yourself first.

Share this post


Link to post
Share on other sites
Quote:
Original post by iNsAn1tY
NetHack (which is open-source! You can see how they did it!).
I strongly suggest not looking at the NetHack source for anything; pretty much every Roguelike has atrocious, disgusting procedural code that should be offensive to anyone with the vaguest sense of propriety.

That said, what you're looking for is a scrolling tilemap. Without more details about your game, it's hard to get more specific.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this