Permalink
Browse files

different pics for different players

  • Loading branch information...
ChrisJan00 committed Feb 4, 2011
1 parent 9501459 commit b40b538f8e6c40e512282f44675f8922f00f3a82
Showing with 2 additions and 1 deletion.
  1. BIN graphics/Player1.png
  2. BIN graphics/Player2.png
  3. +1 −0 main.js
  4. +1 −1 player.js
View
Binary file not shown.
View
Binary file not shown.
View
@@ -2,6 +2,7 @@
GLOBAL.gameControl = new GameControl();
GLOBAL.player1 = new Player(120,420);
GLOBAL.player2 = new Player(480,420);
+GLOBAL.player2.animationStrip.src = "graphics/Player2.png";
GLOBAL.level = new Level();
function loaderProgress()
View
@@ -10,7 +10,7 @@ var Player = function(x,y) {
// ] );
self.keys = new( function() { this.check = function( str ) { return false; } } );
self.animationStrip = new Image();
- self.animationStrip.src = "graphics/Player.png";
+ self.animationStrip.src = "graphics/Player1.png";
self.x = x;
self.y = y;

0 comments on commit b40b538

Please sign in to comment.