imported binyard stuff

This commit is contained in:
Carter 2025-03-20 11:09:33 -06:00
parent 8d2d9ea0e7
commit 906fe44ab5
5 changed files with 806 additions and 12 deletions

View file

@ -324,7 +324,7 @@ export default function Editor(props: Props) {
setMouseDown(true);
};
const mouseUp = (e: any) => {
const mouseUp = (_e: any) => {
setMouseDown(false);
if (mode === Mode.NORMAL && selected !== undefined) {
let state = [...moveOrigin];
@ -522,7 +522,7 @@ export default function Editor(props: Props) {
};
const drawBlocks = (context: CanvasRenderingContext2D) => {
blocks.forEach((block, index) => {
blocks.forEach(block => {
if (block.draw) block.draw(context, cameraOffsetX, cameraOffsetY, scale);
});
selected.forEach(block => {