1 parent 543fc41 commit ebddeeaCopy full SHA for ebddeea
1 file changed
model/character.test.ts
@@ -3,10 +3,10 @@ import { assertEquals } from "@std/assert"
3
4
Deno.test("Character", async (t) => {
5
await t.step("physicalGridKey", () => {
6
- const mc = new MainCharacter(100, 100, 1, "main/")
+ const mc = new MainCharacter(100, 100, "main/", "main", "down")
7
assertEquals(mc.physicalGridKey, "100.100")
8
9
- const npc = new RandomWalkNPC(200, 200, 1, "npc/")
+ const npc = new RandomWalkNPC(200, 200, "npc/", "npc", "left")
10
assertEquals(npc.physicalGridKey, "200.200")
11
})
12
0 commit comments