Skip to content

Commit 4aee669

Browse files
committed
status update
1 parent 3a5fbc0 commit 4aee669

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

general/wasm/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {d} from "../node_modules/dom99/source/dom99.js";
1+
import * as d from "../node_modules/dom99/source/dom99.js";
22
import {generateRandomWorld, generateSimpleWorld, drawWorld, updateWorld} from "./world.js";
33
import {reduceDraw, initializeCanvas} from "./canvas.js";
44

general/wasm/js/world.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
randomFloat
1313
} from "../node_modules/utilsac/random.js";
1414
import {
15-
fillArrayWithFunctionResult
15+
arrayWithResults
1616
} from "../node_modules/utilsac/utility.js";
1717
import {Collisions, Circle, Polygon, Point} from "../node_modules/collisions/src/Collisions.mjs";
1818

@@ -51,7 +51,7 @@ const generateRandomWorld = function (width = 300, height = 300) {
5151
height,
5252
creatures : undefined
5353
};
54-
world.creatures = fillArrayWithFunctionResult(
54+
world.creatures = arrayWithResults(
5555
function () {
5656
return generateRandomCreature(world.width, world.height);
5757
},

general/wasm/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

general/wasm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {},
1111
"dependencies": {
1212
"collisions": "^2.0.13",
13-
"dom99": "^14.4.0",
14-
"utilsac": "^7.0.0"
13+
"dom99": "^17.3.2",
14+
"utilsac": "^9.7.0"
1515
}
1616
}

general/wasm/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# wasm
22

3+
not yet finished
4+
35
## to do
46

57
use colision system

0 commit comments

Comments
 (0)