Removed unused physics code

This commit is contained in:
Jeremiah Billmann
2013-07-09 21:32:22 -04:00
parent cd0a076424
commit faf5434d23
3 changed files with 4 additions and 25 deletions
-21
View File
@@ -1,26 +1,5 @@
(function(exports){
exports.onUpdatePlayerPhysics = function (id, state, inputs, deltaTime) {
var i = 0;
if (!state.x && !state.y) {
state.x = 0;
state.y = 0;
}
for (i = 0; i < inputs.length; i ++) {
if (inputs[i].input === 'left') {
state.x -= (50 * deltaTime);
} else if (inputs[i].input === 'right') {
state.x += (50 * deltaTime);
} else if (inputs[i].input === 'down') {
state.y += (50 * deltaTime);
} else if (inputs[i].input === 'up') {
state.y -= (50 * deltaTime);
}
}
return state;
};
exports.getNewPlayerState = function (state, inputs, deltaTime) {
var i = 0;