
Build a shooting game from scratch using JavaScript, with animated targets, hazards, and scoring. Learn to create elements on the fly, handle clicks, apply styling, and use Font Awesome icons.
Set up your development environment for the blaster game using brackets on Mac. Learn to use live preview, HTML5 template, and Chrome developer tools to inspect code and test JavaScript.
Learn how to implement event handlers in JavaScript by creating a button, selecting elements with querySelector, wiring a click event with an event listener, and inspecting the event object.
Learn to create elements on the fly with JavaScript by handling clicks, appending divs to an output container, and styling them with dynamic position, size, and random colors.
Learn to implement smooth animation frames in JavaScript by moving a box with requestAnimationFrame, control start and stop, and reverse direction using the element offset left.
Set up a JavaScript game by creating a header class, a start button, and a score display inside a game container with a movable crosshair, mouse tracking, and basic styling.
Begin writing JavaScript to move a crosshair inside a container with the mouse. Listen for mousemove events, read clientX and clientY, and update the crosshair's absolute position via styling.
Learn to update an on-page crosshair with live x and y coordinates as you move elements, by styling a bottom-aligned, left-offset indicator and dynamically displaying values with JavaScript.
Create a start button, reset the score, and drive a requestAnimationFrame loop that updates the gameplay and animation, pausing when the game ends.
Learn to implement collision detection in JavaScript by comparing the bounding rectangles of two elements, including the four corners and intersection logic, returning true when they overlap.
Learn to create targets dynamically in JavaScript by implementing a bad maker function that builds divs with random positions, appends them to a container, and checks collision detection during gameplay.
Replace the red dots with random font awesome icons by using an icons array and a content delivery network. Adjust the font size and line height for better visuals.
Learn to generate random hex colors for targets, use data-set attributes for speed and direction, and implement four-direction movement with boundary checks to create colorful targets.
Learn to implement firing at moving targets with mouse events, detect hits via collision checks, remove hit enemies, respawn new ones, and update score with variable points.
Implement a JavaScript game over message in a target blaster game by toggling the game over display on start and end, updating the score, and removing enemies.
Expand bad guys' movement to eight directions by enabling diagonal motion and updating direction handling with checks for positions 1 through 8. This enhances gameplay and provides more movement options.
Add hazards to raise challenge by creating bomb icons with zero point value, using a hazards counter and collision checks to trigger game over when a hazard is hit.
Learn to shoot multiple bullets from clicks, update animations, detect collisions with moving targets, remove hits, update score, spawn new enemies, and reset on game over.
Review a JavaScript target blaster game from scratch, disable input when not in play, and refactor into separate style and script files while detailing collision, scoring, and hazards.
Explore how to build a fun JavaScript based game from scratch within this course. Did you want to PRACTICE and LEARN more about using JavaScript., then this course is perfect for you to advance your skills in a fun step by step course teaching you how to build a game from scratch.
Source code is included, everything you need to build a JavaScript DOM (Document Object Model) based game. No additional libraries everything JavaScript.
Within the course we explore animation functionality and how you can dynamically create, update and move elements around with just JavaScript. JavaScript has a lot to offer and you can really make some amazing things happen when you apply it within your code.
JavaScript is a prerequisite to this course, The course is designed to practice JavaScript and prior knowledge of JavaScript is needed to take this course.
All JavaScript no libraries and no filler, JUST JavaScript !!!!
The course is designed to practice JavaScript in the context of building a Blaster Type game!
The possibilities are endless, using the DOM and creating elements provides you a wide variety of options where you can take the code provided within this course and extend on it in any number of directions. Learn practice and have fun.
Source Code is included to get you started quickly
Fast friendly advice and help is always available within the Q&A section
Taught by an instructor with many years of web development and teaching experience.
Learn step by step how to create a simple game from scratch, with helpful tips and resources along to way. Explore how game logic is applied and tweaks for coding and game improvement.
Nothing to lose, join now and see what you can build with JavaScript.