A Car Racer JavaScript Game Exercise Using Vanilla JavaScript [Video]

A Car Racer JavaScript Game Exercise Using Vanilla JavaScript [Video]

Laurence Svekis

Create a custom JavaScript Car racer game from scratch using only JavaScript - Practice Exercises
Packt Subscription
FREE
$9.99/m after trial
Video
$155.55
RRP $182.99
Save 14%
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$155.55
$9.99 p/m after trial
RRP $182.99
Subscription
Video
Start a FREE 10-day trial

Frequently bought together


A Car Racer JavaScript Game Exercise Using Vanilla JavaScript [Video] Book Cover
A Car Racer JavaScript Game Exercise Using Vanilla JavaScript [Video]
$ 182.99
$ 155.55
JavaScript Game Exercise - Quick Click Popper Game [Video] Book Cover
JavaScript Game Exercise - Quick Click Popper Game [Video]
$ 179.99
$ 153.00
Buy 2 for $308.55
Save $54.43
Add to Cart

Video Description

Have you ever wanted to build amazing and interactive games? If yes, then this course is perfect for you.
A basic knowledge of JavaScript is desirable as the course covers only JavaScript relevant to building a game. Also, HTML and CSS knowledge is essential as the scope of this course focuses entirely on JavaScript.

The course is designed to teach you to use JavaScript. We cover the following:-

  • Learn how to set up your gameplay area using HTML and CSS
  • Add JavaScript setting event listeners
  • Add keyboard actions to move an HTML div using keyboard arrow keys
  • Run AnimationFrame() to change element position and respond to the user's commands
  • Set up and start game functionality 
  • Create a dynamic JavaScript road
  • Create elements within JavaScript
  • Access the JavaScript Document Object Model to manipulate element properties
  • Set up and add values within an object to track location and movement
  • Set up a dashboard to output variables for the user such as the score and speed
  • Add road movement
  • Track speed dynamically with braking and accelerating 
  • Add other cars and have them move within the gameplay area
  • Check for element overlap and detect collisions
  • Score and extend gameplay

Practicability is the key to this course. Using JavaScript, you have a wide variety of options whereby you can take the code provided within this course and expand it in any number of directions. Learn, practice, and create your own interactive game.

Style and Approach

This course will literally take you from knowing nothing about game development with JavaScript to mastering JavaScript elements, components, and animations and applying JavaScript to your own car racing game.

Video Preview

What You Will Learn

  • Create a car racing game from scratch 
  • Apply JavaScript and move elements within a page using JavaScript
  • Detect overlapping collision between two elements
  • Run animations within JavaScript

Authors

Video Details

ISBN 139781789801910
Course Length2 hours 14 minutes
Read More

Read More Reviews

Recommended for You

JavaScript Game Exercise - Quick Click Popper Game [Video] Book Cover
JavaScript Game Exercise - Quick Click Popper Game [Video]
$ 179.99
$ 153.00
JavaScript - A Breakout Game Exercise [Video] Book Cover
JavaScript - A Breakout Game Exercise [Video]
$ 186.99
$ 158.95
A JavaScript Exercise - Target Blaster Game from Scratch [Video] Book Cover
A JavaScript Exercise - Target Blaster Game from Scratch [Video]
$ 186.99
$ 158.95
A JavaScript Game Exercise Built from Scratch to Catch Objects [Video] Book Cover
A JavaScript Game Exercise Built from Scratch to Catch Objects [Video]
$ 186.99
$ 158.95
A JavaScript War Card Game Project from Scratch [Video] Book Cover
A JavaScript War Card Game Project from Scratch [Video]
$ 182.99
$ 155.55
A JavaScript Local Storage Task List Exercise [Video] Book Cover
A JavaScript Local Storage Task List Exercise [Video]
$ 86.99
$ 73.95