Need an idea on how to create map for 2D first person

Started by
11 comments, last by superman3275 10 years, 8 months ago


If you want efficiency in making levels, you need a dedicated tool - you need to program a level editor.

No you don't.

If you want efficiency in making levels, you need to use an off-the-shelf editor, it will get you to a better level of functionality sooner. There are heaps of tilemap editors, and this game is mostly just a tilemap with various objects and metadata. It should be doable with minimum of custom code.

In order of preference:

* Use an existing editor

* Code a wrapper for existing code

* Code a plugin for existing editor

* Write your own editor

You'll have a lot more productivity if you use an existing editor, unless you have, say a team of at least 2 people fulltime generating content. And if that's the case, you won't be wasting time posting on gdnet.

Advertisement

If you want efficiency in making levels, you need to use an off-the-shelf editor

Hi. With that you will be efficient in making the level editor itself, not the actual content. Using something off-the-shelf is not a guarantee of efficiency. You will definitely save work from recycling the UI, navigation, I\O etc. but depending on the paradigm of the editor one chooses to extend, he would have so much work as to entitle making your plugin a standalone program in the first place - especially if it goes in a different direction than what the editor is intended for. The OP does not need refined functionality, but a convenient way to layout screen data.

Which leads to the following...

There are heaps of tilemap editors, and this game is mostly just a tilemap with various objects and metadata.

I don't think that is the style of game he wants to make. It's a 2D, first person dungeon crawler. Something like the following:


2ce6zk5.gif


It's not a third person dungeon crawler.
If it were a tile-map game like that, he could indeed use one of the several tile-map editors available online (MapEditor for example).
Given that the style he's going for is very niche, I think a custom solution is, most likely, best.

Generally, you would use RayCasting to achieve this.

The maps are simply arrays of tiles (like in a 2D RPG).

Some implementations:

A simple tilemap which would be stored in a text file.


# Each number corresponds to a different tile
1 2 3
0 2 1
3 0 2

More often, people use dedicated file types for the task. I'll let you learn about those.

I'm a game programmer and computer science ninja !

Here's my 2D RPG-Ish Platformer Programmed in Python + Pygame, with a Custom Level Editor and Rendering System!

Here's my Custom IDE / Debugger Programmed in Pure Python and Designed from the Ground Up for Programming Education!

Want to ask about Python, Flask, wxPython, Pygame, C++, HTML5, CSS3, Javascript, jQuery, C++, Vimscript, SFML 1.6 / 2.0, or anything else? Recruiting for a game development team and need a passionate programmer? Just want to talk about programming? Email me here:

hobohm.business@gmail.com

or Personal-Message me on here !

This topic is closed to new replies.

Advertisement