Make tabs for code and sprite editors

This commit is contained in:
dylan
2023-05-05 16:39:51 -07:00
parent a3abb0d2d3
commit 9d2dc99a32
4 changed files with 63 additions and 11 deletions

View File

@ -18,6 +18,10 @@ export const drawSprite = (x: number, y: number, spr: number) => {
setPixelsInRect(x, y, 8, sprites[spr]);
}
export const drawIcon = (x: number, y: number, icon: Array<number>, color: number) => {
setPixelsInRect(x, y, 8, icon.map(n => n*color));
}
export const drawChar = (x: number, y: number, char: string, color: number) => {
setPixelsInRect(x, y, 4, font[char].map(n => n*color));
}