(minor update: I made a new system for fps that averages over multiple frames for the next version, but I retroactively added it to this one) This will eventually be used for other, more specialized versions for things like isometric, side scrolling, and top down. for now, it is just an editor with no actual game functionality other than layers, and animations. WASD keys to scroll, e to show/hide the editor window, click to replace a tile while the editor grid is shown, up/down arrows to change layer (there is only 2 in this one), left/right arrow to change which tile you are going to place in the editor, and R to generate a new map. feel free to copy this and adapt it to your needs.
made entirely by me, bug fixes by @n-clue_TestAcc (editor not placing tile in correct position) and @RokCoder (tile engine was jittery when scrolling horizontally and broke when scrolling vertically)