Sign in to follow this  
Tom Burman

Javascript tile based layered game maps information

Recommended Posts

Hi Guys

Im building a 2D tile-based game using html5 canvas and JavaScript. It's an RPG and i plan on having large "wilderness" style maps for my levels.

Now what im looking for is a bit more information on how layers work with 2d tile maps to give a 3d like effect e.g. players can walk behind trees etc.

I would like to know:

  • What kind of layers are there? i know theres forground and background, but what others might be useful?

  • How many layers should i ideally have for my game?

  • What is a basic way to implement a system to read and display layered tile maps in javascript?

  • Are there any tutorials/guides/articles that could help me understand and also code this system?

Thanks very much guys, any help will be appreciated

Tom

 

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