Page 1 of 1

Tile editor

Posted: Tue Feb 03, 2004 1:02 am
by RaverDave
Hello!! ;)
I was just wondering if anyone has done a tile editor using PureBasic!I have seen a few done in other programs, namely Div Games Studio, the way that was done was just pasting tiles onto a large map(or sprite if you wish for PB's sake) of course a large bitmap would be abit costly with regards to memory,are there better ways of doing this!How for instance do you think they did the good old Sonic The Hedgehog Game?? I know they used tiles but how were they displayed by the runtime engine??
My guess is all the data was stored in some sort of array,and pasted a column at a time either side of the screen,hmmmm....Anyhow..
Any help is greatly appreciated!
_____________________

Posted: Tue Feb 03, 2004 2:00 am
by Dare2
Hiya RaverDave,

Welcome.

I am working on a sprite editor (pixel editor actually) at the mo. Give it a week and I can give you the sources.

Be warned, though, I am a tyro and although it uses excellent code snippets and draws on suggestions by people like Danilo, it is weak and limited - not their fault, mine - as I am still weak. (It is stronger than the first attempt though).

Maybe it will be a good example of what not to do.

With luck someone will post a real editor for you.

With regards displaying images in platform-type games, I believe you are right and tiles are generally mapped, with screens being built from the tiles based on the maps.

Again, welcome.

Posted: Tue Feb 03, 2004 10:07 pm
by Epyx
HI
this is my Tile Editor .. > LevelEd < its written in VB but includes some Display Routines for Pure Basic.

A Game source who used LevelED Maps you find here .. XMas Run


greets Epyx

Posted: Tue Feb 03, 2004 11:05 pm
by freedimension
In the German Forum, there's a project by Thorsten that covers exactly what you asked for (he even did it for a sonic clone ;-) )
http://robsite.de/php/pureboard/viewtop ... 55&start=0

The third link on the site is the link for the editor plus pb code

!! :D !!

Posted: Wed Feb 04, 2004 5:58 am
by RaverDave
Hey, thanks for the nice warm reception! I nearly put my slippers on there! :D
Ok, whats with all the germans(runs for cover!!) hehe, just kidding..

These editors look rather Cool!I wouldnt mind abit of english in them though!! Thorsten's editor, well I cant make it out much, looks abit naked,I guess he explains, albiet in German!! And I liked yours epyx but again a few txt files(in english) explaining their functions would be nice!!
Neat little santa game there!i got onto the level where the spikes could kill you and chickened out!!

Posted: Wed Feb 04, 2004 8:09 pm
by Sunny
Hello,

just this time I'm creating a mapeditor. It's not as hard as I've expected. For 4 Month I've started programming with PureBasic and this is the result:

Image


With this version you can administer projects which contains maps and so on. This time, 11 layers are included and 4 edit-methodes like drawing, deleting and fill the full map.

The code length is about 2100 lines.

Technical Infos:
- number of Layers: 11
- tilesize: 32 x 32 pixels
- drawing: point the mouse over the map and draw like the MS Paint programm
- maximum mapsize: 200 x 200 tiles
- maximum maps: unlimited
- easy management with many maps in one project


So, that's all, maybe in some days a first alpha version is ready for testing.


mfg.

Sunny


PS: I'm sorry for my bad english, I'm from Germany.