Commit Graph

27 Commits

Author SHA1 Message Date
55f514b92e Fixed pixel grid bug 2021-12-07 23:01:49 +01:00
05beab6929 Removed a few dependencies, refactored pixel-editor.js 2021-12-07 12:11:40 +01:00
21dd47c2b0 Finished refactoring, moved sprite scaling functions in File 2021-12-06 20:12:57 +01:00
b2f5521750 Removed all global variables, worked on File class and put canvas resizing functions in File 2021-12-06 17:37:43 +01:00
07ed24cc6b Made PixelGrid child of the Layer class 2021-11-12 00:09:20 +01:00
aed5f45e64 Reorganized file tree, made Checkerboard a child of Layer 2021-11-11 23:13:15 +01:00
35cbe31a71 Added back brush with new tool system 2021-10-27 10:02:21 +02:00
2ab45f0f66 Fixed #52
The pixel grid is now disabled when the zoom level is too low; in addition, the thickness of the grid now changes depending on the zoom level.
2021-07-24 12:37:34 +02:00
da7ae65ead Removed global documentCreated 2021-07-23 19:05:33 +02:00
526177c6fe Fixed palette loading bug 2021-07-23 18:30:04 +02:00
d3781979b4 Removed layerListEntry from global variables 2021-07-23 13:08:04 +02:00
6e4ab3990d Added LayerList to handle all the functions that involve more than 1 layer
Merge, flatten, add layer, delete layer etc, I'm planning to move a few global variables in Layer to LayerList.
2021-07-22 22:42:41 +02:00
15cca5ffb7 Removed global pixelGridCanvas and currentMouseEvent 2021-07-22 18:57:44 +02:00
cd03923a86 Removed global canvases 2021-07-22 18:11:55 +02:00
6bd6515385 Removed currentGlobalColor 2021-07-22 18:02:19 +02:00
1a6079cc81 Removed "colors" global variable 2021-07-22 16:40:58 +02:00
1b1290c017 Refactored Input.js to Events.js
Started working on Input.js, this time it's used to handle mouse clicks and keyboard shortcuts.
2021-07-20 22:52:51 +02:00
4525519071 Fixed LPE loading bug 2021-07-20 22:09:20 +02:00
3b8dbb5151 Revert "LPE Loading Improvements"
This reverts commit 94add8f3f7.
2021-07-20 21:58:00 +02:00
94add8f3f7 LPE Loading Improvements 2021-07-19 20:08:46 -05:00
f5fc762c5c Restored Startup.js to previous version 2021-07-18 20:08:49 -05:00
7c4fb652cf Deleted _createColorPalette.js, commented files
Moved createColorPalette to the ColorModule, removed _onLoad.js and _onbeforeunload.js, commented the code and labelled with REFACTOR the comments that refere to the refactoring.
2021-07-18 23:17:41 +02:00
b8ae07adff audit fix and pan issue fixed 2021-07-18 10:03:46 -05:00
68dbbdc4c3 Tried fixing pan bug
If you load an LPE file, the pan tool screws up
2021-07-15 23:30:55 +02:00
f76d05bffa Added FileManager and TopMenuModule
The TopMenuModule binds the buttons so that they open the sub menus: at the moment it also binds those events that don't have a proper place yet. FileManager contains all the functions that have something to do with files, that is loading, opening, saving and exporting.
2021-07-15 22:21:19 +02:00
dcf896954f Added Startup IIFE to take care of the creation of a new project
It includes the old _createButton and _newPixel functions and a few private methods to divide the huge newPixel function into smaller chunks depending on their purpose. Those chunks could probably be part of other IIFEs, but we'll think about that in the future.
Fixed Input bug that caused the on function to pass an array of arguments instead of single arguments. Removed data_asdfgasd.hbs
2021-07-15 18:33:19 +02:00
7c80e8f342 Finished refactoring History, added Startup IIFE 2021-07-15 17:10:07 +02:00