Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I've been using a tilemap editor for making levels, but I was wondering if there was a way to use PNG images as the level map, as maps created in tiled editor are graphically uninteresting.

Background: I've recently started 2d game development and have learned basics i.e collision, game loop etc. I am developing game in JavaScript for Windows 8, but c#/c++ would work for me also.

share|improve this question
    
What tiled editor are you using, what kind of "high graphical look" are you going for, and what way do you want to use png images to fix this? Like just load a png as the background of your game? –  ssb Jan 31 '13 at 7:01
    
    
it mostly depends on your map sizes, but you can also use a tile map for collision detection and those kinda stuff, while drawing a custom image instead of actual tile map. –  Ali.S Jan 31 '13 at 9:36
1  
"But i was wondering if there is any way to use png images" -- yes there is, you have to display it. So what are you really asking? –  Liosan Jan 31 '13 at 10:11
    
@Jimmy links you provided are very useful. –  mshahbazm Jan 31 '13 at 14:15
add comment

1 Answer

up vote 2 down vote accepted

Sure it's possible and it has been done in the past, but there are several advantages and disadvantages associated with using a texture as the map:

  • You'll need some way to determine specific attributes of parts of the map, e.g. whether some position is actually solid, or for other things, such as destructible terrain, ice, etc.
  • Making parts of the map dynamic is rather tricky. So you can't do things such as moving platforms or doors as easy (they'll have to be in a different layer).
  • Doing bigger maps can get rather memory consuming. Also consider limited hardware capabilities (maximum width/height for textures and such).

The only games I can think of right now using images as maps are several artillery clones, such as Worms, Gunbound, Warmux and others.

If you don't want to use repetitive tiles in a tile map, I'd suggest you use polygons to describe your map and separated tiles/textures to decorate your map. E.g. your map file defines the solid outlines of your map and where to place art assets for the solid areas to be visible in some way (e.g. as a rock).

share|improve this answer
    
I appreciate answers, I would have love to up-vote answers that helped me a lot but unfortunately it requires min 15 reputation. –  mshahbazm Jan 31 '13 at 14:32
    
No worries, it's how the site works, e.g. to avoid people creating new accounts just to upvote a single posting. :) –  Mario Jan 31 '13 at 14:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.