Add some instructional text
This commit is contained in:
parent
471fa9e0b6
commit
64c889e16a
@ -1,5 +1,5 @@
|
||||
import { clearScreen, fillRect } from "./window.ts";
|
||||
import { drawIcon } from "./builtins.ts";
|
||||
import { drawIcon, drawText } from "./builtins.ts";
|
||||
import { COLOR } from "./colors.ts";
|
||||
import { getSheet, setSheet } from "./sheet.ts";
|
||||
import { mouseClick, mousePos } from "./mouse.ts";
|
||||
@ -9,7 +9,7 @@ import { useSpritesheet } from "./builtins.ts";
|
||||
import { codeIcon, spriteIcon } from "./icons.ts";
|
||||
|
||||
const gridX = 8;
|
||||
const gridY = 16;
|
||||
const gridY = 40;
|
||||
const cellW = 8;
|
||||
const cellH = 8;
|
||||
const gapX = 8;
|
||||
@ -39,6 +39,9 @@ const draw = () => {
|
||||
useSpritesheet(page.activeSheet);
|
||||
fillRect(0, 8, 128, 112, COLOR.BLACK);
|
||||
|
||||
drawText(4, 16, "Click an icon below to choose");
|
||||
drawText(4, 16+7, "this sheet's type...");
|
||||
|
||||
// Draw the spritesheet
|
||||
sheetTypes.forEach((sheetType, i) => {
|
||||
const sx = gridX+(cellW+gapX)*(i%6);
|
||||
|
Loading…
x
Reference in New Issue
Block a user