Skip to content

Instantly share code, notes, and snippets.

@prail
Last active September 27, 2017 04:05
Show Gist options
  • Save prail/42d4615250db044cf2c27a50a8473e4e to your computer and use it in GitHub Desktop.
Save prail/42d4615250db044cf2c27a50a8473e4e to your computer and use it in GitHub Desktop.
Things to begin with, when starting JS.

Things To Read

(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. ;)

Things To Be Careful Of

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

Stuff That's Cool

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment