Edorul'S SDLMappy

SDLMappy

Homee.jpg (1686 octets) Gameboy.jpg (2756 octets) SDLMapp2.jpg (1979 octets) Othere.jpg (2523 octets) Linkse.jpg (1414 octets) Contacte.jpg (1711 octets)


glasses.gif (36882 octets)


SDLMappy 1.0

Mappy editor 1.0

Example 1.0


SDLMappy doc


 

SDLMappy Library

Kdev.jpg (19162 octets)

  • SDLMappy ? What's this ?

The original Mappy C++ Library was written by Robin Burrows and translated for CDX by Ioannis Karagiorgos, then (at last) I translated it to be used with SDL... Thanks to them for their very good work :)))
It permits to use 2D tiles based maps created by Mappy. It allows to create up to 8 different layers, layer transparency, animations...

Download SDLMappy 1.0 (11Ko)

  • How to use it ? It's simple :

1) Put SDLMappy.h and SDLMappy.cpp in your source directory.
2) Add this line at the beginning of your code : #include "SDLMappy.h"
3) Add SDLMappy.cpp to your project (for example, if you use KDevelop just go to Project choose Add a file to project and choose SDLMappy.cpp in your source directory)
4) Compile and it works !

The Mappy map editor for Linux

Mappy.jpg (10180 octets)

In order to use SDLMappy you need this program to create your own Mappy maps.
To launch it just click on its icon - type F1 for help. If you need an exhautive documentation and a tutorial go on the Mappy pages...

The Mappy-1.0.tar.gz contains an example map. It is 16 bits, comports 2 layers and some anims.

Download Mappy Linux 1.0 (132Ko)

WARNING :
This program was compiled with the ALLEGRO Library. And I was not sure that you need it to run the program... But, Jae Jang send me a very cool E-Mail, which gave me some precisions:

" Mappy Linux 1.0 doesn't run unless the user has the correct shared lib for allegro. It says "liballeg blah .so blah not found". You probably want to compile a static version.... However, downloading and installing allegro for Linux was pretty easy so it's not a very big deal "

So, as long as Mappy Linux will be in a dynamic version, you can go on ALLEGRO web site. Or you can download directly ALLEGRO Library :  allegro-3.9.33.tar.gz (1.36 Mo)

  • How to compile Mappy ? :

1) Open a terminal.
2) Move to Mappy's folder.
3) Type : gcc main.c -o mappy `allegro-config --libs`
        Take note that this are ` backticks, not normal ' quotes !

An Example using SDLMappy

Example.jpg (13218 octets)

Here is an example using SDLMappy. It just permits to make a map scrolling in both directions : X and Y, have a moving sprite using the cursor keys. There is 2 layers, one is above the sprite (because drawing last) the second is under the sprite (because drawing firt), a parallax picture and animation areas.

Download Example 1.0 (113 Ko)

  • How to compile the example in a terminal mode ?

1) Copy SDLMappy.cpp and SDLMappy.h in the example folder.
2) Open a terminal.
3) Move to example's folder.
4) Type :
          c++ -c SDLMappy.cpp
          c++ -c main.cpp
          c++ -lSDL -lpthread -o sdlmappy_example SDLMappy.o main.o

5) Run the exemple by taping :  ./sdlmappy_example