Tile editor

Just starting out? Need help? Post your questions and find answers here.
RaverDave
New User
New User
Posts: 6
Joined: Tue Feb 03, 2004 12:50 am

Tile editor

Post 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!
_____________________
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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.
User avatar
Epyx
User
User
Posts: 44
Joined: Fri May 09, 2003 10:54 am
Location: Germany
Contact:

Post 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
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post 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
RaverDave
New User
New User
Posts: 6
Joined: Tue Feb 03, 2004 12:50 am

!! :D !!

Post 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!!
Sunny
User
User
Posts: 16
Joined: Wed Feb 04, 2004 7:46 pm
Location: Germany | Hannover

Post 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.
Post Reply