Basic map editor!

This commit is contained in:
dylan
2023-05-09 19:42:02 -07:00
parent 194209f18f
commit f8b3f5d645
7 changed files with 197 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import { getSheet } from "./sheet.ts";
import { mouseClick, mousePos } from "./mouse.ts";
import { getCart } from "./cart.ts";
import { font } from "./font.ts";
import { codeIcon, spriteIcon } from "./icons.ts";
import { codeIcon, spriteIcon, mapIcon } from "./icons.ts";
import { reGridWithGap } from "./util.ts";
const fontHeight = font.height;
@@ -44,6 +44,7 @@ const draw = () => {
const icon = {
code: codeIcon,
spritesheet: spriteIcon,
map: mapIcon,
none: null,
}[sheet.sheet_type];
if (icon) {