
Build vanilla JavaScript games from Pong and Snake to Minesweeper through learning by building one game at a time.
Install Visual Studio Code on Windows for your JavaScript game projects by downloading it from the official site, running the installer, and launching the app to verify the setup.
Explore essential Visual Studio Code extensions for web development and JavaScript game projects, including auto close tag, auto import, prettier, live server, path IntelliSense, color picker, and CSS navigation.
Configure your code formatter by selecting Prettier in settings, and enable autosave on focus change to save automatically when you switch windows.
Type the letter shown on the screen; a green flash marks correct, a red flash marks incorrect, and the letter doesn't change. Start coding with this simple typing game.
Set up the key matcher project by creating a folder, opening it in Visual Studio Code, generating an HTML shell in index.html, and linking style.css and main.js.
Set up a container with a circle containing a letter span and a text paragraph. Test by pressing a key, noting no JavaScript yet, and begin writing the main script.
Generate a random letter from the alphabet, display it, and handle keyboard input to compare the pressed key to the current letter, flashing red for incorrect and green for correct.
Create a simple JavaScript game, guess the number, where players try to find a value between 0 and 100 in ten tries with feedback and a play again option.
Set up a number guessing game project by creating directory, opening it in Visual Studio Code, and scaffolding index.html, style.css, and main.js with links and defer script for Live Server.
Code the core game logic with JavaScript to handle user input, guesses, and feedback. Connect DOM elements, generate a secret number, track attempts, and display game over messages.
Learn to build a simple two-player dice game in JavaScript, where players roll dice, outcomes are random, and a win or tie is determined.
Set up a roll dice game project in Visual Studio Code by creating index.html, style.css, and main.js, linking CSS and defer script, and building a two-player container with roll buttons.
Bind HTML elements with getElementById in the main.js file, generate random numbers for both players, update the result, decide the winner, and enable reset via event listeners after three seconds.
Explore building a Whac-a-mole style game in JavaScript, where players click appearing animals within 30 seconds to increase score and test reflexes.
Create a whack a mole project folder and set up three files—index.html, style.css, and main.js—link CSS and script, and prepare a 3x3 grid with holes and a start button.
Code the core game logic with selector queries, random item selection, and hole clearing; update score and time left, handle animal clicks, and manage start, countdown, and end states.
Identify a forgotten line of code to stop movement when the game ends, implement the fix, and verify by starting the game to ensure movement stops correctly.
Play guess the color to practice identifying rgb colors by matching red, green, and blue values, learn to recognize rgb combinations for web development, and prepare to dive into coding.
Implement game logic for a color guessing game by generating random RGB colors, rendering six color boxes, handling box clicks, managing game state, and refreshing with a next button.
Finish the application by fixing bugs, testing with a live server, switching event handling from on click to links, then explore an RGB game to identify red, green, and blue.
Create a rock, paper, scissors game in JavaScript, handle user clicks for rock, paper, or scissors, generate a random computer choice, and determine the winner.
Set up a rock paper scissors game by creating a project folder with index.html, style.css, and main.js, linking CSS and JS, building the UI with buttons, and starting JavaScript gameplay.
Guide students through building a rock-paper-scissors game by manipulating the DOM, selecting elements, generating a random computer choice, evaluating win conditions, and updating the UI with user, computer, and result.
Spin to hit three matching symbols to win in a slot machine game, with animation and a cherry symbol that guarantees a win; learn how to set up the project.
Set up the slot machine project by creating index.html, style.css, main.js, three reel divs with ids, and a spin button, then test with a live server.
Implement game logic for a JavaScript slot-style game, wiring the spin button and reels to spin with random symbols. Check for a win when all symbols match and manage intervals.
Fix a typo that caused a time out velocity issue, which crushed the game, then verify that the game now works correctly. You can try it out yourself.
In today’s fast-paced tech world, mastering JavaScript is more than just memorizing syntax - it’s about building real, interactive experiences. And what better way to learn programming than by making games? With Code & Play, you’ll strengthen your programming skills through creativity, logic, and hands-on coding that’s actually fun.
This isn’t your typical tutorial-based course. In this immersive learning experience, you’ll build a collection of 15 playable games—each one crafted to teach you key JavaScript concepts while keeping you engaged. From classics like Rock-Paper-Scissors, Pong, and Snake to original projects like key matcher or memory card game, every project is a chance to sharpen your skills in a meaningful way.
You’ll work with real JavaScript fundamentals: variables, functions, loops, objects, arrays, and event listeners—all applied directly to build game mechanics and interactivity. You’ll also dive into slightly more advanced topics like collision detection, game state management, animations and drawing with the HTML5 Canvas API.
But this course is about more than just writing code. It’s about learning how to think like a developer -debugging issues, solving logic problems, and organizing your code in a clean, modular way. Every game is a challenge designed to stretch your problem-solving skills and reinforce your understanding of JavaScript through real feedback loops.
By the end, you won’t just know how JavaScript works—you’ll have a personal arcade of games you built yourself, and a strong portfolio of projects that demonstrate your abilities in an exciting, creative format.
Whether you're new to programming or looking for a fun way to level up your JavaScript, this course will help you build confidence, deepen your knowledge, and unlock a whole new way to learn.
Let’s code, play, and build something awesome - one game at a time.