Book Image

Build a Car Driving Game from Scratch using JavaScript [Video]

By : Laurence Svekis
Book Image

Build a Car Driving Game from Scratch using JavaScript [Video]

By: Laurence Svekis

Overview of this book

<p>Understand how you can build a fully functional car racing game using just JavaScript. If you’re a beginner, this course is perfect for you to get to grips with creating interactive web applications. It demonstrates how to build a website-based car racing game and provides the source code and detailed instructions with which you can build your version of the game. This course is designed for anyone who wants to build interactive content and practice applying JavaScript in development.</p><p>You’ll cover the following topics:</p><p>• Element selection and manipulation using JavaScript</p><p>• Updating element style properties to move elements on your webpage</p><p>• Adding event listeners to create interactive content</p><p>• Keyboard events used to move elements</p><p>• Collision detection between two elements on the page</p><p>• Using the animation frame function in JavaScript</p><p>• Creating elements dynamically</p><p>• Applying logic for game functions</p><p></p><p>Build dynamic and interactive web applications with JavaScript—no libraries or shortcuts involved. Core knowledge of JavaScript and familiarity with HTML and CSS is a prerequisite, as the course covers only JavaScript relevant to the developing the game. Start building your version of the game today! </p><p></p><p>All the code and supporting files for this course are available at- https://github.com/PacktPublishing/Build-a-Car-Driving-Game-from-Scratch-using-JavaScript</p>
Table of Contents (2 chapters)
Chapter 2
JavaScript building a car driving game from scratch
Content Locked
Section 11
Restart Game Function
JavaScript building a car driving game from scratch: Restart Game Function