Jump to content
  • Advertisement
  • entries
    154
  • comments
    388
  • views
    165843

A few improvments

Sign in to follow this  
O-san

455 views

Made two rather important editor improvements today. The first was quite simple; the possibility to set a working directory. The working directory deals with how resource paths are handled. Before the working directory was the editor path by default. As an example a graphic file located in:
"c:\nimrod\graphics\picture.png"
would be saved as...
"graphics\picture.png"
This is all well if you feel like using copies of your level project's resources. But if you don't want copies and had a graphic file located in:
c:\my_level\graphics\picture.png
The editor would get the relative path to that directory... so in this case the path would become..
..\my_level\graphics\picture.png
Not so good. So I implemented a button where the user can browse for the working/project directory. Now if I would browse for the folder
"c:\my_level"
and use it as the working directory the resource file names would become
"graphics\picture.png"
Leaving out "..\my_level"-part. Neat!

The other thing is undo/redo. I only got it half working right now but I will aim to have it fully operational within a day or two. At first I will implement a single step undo/redo that only works for added/deleted objects, sounds, zones and characters. Leaving out changes to the objects properties and any name changes and similar (mind you that this is my first undo attempt). I think this will help me greatly when building maps. Maybe later I will extend the undo with multiple steps and account for name changes and properties, we'll see...

Lastly, a picture to make this post a little prettier :-)


4x Antialias does magic! :D
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!