Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    686
  • comments
    1952
  • views
    387448

Up next...

Sign in to follow this  
Stompy9999

58 views

My next goal for the game is to make it so that the player can actually progress to the next level. Right now I have to go into the code and manually change it every time I want to change the level.

With Blocky Man, the method I used to do this was very simple. I named the map files:

level1.txt
level2.txt
level3.txt
etc...(not exactly, but something like that)

Than I hacked the code to make the levels play in order.

Now I'm going to code it so a group of levels will be packaged into a "world". This will allow people who make their own maps to group their levels. After all, I'm hoping to make this game something people will want to create maps for.
Sign in to follow this  


1 Comment


Recommended Comments

I usually just add a line in each map file saying which map will be loaded next (when that level is beaten). Or, in an RPG, maybe up to 4 lines (one for each direction). The only problem I can think of with this approach is that a map can only lead to one other level; you couldn't have level 5 go to level 6 in one situation and to level 7 in another. In games like that, though, I usually create a 'Door' object, and each one will load (from the map file) which map it will lead to.

Share this comment


Link to comment

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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!