Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Testing shorter wrapRadius for mobile performance.

  • Loading branch information...
commit 453623239f799525fd8f5b95cfdb13d77dc5bb4e 1 parent 7bdcd50
@presstube authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  src/hunted/Boost.js
  2. +3 −3 src/hunted/HuntedApp.js
View
2  src/hunted/Boost.js
@@ -30,7 +30,7 @@
force = PTUtils.polarDegrees(_p.boostThrust*mult, ship.rotation);
ship.addForce(force);
boostFuel--;
- var shudder = 20;
+ var shudder = 15;
app.stage.x += Math.random()*shudder*mult - Math.random()*shudder*mult;
app.stage.y += Math.random()*shudder*mult - Math.random()*shudder*mult;
console.log("widd: " + skin.width);
View
6 src/hunted/HuntedApp.js
@@ -6,7 +6,7 @@
gameState = "GAME_OVER",
numChasersToSpawn = 1,
paused = false,
- wrapRadius = 3000,
+ wrapRadius = 1000,
chasers = [],
projectiles = [],
canvas = document.getElementById("canvas"),
@@ -23,7 +23,7 @@
trackingStage : trackingStage,
wrapRadius: wrapRadius,
nav: nav,
- numItems: 50
+ numItems: 20
}),
ship = new Ship({
@@ -52,7 +52,7 @@
scaleStage: scaleStage,
trackingStage: trackingStage,
wrapRadius: wrapRadius,
- numItems: 20,
+ numItems: 5,
ship: ship
});
Please sign in to comment.
Something went wrong with that request. Please try again.