level.labs() is live, new map
new level labs is done (it's kinda randomized, so expect it to feel different each run)
(I know there are tons of bugs, but I figure we can find them together :)
foam gun now gets about 20% less ammo
new junk tech: "emergency broadcasting" - plays some fun sounds and gives you health
updated matter.js to a newer build matter-js 0.17.1 by @liabru
(was matter-js 0.14.2 by @liabru 2018-06-11)
matter.js patch notes suggest a possible 30% physics performance increase
decomp.min.js was removed because I don't think it does anything anymore
I did get one error message about it being missing, but there were other bugs too
This commit is contained in:
@@ -1172,7 +1172,7 @@ const mobs = {
|
||||
//replace dead mob with a regular body
|
||||
replace(i) {
|
||||
//if there are too many bodies don't turn into blocks to help performance
|
||||
if (this.leaveBody && body.length < 60 && this.mass < 200 && this.radius > 18) {
|
||||
if (this.leaveBody && body.length < 40 && this.mass < 200 && this.radius > 18) {
|
||||
const len = body.length;
|
||||
const v = Matter.Vertices.hull(Matter.Vertices.clockwiseSort(this.vertices)) //might help with vertex collision issue, not sure
|
||||
body[len] = Matter.Bodies.fromVertices(this.position.x, this.position.y, v);
|
||||
|
||||
Reference in New Issue
Block a user