Game Project – Editor

20150817: Editor

I´ve decided to remove the toolbar and focus more on a complete editor. So I replaced all form-elements with a canvas dedicated for handling the editor. In this way I can make images for every area that will act as a button and that button will automatically be integrated with my scaling-script.

20150819: Resize & Values

I replaced the fields for width/height/depth with buttons and submenus.


20150820: Toolbar replaced

Now the toolbar-functions are finally available at the editor and the toolbar is removed.




20150821: Updating

Instead of reloading all objects after a change, all changes will affect the loaded object-array and then the database will be updated without any reload. New objects will have their ID collected in the creation-process and then appear selected so updating and relocating is no longer necessary. When a cell is created in or removed from a building, the building will remain selected.

20150822: Organizing code

I´ve spent some time rearranging the code.

TheNestConsole – contain all elements, event-listeners and functions for input & feedback.
TheNestData – contain JSON-parser for objects and requests involving SQL-data.
TheNestLogic – contain functions for objects. (resize, add, kill)
TheNestPointer – contain event-listeners for mouse/touch and functions for selecting, zooming, pressing at what location and so on…
TheNestEditor – contain everything that involves the new editor. The dedicated canvas and functions for displaying info, menu-navigation, selecting cells in buildings and editing values on objects.

Leave a comment

Design a site like this with WordPress.com
Get started