Skip to content

Commit c770f29

Browse files
committed
chore: fix lint
1 parent 8effb87 commit c770f29

9 files changed

Lines changed: 224 additions & 45 deletions

File tree

editor/editor.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ class ToolManager {
213213
null,
214214
0,
215215
0,
216+
// deno-lint-ignore no-explicit-any
216217
tool.type as any,
217218
tool.def,
218219
null,
@@ -312,7 +313,7 @@ function updateDocument(b: FieldBlock) {
312313
const SWITCH_ACTIVE = "bg-cyan-400"
313314
const SWITCH_ACTIVE_CANVAS = "opacity-70"
314315

315-
async function Toolbox({ el, on, subscribe }: Context<HTMLElement>) {
316+
function Toolbox({ el, on, subscribe }: Context<HTMLElement>) {
316317
subscribe(currentTool, (tool) => {
317318
for (const child of Array.from(el.children)) {
318319
const firstChild = child.firstElementChild
@@ -569,6 +570,7 @@ function FieldCellsCanvas({ on, el, subscribe }: Context<HTMLCanvasElement>) {
569570
})
570571
}
571572

573+
/*
572574
function FieldActorsCanvas(
573575
{ on, el, subscribe }: Context<HTMLCanvasElement>,
574576
) {
@@ -578,6 +580,7 @@ function FieldActorsCanvas(
578580
function FieldItemsCanvas({ on, el, subscribe }: Context<HTMLCanvasElement>) {
579581
const canvasWrapper = new CanvasWrapper(el)
580582
}
583+
*/
581584

582585
function FieldPropCanvas(
583586
{ el, on, subscribe }: Context<HTMLCanvasElement>,
@@ -609,6 +612,7 @@ function FieldPropCanvas(
609612
new PropSpawnInfo(
610613
i,
611614
j,
615+
// deno-lint-ignore no-explicit-any
612616
tool.type as any,
613617
tool.def,
614618
),

game/field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ export function splashColor(
673673
light: number,
674674
alpha: number = 0.40,
675675
radius: number = 2,
676-
rng: () => number = Math.random,
676+
_rng: () => number = Math.random,
677677
): void {
678678
if (radius < 1) {
679679
return

game/game-screen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function GameScreen({ el, query }: Context) {
8989
const field = new Field(query(".field")!, activateScope, deactivateScope)
9090
field.actors.add(me)
9191

92-
signal.centerGrid10.subscribe(({ i, j }) => {
92+
signal.centerGrid10.subscribe(() => {
9393
field.checkBlockLoad(me.i, me.j, viewScope)
9494
field.checkBlockUnload(me.i, me.j)
9595
})

static/map/block_0.0.json

Lines changed: 217 additions & 42 deletions
Large diffs are not rendered by default.

static/prop/i.png

0 Bytes
Loading

static/prop/j.png

-4 Bytes
Loading

static/prop/p.png

7 Bytes
Loading

static/prop/w.png

2 Bytes
Loading

static/prop/x.png

7 Bytes
Loading

0 commit comments

Comments
 (0)