Skip to content
Browse files

different pics for different players

  • Loading branch information...
1 parent 9501459 commit b40b538f8e6c40e512282f44675f8922f00f3a82 @ChrisJan00 committed
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
BIN graphics/Player1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN graphics/Player2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1 main.js
@@ -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
2 player.js
@@ -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.
Something went wrong with that request. Please try again.