(To learn javascript of course.)
To run your JavaScript I recommend using gist or github pages. With gist you just make a gist and then replace the gist.github.com part of the url with bl.ocks.org it will automagically run your code.
-
Basics -- Hey this is probably better than codeacademy any day.
-
MDN Canvas Tutorial -- Drawing stuff to the screen. Sort of like pygame.
-
Basics Of Websockets -- This is for multiplayer type thingies. ".io" games use these for multiplayer. Scratch also uses them now for cloud variables. A while ago it didn't. ;)
JavaScript is very similar to Python. In some ways it's almost the same. With variables it's not. You've got to be careful when defining variables. Doing something like:
foo = 123;
Isn't usually a good idea. Most times you'll want to do this:
var bar = 123;
JavaScript itself is tightly coupled with HTML. Which is pretty easy to learn (And to get the hang of.) If you read the links I gave you above you should be pretty well off to game development in JavaScript. :D
While I've been wandering around making stuff with JavaScript I've found a few really cool websites and articles that are just awesome in general. Here's the list:
- bl.ocks.org -- This website is awesome! It turns your gists into runnable code!
- Pastebin -- Really great for sharing code!
- Codpen -- Words cannot describe how awesome this website is.
- Download.js -- This library is awesome for downloading files to someone's browser. I used it for the adventures in oddessey thing that I gave you.
Best regards,Andrew.