Basic map editor!
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user