imported binyard stuff
This commit is contained in:
parent
8d2d9ea0e7
commit
906fe44ab5
5 changed files with 806 additions and 12 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue