| 1 |
diff --git a/files/file.javascript b/files/file.javascript |
| 2 |
index 0965b37..5391797 100644 |
| 3 |
--- a/files/file.javascript |
| 4 |
+++ b/files/file.javascript |
| 5 |
@@ -4,4 +4,3 @@ function(require, exports, module) |
| 6 |
var Key = require("./key") |
| 7 |
- , Direction = require("./direction") |
| 8 |
- , Image = require("./image"); |
| 9 |
+ , Direction = require("./direction"); |
| 10 |
|
| 11 |
@@ -16,4 +15,4 @@ function Player(game) |
| 12 |
|
| 13 |
- this.pixelX = 0; |
| 14 |
- this.pixelY = 0; |
| 15 |
+ this.pixelX = 10; |
| 16 |
+ this.pixelY = 10; |
| 17 |
|
| 18 |
@@ -82,3 +81,3 @@ Player.prototype.moveUp = function() |
| 19 |
Player.prototype.moveLeft = function() { |
| 20 |
- this.x -= 1; |
| 21 |
+ this.x -= 5; |
| 22 |
this.direction = Direction.LEFT; |
| 23 |
@@ -106,3 +105,3 @@ Player.prototype.draw = function(context) |
| 24 |
|
| 25 |
- context.drawImage(this.image.data, offsetX, offsetY, 32, 48, this.pixelX, this.pixelY - 16, 32, 48); |
| 26 |
+ context.drawImage(this.image.data, offsetX, offsetY, 32, 48, this.pixelX, this.pixelY, 32, 48); |
| 27 |
}; |