daily pastebin goal
36%
SHARE
TWEET

renderShip()

RandomGuy32 Jul 19th, 2014 161 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top