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