I do have some prior knowledge from CodeAcademy courses and general youtube videos, but it's not anything to go by in terms of game development.
I've been following this tutorial http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/ (thanks to Avalander for the link)
on the topic of making a simple canvas game.
My problem is this. It doesn't run. After failing to run on my own hand-written code, I opted to copy/pasting the GitHub code instead. Didn't work either.
Maybe it's an issue with the way I connect the .png's to the code? Possibly. However, I've tried:
Downloading the images and putting it in the same folder, naming everything correctly
Including a direct internet link in the HeroImage.src = "http://xxxxxx.png"
Putting the entire .js code into the html file as <script> </script>. Although the images didn't show up, I was able to see the document.write ("This code ran!") I included and the height of the canvas by highlighting it with the cursor.
Might be worth mentioning that I've had tutorials fail me in the past.
This would work: https://www.youtube.com/watch?v=8YBKAsJF9Jg
While this would not: https://www.youtube.com/watch?v=jZh4BMfXv6o
Thanks for reading, gaiz.
Edited by Frolicks, 12 July 2014 - 03:41 PM.