Skip to content

Commit 55e1e88

Browse files
committed
refactor: create class for character moves
1 parent 26d9596 commit 55e1e88

4 files changed

Lines changed: 189 additions & 141 deletions

File tree

editor/webview.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,6 @@ function getCoordinatesFromMouseEvent(
483483
return { i, j }
484484
}
485485

486-
const html = String.raw
487-
488486
function FieldObjectSpawnsCanvas(
489487
{ el, on, subscribe }: Context<HTMLCanvasElement>,
490488
) {

game/main-character.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { DIRS, DOWN, LEFT, RIGHT, UP } from "../util/dir.ts"
22
import { loadImage } from "../util/load.ts"
33
import { Input, inputQueue } from "./ui/input.ts"
4-
import { Character, spawnCharacter } from "../model/character.ts"
5-
import type { IField, Move, MovePlan } from "../model/types.ts"
4+
import { Character, Move, spawnCharacter } from "../model/character.ts"
5+
import type { IField, MovePlan } from "../model/types.ts"
66
import * as signal from "../util/signal.ts"
77
import { bindToggleFullscreenOnce } from "../util/fullscreen.ts"
88
import { seed } from "../util/random.ts"

0 commit comments

Comments
 (0)