Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fiddling

  • Loading branch information...
commit be058e3ca8ed02e043e553ff38ad49986cfc7eff 1 parent 6603ecd
@presstube authored
View
2  index.html
@@ -61,7 +61,7 @@
</head>
- <body onload="app = new HuntedApp;">
+ <body onload="app = new HuntedApp();">
<canvas id="canvas"></canvas>
</body>
</html>
View
3  src/hunted/Boost.js
@@ -33,7 +33,6 @@
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);
var boostChunk = PTUtils.makeTriangle('#fff', width*mult, width*mult);
boostChunk.x = ship.x;
boostChunk.y = ship.y;
@@ -51,7 +50,7 @@
skin.scaleX = skin.scaleY = (boostFuel / _p.boostFuelLimit);
- // console.log('boost mult: ' + (boostFuel / _p.boostFuelLimit));
+ // console.log('app: ' + window.app);
};
this.setBoostFuel = function(fuel) {
View
3  src/hunted/ForceAbility.js
@@ -8,6 +8,7 @@
var _p = target.props;
+
function applyForce() {
target.x += force.x;
target.y += force.y;
@@ -15,7 +16,7 @@
function applyDrag() {
force.x *= Global.drag;
- force.y *=Global.drag;
+ force.y *= Global.drag;
}
this.update = function() {
View
2  src/hunted/GravityWellRepelBubble.js
@@ -58,6 +58,8 @@
force = (maxForce*multPullPerimeter);
degrees = PTUtils.angleDegrees(target, that);
target.addForce(PTUtils.polarDegrees(force, degrees));
+
+ console.log("app: " + app);
} else if (dist < maxPushPerimeter) {
multPushPerimeter = (dist - minPushPerimeter)/(maxPushPerimeter - minPushPerimeter);
multPushPerimeter = (multPushPerimeter>maxPushPerimeter) ? maxPushPerimeter : multPushPerimeter;
View
2  src/hunted/HuntedApp.js
@@ -3,6 +3,7 @@
var HuntedApp = function() {
var that = this,
+ drag = 0.95,
gameState = "GAME_OVER",
numChasersToSpawn = 1,
paused = false,
@@ -98,6 +99,7 @@
this.projectiles = projectiles;
this.trackingStage = trackingStage;
this.stage = stage;
+ this.drag = drag;
nav.setReference(ship);
Please sign in to comment.
Something went wrong with that request. Please try again.