My Map Editor
Moderator: Coders of Rage
- xiphirx
- Chaos Rift Junior
- Posts: 324
- Joined: Mon Mar 22, 2010 3:15 pm
- Current Project: ******** (Unkown for the time being)
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Contact:
My Map Editor
A little interesting fact about this project, I started it when I was a beginner with C++, and worked on it until now. Im trying not to change any code to create a timline of sorts of my coding methods XD.
It would be great if you guys could try it out and report bugs, thanks.
This post was taken from another forum
-----------------------------------------------------------------------
CSPSPMEP Public Beta 2
Features in this beta:
- Loading Maps
- Rotating the map
- Flipping the map
- Choosing a tile
- Scrolling through tiles
- Changing the map width and height
- Drag Fill
- Bucket Fill
- Grid
- Saving maps (saves tile data ONLY, all other data that was on the map will be ERASED)
- Open multiple maps at once
- New GUI
Controls:
q - toggle map information
w a s d - scroll around the map
x - (HOLD) bring up tile selection
v - toggle grid
n - increase grid
m - decrease grid
g - bucket fill
mouse wheel - scroll through tiles
mmb + drag - dragfill
Feedback
- Please post any bugs you find
- Please rate the usability
Known Bugs
- MEP Crashes upon exit
- Background fill doesn't fill on smaller maps
Download: http://arse.voidteam.net/Personal/CSPSPMEPPUBLICBETA2.zip
It would be great if you guys could try it out and report bugs, thanks.
This post was taken from another forum
-----------------------------------------------------------------------
CSPSPMEP Public Beta 2
Features in this beta:
- Loading Maps
- Rotating the map
- Flipping the map
- Choosing a tile
- Scrolling through tiles
- Changing the map width and height
- Drag Fill
- Bucket Fill
- Grid
- Saving maps (saves tile data ONLY, all other data that was on the map will be ERASED)
- Open multiple maps at once
- New GUI
Controls:
q - toggle map information
w a s d - scroll around the map
x - (HOLD) bring up tile selection
v - toggle grid
n - increase grid
m - decrease grid
g - bucket fill
mouse wheel - scroll through tiles
mmb + drag - dragfill
Feedback
- Please post any bugs you find
- Please rate the usability
Known Bugs
- MEP Crashes upon exit
- Background fill doesn't fill on smaller maps
Download: http://arse.voidteam.net/Personal/CSPSPMEPPUBLICBETA2.zip
StarCraft II Zerg Strategy, open to all levels of players!
Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of
Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of
-
- Chaos Rift Demigod
- Posts: 991
- Joined: Thu Nov 13, 2008 3:16 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Amiga, PSOne, NDS
- Programming Language of Choice: C++
- Location: Sweden
Re: My Map Editor
Tried it out and it works perfectly fine, didn't find any new bugs. I'm impressed with the fill tool, I've checked out algorithms for it but never gotten far enough to implement it in an application.
- xiphirx
- Chaos Rift Junior
- Posts: 324
- Joined: Mon Mar 22, 2010 3:15 pm
- Current Project: ******** (Unkown for the time being)
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Contact:
Re: My Map Editor
The algo Im using is recursive, not quite efficient, but it gets the job done.pritam wrote:Tried it out and it works perfectly fine, didn't find any new bugs. I'm impressed with the fill tool, I've checked out algorithms for it but never gotten far enough to implement it in an application.
Code: Select all
Flood-fill (node, target-color, replacement-color):
1. If the color of node is not equal to target-color, return.
2. Set the color of node to replacement-color.
3. Perform Flood-fill (one step to the west of node, target-color, replacement-color).
Perform Flood-fill (one step to the east of node, target-color, replacement-color).
Perform Flood-fill (one step to the north of node, target-color, replacement-color).
Perform Flood-fill (one step to the south of node, target-color, replacement-color).
4. Return.
StarCraft II Zerg Strategy, open to all levels of players!
Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of
Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of
-
- Chaos Rift Demigod
- Posts: 991
- Joined: Thu Nov 13, 2008 3:16 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Amiga, PSOne, NDS
- Programming Language of Choice: C++
- Location: Sweden
Re: My Map Editor
Yeah, that's my source right there.xiphirx wrote:http://en.wikipedia.org/wiki/Flood_fill
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: My Map Editor
so basically you went one line at a time?xiphirx wrote:The algo Im using is recursive, not quite efficient, but it gets the job done.pritam wrote:Tried it out and it works perfectly fine, didn't find any new bugs. I'm impressed with the fill tool, I've checked out algorithms for it but never gotten far enough to implement it in an application.
http://en.wikipedia.org/wiki/Flood_fillCode: Select all
Flood-fill (node, target-color, replacement-color): 1. If the color of node is not equal to target-color, return. 2. Set the color of node to replacement-color. 3. Perform Flood-fill (one step to the west of node, target-color, replacement-color). Perform Flood-fill (one step to the east of node, target-color, replacement-color). Perform Flood-fill (one step to the north of node, target-color, replacement-color). Perform Flood-fill (one step to the south of node, target-color, replacement-color). 4. Return.
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
- GroundUpEngine
- Chaos Rift Devotee
- Posts: 835
- Joined: Sun Nov 08, 2009 2:01 pm
- Current Project: mixture
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Location: UK
Re: My Map Editor
Nice editor!
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: My Map Editor
That would probably be extremely useful for a level editor (seeing how the whole level looks overall, and also being able to edit more precisely), and if you're using OpenGL it'd be a snap. I think you should definitely try implementing it.GroundUpEngine wrote:What about a Zoom In/Out feature? :P
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
- xiphirx
- Chaos Rift Junior
- Posts: 324
- Joined: Mon Mar 22, 2010 3:15 pm
- Current Project: ******** (Unkown for the time being)
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Contact:
Re: My Map Editor
Wait, did you download the map from my website? I think I only included one full map... (the one that opens when you open the editor)GroundUpEngine wrote:Nice editor!
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
Im not using openGL, I still haven't wrapped my head around it
StarCraft II Zerg Strategy, open to all levels of players!
Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of
Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of
- GroundUpEngine
- Chaos Rift Devotee
- Posts: 835
- Joined: Sun Nov 08, 2009 2:01 pm
- Current Project: mixture
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Location: UK
Re: My Map Editor
kk, apart from that no problems with editor. Also OpenGL takes quite a while to learn so dwxiphirx wrote:Wait, did you download the map from my website? I think I only included one full map... (the one that opens when you open the editor)GroundUpEngine wrote:Nice editor!
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
Im not using openGL, I still haven't wrapped my head around it
- xiphirx
- Chaos Rift Junior
- Posts: 324
- Joined: Mon Mar 22, 2010 3:15 pm
- Current Project: ******** (Unkown for the time being)
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Contact:
Re: My Map Editor
Okay then.GroundUpEngine wrote:kk, apart from that no problems with editor. Also OpenGL takes quite a while to learn so dwxiphirx wrote:Wait, did you download the map from my website? I think I only included one full map... (the one that opens when you open the editor)GroundUpEngine wrote:Nice editor!
When I try to open another map e.g. de_inferno_source map, the debug gets to "LOADING TILE.PNG" then crashes?!
What about a Zoom In/Out feature? :P
Im not using openGL, I still haven't wrapped my head around it
I'm surprised it hasn't crashed yet (except for when you exit D:)
StarCraft II Zerg Strategy, open to all levels of players!
Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of
Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of
- mv2112
- Chaos Rift Junior
- Posts: 240
- Joined: Sat Feb 20, 2010 4:15 am
- Current Project: Java Tower Defence Game
- Favorite Gaming Platforms: N64/Xbox 360/PC/GameCube
- Programming Language of Choice: C/++, Java
- Location: /usr/home/mv2112
- Contact:
Re: My Map Editor
Doesn't work under Wine
Damn visual studio dependencies...
Damn visual studio dependencies...
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: My Map Editor
VirtualBox!mv2112 wrote:Doesn't work under Wine
Damn visual studio dependencies...
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
- mv2112
- Chaos Rift Junior
- Posts: 240
- Joined: Sat Feb 20, 2010 4:15 am
- Current Project: Java Tower Defence Game
- Favorite Gaming Platforms: N64/Xbox 360/PC/GameCube
- Programming Language of Choice: C/++, Java
- Location: /usr/home/mv2112
- Contact:
Re: My Map Editor
touche...Ginto8 wrote:VirtualBox!mv2112 wrote:Doesn't work under Wine
Damn visual studio dependencies...