Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


psiiiboy

Member Since 06 Feb 2011
Offline Last Active Jul 11 2013 12:44 PM

Posts I've Made

In Topic: programming game levels

14 March 2013 - 01:58 PM

thanks guys for your suggestion .. 

Break up your game into multiple classes

 

Door Class

Wall Class

Environment Class

Game Class

 

The reason why this would work is because it is a good object oriented principle to know and it will save you a lot of headaches.

You can easily remove and add object of a particular class much more easily making your game more flexible.

 

This principle will also applied to any other game object of your game like graphical effects.

 

I am creating this using OOP approach ... my main concern was how to create and handle multiple maps

 

 

I don't know what type of 2D game you're creating, but for level design, I'd recommend creating a level editor, if you haven't already.  First you need a clear definition and a list of what your game's levels will contain, then create your tool to save level data defining where walls, doors, enemy respawn points, whatever, into a scripting file like .xml or a custom format.  Using your own level editor would make your life much easier.  This way, you can put the relevant data in the right places upon load time. smile.png

 

Shogun

 

 

I don't know what type of 2D game you're creating, but for level design, I'd recommend creating a level editor, if you haven't already.  First you need a clear definition and a list of what your game's levels will contain, then create your tool to save level data defining where walls, doors, enemy respawn points, whatever, into a scripting file like .xml or a custom format.  Using your own level editor would make your life much easier.  This way, you can put the relevant data in the right places upon load time. smile.png
 
Shogun

agreed. also, potentially, for a 2D game, creating a level editor might be a learning experience or help give ideas for how to structure the game proper.

a few questions to try to answer in advance:
does it use tiles or polygons? what sorts of things can go on in the world? will it be side-view, top-down, or isometric? how will things like enemies spawn? ...

 

 

blueshogun96 , I really liked your idea of creating a level editor but could everything be done within 2 months .

well the game will contain 3d objects viewed from top and have orthographic projection  and the movement will be in 2d smile.png sorry , my mind gets mess up when I think whether i call it 3d or 2d game  . it  but yeah that's the type of game i am creating ryt know .

 

 

 


PARTNERS