Hey and welcome.
This is going to be a fun section where we're going to build a car game from scratch using JavaScript
and it's also going to be fairly visual where you need to drive the car to avoid the other cars, use
the keyboards to move your car element around.
So random movements of the other cars.
So these are the obstacles that you cannot hit.
We're also going to be introducing the request animation frame, which is going to give us the ability
to iterate through and loop through the gameplay, as well as movement with the keyboard and key events
and then success and style manipulation, which is going to be fairly heavy on this game because it
is a visual game and collision detection.
So that's another new one.
And this is used quite often within games to check, to see if one is one element is overlapping another.
So let's let's check this one.
So here's the card game and we need to press here to start.
And there we've got our cars.
We've got the enemy cars that are the obstacles that we have to try to avoid.
If we hit any of those, then the game is over.
We get a score on the game and we can always start again.
And then you can also move up.
You can move backwards a little bit.
And the objective, again, to try to avoid the other cars on the road.
And that's what you're trying to do with the card game.
So you can move up, you can move down a bit and these are restricted so you can adjust and tweak these
as needed.
You can also even add in even more obstacle cars and update the graphics.
So I know you're excited for this one.
Let's dive right in and start creating this.