JavaScript Plane Bomber Game - DOM practice exercise
4.6 (5 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,431 students enrolled

JavaScript Plane Bomber Game - DOM practice exercise

Explore how you can build a JavaScript DOM game from scratch - Perfect to explore and practice JavaScript
4.6 (5 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,431 students enrolled
Created by Laurence Svekis
Last updated 11/2019
English
English [Auto-generated]
Current price: $139.99 Original price: $199.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 1 hour on-demand video
  • 13 articles
  • 4 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • How to use JavaScript
  • How to create elements dynamically
  • Manipulate elements using JavaScript
  • Explore JavaScript Document Object Model
Course content
Expand all 27 lectures 01:23:22
+ Introduction to building interactive content using JavaScript
26 lectures 01:22:08
Source Code
00:07
Source Code
00:14
JavaScript Start Game
04:51
Source Code
00:24
Add animation frame.
07:48
Source Code
00:32
JavaScript quick Game fixes
04:39
Source Code
00:40
Introducing Game Scoring
02:58
Source Code
00:44
Show Scoreboard to player
02:25
Source Code
00:48
Add Enemy Base
05:13
Source Code
00:58
Make the bomb Dynamically creating elements
07:30
Source Code
01:12
Move bombs Automatically
04:49
Source Code
01:18
Collision Detection
05:23
Source Code
01:23
Final Gameplay Tweaks
07:31
Source Code
01:29
Bomber Plane Code Review
07:20
Requirements
  • Fundamental JavaScript concepts
  • Access to computer
  • Use of editor to write code
  • HTML and CSS knowledge
Description

This course is perfect to practice and learn more about the Document Object Model, while building a fun interactive game from scratch.  build your own version of this JavaScript game. Step by step lessons with explanations of JavaScript methods and applying logic to create this mini application. 

Its not always fun and games to learn JavaScript, but in this case it can be :)

Source code is included so you can try the code at the end of the lessons to see it in action.  Useful coding concepts and JavaScript methods are covered to get you more familiar with using them and building out customized applications from scratch.

Scope of the course is to introduce you to element manipulation via the DOM.  Content covered relates to effectively creating interactive and dynamic content for web users.  I keep non JavaScript coding to a minimal to focus directly on JavaScript.  This is a fast paced course straight to the point on how to apply JavaScript.

  • Element selection using querySelector

  • Elements as objects in JavaScript

  • Adding addEventListener Keyboard events

  • Getting Key press values

  • Setup of global variables and objects for gameplay

  • Element creation on the fly createElement() method

  • Adding new elements to the page appendChild()

  • Setting of element attributes setAttribute()

  • Adding animation of content requestAnimationFrame()

  • Updating element position depending on key press

  • Updating element style values

  • Tracking element position within data objects

  • Using offset values of element to get position X,Y

  • Adding classes to elements classList()

  • Applying scoring and game logic for gameplay functionality

  • Creating dynamic values that can scale with game

  • Updating element content innerHTML

  • Applying logic and game concepts.

  • Adding enemy target to gameplay

  • Moving targets and document element with gameplay

  • Adding elements to the page and tracking movement

  • Dynamically creating elements

  • Automation of movement for non player elements

  • Checking element position and determining element overlap

  • Collision Detection between two elements on the page

  • Getting element details getBoundingClientRect()

  • Returning the size of an element and its position relative to the viewport.

  • Debugging and game checking

  • Code review and adjustments

No libraries, no shortcuts just learning JavaScript making it DYNAMIC and INTERACTIVE web application.

Step by step learning with all steps included.

Beginner JavaScript knowledge is required as the course covers only JavaScript relevant to the building of the game.  Also HTML and CSS knowledge is essential as scope of this course is all JavaScript focused.  

Along with friendly support in the Q&A to help you learn and answer any questions you may have.

Try it now you have nothing to lose, comes with a 30 day money back guarantee.  

Start building your own version of the game today!!!!

Who this course is for:
  • Beginners to JavaScript
  • Anyone who wants to practice writing JavaScript
  • Web developers
  • Anyone who wants to learn to make a JavaScript game without any libraries
  • Beginners to JavaScript curious about Document Object Model and JavaScript Methods