2D maps

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
Franciscobiaso
Posts: 3
Joined: Sat Jan 08, 2011 7:46 am

2D maps

Post by Franciscobiaso »

I am wanting to create a 2d game but do not know how to make mapas.Tem some program to create the maps in 2d?
I have more questions about a program in 2d: the example of 6 Irrlicht 2d grapichs I'm in doubt that phrase
Video: ITexture * images = driver-> getTexture ();
I am not able to understand what argument I use in
getTexture function ().
Thanks!
CuteAlien
Admin
Posts: 9926
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

You can create them in any way that works for you. For example you might read in a bitmap and use the pixel-colors as information. Or you might create an xml-file in which you encode the information. Or some other text-format which can look however you want. There are infinite ways to have data for a 2d game. You are the programmer - so it is your job to decide how your data formats have to look like.

And in getTexture you use the filename relative to the working-path of your application (mostly relative to your executable).

But please check also the FAQ in the beginner section before you start with Irrlicht. You have to know at least c++ to use it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
pippy3
Posts: 155
Joined: Tue Dec 15, 2009 7:32 am

Post by pippy3 »

If your game is in 2d use a different library. While you can use irrlicht for 2d things, you'll run into limitations that just waste time.

Pygame might be best for you - anyone can pick up python quickly. Don't let the ugly looking tutorials put you off, pygame is a very solid library.

Love2d is nice, though lua isn't the nicest language I've written a blog post about pygame vs love2d.

try flixel or flash punk You can make game quickly, though most people discredit flash as 'noobish'
Franciscobiaso
Posts: 3
Joined: Sat Jan 08, 2011 7:46 am

Post by Franciscobiaso »

Thanks !!!
realy thanks!
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

pippy3 wrote:lua isn't the nicest language
I'm inclined to disagree!
But that is just my opinion, just like your statement is an opinion. But wording it like that makes it look like a fact. (Ok, i'll agree that no nicest lanugage exist, but it's still very easy to misinterpret your statement).
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

Post by roelor »

pippy3 wrote: try flixel or flash punk You can make game quickly, though most people discredit flash as 'noobish'
I don't think its noobish, it just doesn't work very well on alot of machines. Even on my current pc (i5 750 6gb ram) flash sometimes laggs the shizzle out of my compu. My previous computer... Let's not go there.. It was awfull..
Post Reply