Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - isometric map editor

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Aug 2012 22:47 Edited at: 12th Aug 2012 22:49
Thought I'd share this with everyone because I know I'm not the first nor will I be the last person who will inquire about isometric games. So here's a simple demo.

The loadTilemap and wuline functions might look long or complicated, but really have nothing to do with the program. Wuline is just faster than DB's line command and provides me with better frame rates for the demo. And the tilemap function just makes it easier for me to load and splice a tilemap image.

Hold spacekey to display tilemap and use the mouse to select a tile. Arrow keys scroll the map. Left click to place a tile on the map, right click to remove a tile.

Attached is the tilemap image.



"You're not going crazy. You're going sane in a crazy world!" ~Tick

Attachments

Login to view attachments
Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 13th Aug 2012 02:28
That's really awesome. Where is the tileset from?

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Aug 2012 07:53 Edited at: 13th Aug 2012 22:21
Tiles came from here:

http://opengameart.org/content/grass-and-water-tiles



Screenshot from DBP:


"You're not going crazy. You're going sane in a crazy world!" ~Tick
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 13th Aug 2012 21:22
@ Phaelax: i see recently you posting and asking questions about Isometrics.
are you planning something new?

Advanced Updater for your games!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Aug 2012 22:20
Not really. But every time I've started a tile based game, people start saying how sweet it'd be if it was only isometric. Now I have something to work with, but no ideas what to make! Maybe change my zelda remake into isometric? By the way, if anyone wondered whatever happened to that project, the source code was on my laptop that was stolen last year. I have an older version of the code on my desktop but I'd have to redo a bunch of work.


I updated the code slightly, draws the grid differently. I guess wuline is only faster than line for shorter lengths (mainly because of the AA). I removed it and cut down on the lines drawn to show the grid. Now I can have a 50x50 map and still keep 100+ fps. Also added the global variables of map height and width so you can easily change the map size.




"You're not going crazy. You're going sane in a crazy world!" ~Tick

Attachments

Login to view attachments
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 13th Aug 2012 23:11
i wish you gl with the new project. whatever it would be..
you still can make a battlefield heroes of Might and magic III -like.

Advanced Updater for your games!
seppgirty
FPSC Developer
14
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 14th Aug 2012 01:50
awesome work Phaelax. is that just a tile editor? do you plan on expanding on it?

gamer, lover, filmmaker
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th Aug 2012 02:41
I'd like to get a whole engine built around this, but at this time no actual game is planned.

"You're not going crazy. You're going sane in a crazy world!" ~Tick
seppgirty
FPSC Developer
14
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 14th Aug 2012 23:10
what ever you do with it. keep us informed....

gamer, lover, filmmaker

Login to post a reply

Server time is: 2024-04-19 22:34:25
Your offset time is: 2024-04-19 22:34:25