UnderwareDESIGN

PlayBASIC => Show Case => Topic started by: LemonWizard on April 30, 2009, 05:25:23 AM

Title: Tile Engine and Map Editor System
Post by: LemonWizard on April 30, 2009, 05:25:23 AM
(http://underwaredesign.com/screens/PlayBasic/Forums/LemonWizard/Tile-Engine-Map-Editor-shot2-1.jpg)

(http://underwaredesign.com/screens/PlayBasic/Forums/LemonWizard/Tile-Engine-Map-Editor-shot1.jpg)

What I have here is an incarnation of an older map editor I was making for a text based game. I decided to convert it into something more useful. Since I already had most of the routines for it written.
I'll upload zip folders of the project here. Be warned though it's very WIP.
The eye icon loads the map in the editor, and the chest icon thing saves the map.
The map is by default saved to C:/savedmaps/map1.txt
Anyone who knows a bit about using pb can easily change this.
Sorry if the code is a bit sloppy...
You can scroll using the arrow keys in the map editor, in the tile engine you can move with the arrow keys.
I've implemented a simple, tile changing command if the player is standing on a switch it gets pressed down.
Any switch in the tile engine will behave like this.
Later on I'll allow the editor more features like the ability to create an array within the map of that engine for switches... things like that. It'll be wicked.

Title: Re: Tile Engine and Map Editor System
Post by: ATLUS on April 30, 2009, 01:34:34 PM
looked nice!!!
Title: Re: Tile Engine and Map Editor System
Post by: LemonWizard on April 30, 2009, 04:38:06 PM
Thanks Atlus ^.^
What I'm going to do maybe this week is maybe implement a full tile set feature.
Oh also..
I should mention that the character in this engine comes from the Rpg Maker XP RTP Standard.
If you have a character image from that RTP set, that's 128 by 128 pixels you can replace the character image that this engine is using with another one from the set.
So, basically any charset that fits this design will plug into my tile engine with ease.
^.^


Title: Re: Tile Engine and Map Editor System
Post by: kevin on May 01, 2009, 02:44:08 AM

This file Tile Engine 4.zip doesn't seem to have a map in it.. 
Title: Re: Tile Engine and Map Editor System
Post by: LemonWizard on May 02, 2009, 12:30:15 AM

Basically you have to create a map with the map editor first =p
It gets saved to C:\savedmaps\map1.txt

Sorry I didn't mention that. The tile engine runs whatever map you saved from C:\savedmaps/map1.txt

Enjoy.
Updates will be more this week.


Title: Update:
Post by: LemonWizard on May 03, 2009, 12:46:34 AM
I'm updating the map editor and tile engine system tonight.
managed to get a screen shot feature in the map editor that takes the whole map's snap shot
Also managed to do some other things.
Created a switch system, I'll turn it into an array later tonight.
And. I made two new tiles, one is a mock door tile and the other one is the door being opened.
Going to expand the map system for this engine so that maps can be connected...

I might implement a proper tile set format, and maybe even the ability to set solids and passables
in the map editor.
Title: Re: Tile Engine and Map Editor System
Post by: LemonWizard on June 11, 2009, 10:56:51 PM
Would anyone be interested in seeing this engine go places?