Skip to content

Commit

Permalink
status update
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosSacASac committed Jan 30, 2019
1 parent 3a5fbc0 commit 4aee669
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion general/wasm/js/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {d} from "../node_modules/dom99/source/dom99.js";
import * as d from "../node_modules/dom99/source/dom99.js";
import {generateRandomWorld, generateSimpleWorld, drawWorld, updateWorld} from "./world.js";
import {reduceDraw, initializeCanvas} from "./canvas.js";

Expand Down
4 changes: 2 additions & 2 deletions general/wasm/js/world.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
randomFloat
} from "../node_modules/utilsac/random.js";
import {
fillArrayWithFunctionResult
arrayWithResults
} from "../node_modules/utilsac/utility.js";
import {Collisions, Circle, Polygon, Point} from "../node_modules/collisions/src/Collisions.mjs";

Expand Down Expand Up @@ -51,7 +51,7 @@ const generateRandomWorld = function (width = 300, height = 300) {
height,
creatures : undefined
};
world.creatures = fillArrayWithFunctionResult(
world.creatures = arrayWithResults(
function () {
return generateRandomCreature(world.width, world.height);
},
Expand Down
12 changes: 6 additions & 6 deletions general/wasm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions general/wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {},
"dependencies": {
"collisions": "^2.0.13",
"dom99": "^14.4.0",
"utilsac": "^7.0.0"
"dom99": "^17.3.2",
"utilsac": "^9.7.0"
}
}
2 changes: 2 additions & 0 deletions general/wasm/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# wasm

not yet finished

## to do

use colision system
Expand Down

0 comments on commit 4aee669

Please sign in to comment.