This is an essentially (but not rigorously) correct crash course in JavaScript.
It is intended to teach you just enough JavaScript so that you can start to program games using open source HTML5 game frameworks such as enchant.js, Phaser, and melonJS.
It assumes you don’t know anything about programming.
What is a computer system?
Computer systems are made up of:
Input
Output
Processing
Storage
Some programming concepts built on top of computer systems include:
Functions
Data structures
Objects
Approach
We will explore each of the above in the context of JavaScript programming in the following order:
Output
Input
Storage
Processing
Functions
Data Structures
Objects
When discussing the first concepts, we may have to introduce tiny bits of other concepts, but we’ll keep it to an absolute minimum.
Expectations
You won’t be able to do any decent programming until you’ve made it part of the way through Processing—so be patient!
By the time you’ve finished Processing, you’ll be able to write a simple text-based role-playing game.
By the time you’ve finished Functions and Data Structures, you will be able to write more complex text-based or number-based games.
When you have finished Objects, you will be able to structure your code so that you can write even more complex games.