Another day of updates.
Continued working on the IDE. It's getting more and more polished every update. It'll be finished in no time at this rate!
I went ahead and added a grid system to the icon editor to better display pixel positions when you are zoomed in. Like the grid for the map editor and interface editor, you can disable the grid if you want. Also added a little right-click option View Data URL which brings up a window with the data URL for the icon in it. Added a new fancy popup color picker that lets you pick colors with more options. Also changed the style of the color sliders and a few other things. You can also now use the mouse wheel to change the rgb color values.
Changed the style of the popup windows which allow you to change settings for different tools or create new files and so on to better fit with the general IDE styles. Also remade the create file window a bit to also feel more application-like and fit the IDE style better.
Added the ability to move around maps on the map editor by holding the mouse wheel button down and dragging. Also added the ability to hold the shift key and place diobs at the mouse position rather than having them snap to the tile grid. In the process of allowing this, I basically setup all the systems needed for adding an object instance system, just have to basically make the interface to allow it. For those wondering, an object instance system would allow you to manually edit the variables or properties of a specific diob on the map which would override the default values for that type. I hope to add the object instance system very soon.
I also worked a bit on the engine. I added a system that lets you change the animation of a diob's icon. You can now use diob.animator, diob.setAnimator(pAnimator), and diob.getAnimator() to set and get a diob's animator object. The animator object currently has two variables: speed and reverse. You can set the speed to something above 1 to reduce the delay of the frames of the diob's icon animation or set the speed to something below 0 to increase the delay. You can also set the reverse to true to have the animation play backwards. Below is some example code.
Diob
SomeDiob
animator = {'speed': 2, 'reverse': true}
This will make all types of Diob/SomeDiob animate two times faster and in reverse. You can then set individual animators for specific diobs by using their reference in the code somewhere if you want.
More updates soon!
Continued working on the IDE. It's getting more and more polished every update. It'll be finished in no time at this rate!
I went ahead and added a grid system to the icon editor to better display pixel positions when you are zoomed in. Like the grid for the map editor and interface editor, you can disable the grid if you want. Also added a little right-click option View Data URL which brings up a window with the data URL for the icon in it. Added a new fancy popup color picker that lets you pick colors with more options. Also changed the style of the color sliders and a few other things. You can also now use the mouse wheel to change the rgb color values.
Changed the style of the popup windows which allow you to change settings for different tools or create new files and so on to better fit with the general IDE styles. Also remade the create file window a bit to also feel more application-like and fit the IDE style better.
Added the ability to move around maps on the map editor by holding the mouse wheel button down and dragging. Also added the ability to hold the shift key and place diobs at the mouse position rather than having them snap to the tile grid. In the process of allowing this, I basically setup all the systems needed for adding an object instance system, just have to basically make the interface to allow it. For those wondering, an object instance system would allow you to manually edit the variables or properties of a specific diob on the map which would override the default values for that type. I hope to add the object instance system very soon.
I also worked a bit on the engine. I added a system that lets you change the animation of a diob's icon. You can now use diob.animator, diob.setAnimator(pAnimator), and diob.getAnimator() to set and get a diob's animator object. The animator object currently has two variables: speed and reverse. You can set the speed to something above 1 to reduce the delay of the frames of the diob's icon animation or set the speed to something below 0 to increase the delay. You can also set the reverse to true to have the animation play backwards. Below is some example code.
Diob SomeDiob animator = {'speed': 2, 'reverse': true}
This will make all types of Diob/SomeDiob animate two times faster and in reverse. You can then set individual animators for specific diobs by using their reference in the code somewhere if you want.
More updates soon!