Advertisement
RandomGuy32

renderShip()

Jul 19th, 2014
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function renderShip() {
  2.     // this looks horrible, but it's just for testing, so it's fine I guess
  3.     window.alert("I'M WORKING 1");
  4.     // spriteShip.onload = function() {
  5.         window.alert("I'M WORKING 2");
  6.         ctx.drawImage(spriteShip, ship.spritePosX * 16, ship.spritePosY * 16, ship.width, ship.height, ship.posX, ship.posY, ship.width, ship.height);
  7.     // }
  8.     spriteShip.onError = function(){alert('Error!');};
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement