I'm trying to teach myself to program some basic engines. I've been following this tutorial: http://www.playfuljs.com/a-first-person-engine-in-265-lines/ to get a decent idea of a basic way to render objects.
I'm confused, though, about certain items. I remember that in JavaScript, one must declare and define variables and objects, to me it doesn't seem like this programmer defines objects and methods like "column" and "step". For example, when he tries to find a ray's angle, he has these three lines of code:
var x = column / this.resolution - 0.5;
var angle = Math.atan2(x, this.focalLength);
var ray = map.cast(player, player.direction + angle, this.range);
The problem is, I'm trying to connect the dots and see how he defines "column", "angle", and "ray" and how they fit into the code at large, but in his tutorial I don't see those definitions everywhere! So I have no idea how this code seems to fit together. Is there something I'm missing? Some library or built-in stuff with Javascript?