Permalink
Browse files

Fiddling

  • Loading branch information...
presstube committed Nov 7, 2011
1 parent ba5142f commit 1961bac558c19dbe111c7d2953680dc8e2308805
Showing with 3 additions and 5 deletions.
  1. +1 −1 src/hunted/HuntedApp.js
  2. +2 −4 src/hunted/Splat.js
View
@@ -74,7 +74,7 @@
scaleStage.addChild(trackingStage);
scaleStage.addChildAt(parallaxScroller, 0);
- scaleStage.setScaleMultiplier(0.3);
+ scaleStage.setScaleMultiplier(0.5);
trackingStage.addChild(itemScroller);
trackingStage.addChild(player);
View
@@ -16,14 +16,14 @@
var splat = this;
- for(var i = 0; i < 10; i++) {
+ for(var i = 0; i < 20; i++) {
makeChunk(i);
}
function makeChunk(i) {
var chunk = PTUtils.makeTriangle("#f00", 10, 10);
var chunkForceAbility = new ForceAbility({target: chunk, app: app});
- chunk.addForce(PTUtils.polarDegrees(Math.random()*10, Math.random()*360));
+ chunk.addForce(PTUtils.polarDegrees(Math.random()*50, Math.random()*360));
chunk.addForce(props.force);
chunk.rotAmount = Math.random()*5 - Math.random()*5;
chunk.tick = function() {
@@ -40,8 +40,6 @@
};
-
-
window.Splat = Splat;
}(window));

0 comments on commit 1961bac

Please sign in to comment.